Documentation
¶
Index ¶
- func NewCoreAPI(n *core.IpfsNode, c ipfsiface.CoreAPI, opts ...options.ApiOption) (fxfsiface.CoreAPI, error)
- type CoreAPI
- type PrivateAPI
- func (api *PrivateAPI) Add(ctx context.Context, files files.Node, opts ...options.UnixfsAddOption) (path.Resolved, error)
- func (api *PrivateAPI) Get(ctx context.Context, p path.Path) (files.Node, error)
- func (api *PrivateAPI) Ls(ctx context.Context, p path.Path, opts ...options.UnixfsLsOption) (<-chan iface.DirEntry, error)
- type PublicAPI
- func (api *PublicAPI) Add(ctx context.Context, files files.Node, opts ...options.UnixfsAddOption) (path.Resolved, error)
- func (api *PublicAPI) Get(ctx context.Context, p path.Path) (files.Node, error)
- func (api *PublicAPI) Ls(ctx context.Context, p path.Path, opts ...options.UnixfsLsOption) (<-chan iface.DirEntry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoreAPI ¶
type CoreAPI struct {
// contains filtered or unexported fields
}
func (*CoreAPI) PrivateFS ¶
Unixfs returns the UnixfsAPI interface implementation backed by the go-ipfs node
type PrivateAPI ¶
type PrivateAPI CoreAPI
func (*PrivateAPI) Add ¶
func (api *PrivateAPI) Add(ctx context.Context, files files.Node, opts ...options.UnixfsAddOption) (path.Resolved, error)
Click to show internal directories.
Click to hide internal directories.