Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
9fe2a845
Commit
9fe2a845
authored
Feb 02, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: switch object commands to CoreAPI
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
00f6430f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
object.go
object.go
+2
-3
options/object.go
options/object.go
+2
-2
No files found.
object.go
View file @
9fe2a845
...
...
@@ -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
...
...
@@ -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
Resolved
Path
// After holds the link path after the change. Note that when a link is
// removed, this will be nil.
After
Path
After
Resolved
Path
}
// ObjectAPI specifies the interface to MerkleDAG and contains useful utilities
...
...
options/object.go
View file @
9fe2a845
...
...
@@ -105,9 +105,9 @@ func (objectOpts) DataType(t string) ObjectPutOption {
}
}
//
With
Pin 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
)
With
Pin
(
pin
bool
)
ObjectPutOption
{
func
(
objectOpts
)
Pin
(
pin
bool
)
ObjectPutOption
{
return
func
(
settings
*
ObjectPutSettings
)
error
{
settings
.
Pin
=
pin
return
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment