Skip to content

Commit

Permalink
commands: switch object commands to CoreAPI
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>


This commit was moved from ipfs/interface-go-ipfs-core@9fe2a84
  • Loading branch information
magik6k committed Aug 1, 2018
1 parent 83c279f commit 157bb70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions coreiface/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ type ObjectStat struct {
CumulativeSize int
}


const (
// DiffAdd is a Type of ObjectChange where a link was added to the graph
DiffAdd = iota
Expand All @@ -57,11 +56,11 @@ type ObjectChange struct {

// Before holds the link path before the change. Note that when a link is
// added, this will be nil.
Before Path
Before ResolvedPath

// After holds the link path after the change. Note that when a link is
// removed, this will be nil.
After Path
After ResolvedPath
}

// ObjectAPI specifies the interface to MerkleDAG and contains useful utilities
Expand Down
4 changes: 2 additions & 2 deletions coreiface/options/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func (objectOpts) DataType(t string) ObjectPutOption {
}
}

// WithPin is an option for Object.Put which specifies whether to pin the added
// Pin is an option for Object.Put which specifies whether to pin the added
// objects, default is false
func (objectOpts) WithPin(pin bool) ObjectPutOption {
func (objectOpts) Pin(pin bool) ObjectPutOption {
return func(settings *ObjectPutSettings) error {
settings.Pin = pin
return nil
Expand Down

0 comments on commit 157bb70

Please sign in to comment.