Skip to content

Commit

Permalink
Merge pull request #22 from TRON-US/BTFS-1849
Browse files Browse the repository at this point in the history
BTFS-1849
  • Loading branch information
Eric Chen authored Apr 23, 2020
2 parents f9f489e + 5d80248 commit e6417b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coreapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"github.com/TRON-US/interface-go-btfs-core/options"

ipld "github.com/ipfs/go-ipld-format"

ipfspath "github.com/ipfs/go-path"
)

// CoreAPI defines an unified interface to IPFS for Go programs
Expand Down Expand Up @@ -50,6 +52,10 @@ type CoreAPI interface {
// resolver, gets and returns the resolved Node
ResolveNode(context.Context, path.Path) (ipld.Node, error)

// ResolveIpnsPath resolves the Ipns path,
// gets and returns the resolved path
ResolveIpnsPath(context.Context, path.Path) (*ipfspath.Path, error)

// WithOptions creates new instance of CoreAPI based on this instance with
// a set of options applied
WithOptions(...options.ApiOption) (CoreAPI, error)
Expand Down

0 comments on commit e6417b7

Please sign in to comment.