Documentation ¶
Index ¶
- type DirWalker
- type File
- type FileApi
- func (f *FileApi) AddDir(context context.Context, sourceDirPath string) (*File, error)
- func (f *FileApi) AddFile(context context.Context, sourcePath string) (*File, error)
- func (f *FileApi) GetFile(context context.Context, file path.Path) (*File, error)
- func (f *FileApi) RootPath(fileName string) path.Path
- func (f *FileApi) WalkDirTree(context context.Context, parent *File, walker DirWalker) error
- type Ipfs
- type IpfsApi
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileApi ¶
type FileApi struct {
// contains filtered or unexported fields
}
type Ipfs ¶
type Ipfs struct { CoreAPI *icore.CoreAPI *FileApi *ipfsconfig.IpfsOptions // contains filtered or unexported fields }
func (*Ipfs) ConnectToPeers ¶
type IpfsApi ¶
func StartIpfsNode ¶
func StartIpfsNode(ctx context.Context, options ipfsconfig.IpfsOptions) (IpfsApi, error)
StartIpfsNode starts a new IPFS ipfs (default or ephemeral), connecting to it configured peers, and wraps an API to add or get ipfs and directories.
Click to show internal directories.
Click to hide internal directories.