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
4fbdf56d
Commit
4fbdf56d
authored
Dec 10, 2017
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi: Keystore API proposal
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
1b5e997c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
interface.go
interface.go
+5
-4
No files found.
interface.go
View file @
4fbdf56d
...
@@ -44,6 +44,7 @@ type CoreAPI interface {
...
@@ -44,6 +44,7 @@ type CoreAPI interface {
Unixfs
()
UnixfsAPI
Unixfs
()
UnixfsAPI
Dag
()
DagAPI
Dag
()
DagAPI
Name
()
NameAPI
Name
()
NameAPI
Key
()
KeyAPI
// ResolvePath resolves the path using Unixfs resolver
// ResolvePath resolves the path using Unixfs resolver
ResolvePath
(
context
.
Context
,
Path
)
(
Path
,
error
)
ResolvePath
(
context
.
Context
,
Path
)
(
Path
,
error
)
...
@@ -102,11 +103,11 @@ type NameAPI interface {
...
@@ -102,11 +103,11 @@ type NameAPI interface {
Resolve
(
ctx
context
.
Context
,
name
string
,
recursive
bool
,
local
bool
,
nocache
bool
)
(
Path
,
error
)
Resolve
(
ctx
context
.
Context
,
name
string
,
recursive
bool
,
local
bool
,
nocache
bool
)
(
Path
,
error
)
}
}
type
KeyA
pi
interface
{
type
KeyA
PI
interface
{
Generate
(
ctx
context
.
Context
,
name
string
,
algorithm
string
,
size
int
)
error
Generate
(
ctx
context
.
Context
,
name
string
,
algorithm
string
,
size
int
)
(
string
,
error
)
List
(
ctx
context
.
Context
)
(
map
[
string
]
string
,
error
)
//TODO: better key type?
List
(
ctx
context
.
Context
)
(
map
[
string
]
string
,
error
)
//TODO: better key type?
Rename
(
ctx
context
.
Context
,
oldName
string
,
newName
string
)
error
Rename
(
ctx
context
.
Context
,
oldName
string
,
newName
string
,
force
bool
)
(
string
,
bool
,
error
)
Remove
(
ctx
context
.
Context
,
name
string
)
error
Remove
(
ctx
context
.
Context
,
name
string
)
(
string
,
error
)
}
}
// type ObjectAPI interface {
// type ObjectAPI interface {
...
...
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