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
bbff408d
Commit
bbff408d
authored
Mar 30, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi: path.Mutable
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
e4a33322
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
path.go
path.go
+13
-1
No files found.
path.go
View file @
bbff408d
...
@@ -6,13 +6,25 @@ import (
...
@@ -6,13 +6,25 @@ import (
// Path is a generic wrapper for paths used in the API. A path can be resolved
// Path is a generic wrapper for paths used in the API. A path can be resolved
// to a CID using one of Resolve functions in the API.
// to a CID using one of Resolve functions in the API.
// TODO: figure out/explain namespaces
//
// Paths must be prefixed with a valid prefix:
//
// * /ipfs - Immutable unixfs path (files)
// * /ipld - Immutable ipld path (data)
// * /ipns - Mutable names. Usually resolves to one of the immutable paths
//TODO: /local (MFS)
type
Path
interface
{
type
Path
interface
{
// String returns the path as a string.
// String returns the path as a string.
String
()
string
String
()
string
// Namespace returns the first component of the path
// Namespace returns the first component of the path
Namespace
()
string
Namespace
()
string
// Mutable returns false if the data pointed to by this path in guaranteed
// to not change.
//
// Note that resolved mutable path can be immutable.
Mutable
()
bool
}
}
// ResolvedPath is a resolved Path
// ResolvedPath is a resolved Path
...
...
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