Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CockroachVersion ¶
type CockroachVersion struct { Filename string // contains filtered or unexported fields }
func GetLatestVersion ¶
func GetLatestVersion() (*CockroachVersion, error)
GetLatestVersion gathers information on the latest cockroachdb version from cockroach servers and returns a CockroachVersion.
func GetVersion ¶
func GetVersion(vers string) (*CockroachVersion, error)
GetVersion gathers information on the specified cockroachdb version and returns a CockroachVersion.
func (*CockroachVersion) Dirname ¶
func (v *CockroachVersion) Dirname() string
Dirname returns the directory name expected for the file. Typically cockroachdb archive is a directory with the following files:
cockroach lib/libgeos.so lib/libgeos_c.so LICENSE.txt THIRD-PARTY-NOTICES.txt
func (*CockroachVersion) DownloadTo ¶
func (v *CockroachVersion) DownloadTo(fn string) error
DownloadTo downloads the version of cockroachdb to a file while performing a checksum
func (*CockroachVersion) ExtractTo ¶
func (v *CockroachVersion) ExtractTo(dirname string) error
ExtractTo downloads the version of cockroachdb to a directory while performing a checksum
Typically a directory named v.Dirname() will be created there