Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiShell ¶ added in v1.7.0
ApiShell creates a new ipfs api shell and checks that it is up. If the shell is available, then the shell and ipfs version are returned.
func CurrentIpfsVersion ¶ added in v1.7.0
CurrentIpfsVersion returns the version of the currently running or installed ipfs executable.
func InstallBinaryTo ¶
func SelectRevertBin ¶
Types ¶
type Install ¶
type Install struct {
// contains filtered or unexported fields
}
func NewInstall ¶
func NewInstall(target string, nocheck, downgrade bool, fetcher migrations.Fetcher) *Install
type IpfsFetcher ¶ added in v1.7.0
type IpfsFetcher struct {
// contains filtered or unexported fields
}
func NewIpfsFetcher ¶ added in v1.7.0
func NewIpfsFetcher(distPath string, fetchLimit int64) *IpfsFetcher
NewIpfsFetcher creates a new IpfsFetcher
Specifying "" for distPath sets the default IPNS path. Specifying 0 for fetchLimit sets the default, -1 means no limit.
func (*IpfsFetcher) Fetch ¶ added in v1.7.0
func (f *IpfsFetcher) Fetch(ctx context.Context, filePath string) (io.ReadCloser, error)
Fetch attempts to fetch the file at the given path, from the distribution site configured for this HttpFetcher. Returns io.ReadCloser on success, which caller must close.
Click to show internal directories.
Click to hide internal directories.