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
f6916c49
Commit
f6916c49
authored
Aug 07, 2018
by
Whyrusleeping
Committed by
GitHub
Aug 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5339 from ipfs/refactor/coreapi/key
key cmd: Refactor to use coreapi
parents
896fb83b
814f82cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
key.go
key.go
+7
-1
No files found.
key.go
View file @
f6916c49
...
...
@@ -4,14 +4,20 @@ import (
"context"
options
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
"gx/ipfs/QmdVrMn1LhB4ybb8hMVaMLXnA8XRSewMnK6YqXKXoTcRvN/go-libp2p-peer"
)
// Key specifies the interface to Keys in KeyAPI Keystore
type
Key
interface
{
// Key returns key name
Name
()
string
// Path returns key path
Path
()
Path
// ID returns key PeerID
ID
()
peer
.
ID
}
// KeyAPI specifies the interface to Keystore
...
...
@@ -28,5 +34,5 @@ type KeyAPI interface {
List
(
ctx
context
.
Context
)
([]
Key
,
error
)
// Remove removes keys from keystore. Returns ipns path of the removed key
Remove
(
ctx
context
.
Context
,
name
string
)
(
Path
,
error
)
Remove
(
ctx
context
.
Context
,
name
string
)
(
Key
,
error
)
}
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