lib

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2017 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMigration

func CheckMigration() error

func GetBinaryForVersion

func GetBinaryForVersion(distname, binnom, root, vers, out string) error

func GetCurrentVersion

func GetCurrentVersion() (string, error)

func GetLatestVersion

func GetLatestVersion(ipfspath, dist string) (string, error)

func GetMigrations

func GetMigrations() (string, error)

func GetVersions

func GetVersions(ipfspath, dist string) ([]string, error)

func InstallBinaryTo

func InstallBinaryTo(nbin, nloc string) error

func RunMigration

func RunMigration(oldv, newv string) error

func SelectRevertBin

func SelectRevertBin() (string, error)

func StashOldBinary

func StashOldBinary(tag string, keep bool) (string, error)

StashOldBinary moves the existing ipfs binary to a backup directory and returns the path to the original location of the old binary

Types

type Install

type Install struct {
	// name of binary to be installed
	BinaryName string

	TargetVers  string
	CurrentVers string

	TmpBinPath string

	StashedFromPath string

	InstallPath string

	NoCheck bool

	UrlRoot string

	// whether or not the install has succeeded
	Succeeded bool
}

func NewInstall

func NewInstall(root, target string, nocheck bool) (*Install, error)

func (*Install) DownloadNewBinary

func (i *Install) DownloadNewBinary() error

func (*Install) MaybeStash

func (i *Install) MaybeStash() error

func (*Install) RevertOnFailure

func (i *Install) RevertOnFailure()

func (*Install) Run

func (i *Install) Run() error

func (*Install) SelectGoodInstallLoc

func (i *Install) SelectGoodInstallLoc() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL