action

package
v0.0.0-...-7d78d0e Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser() (string, error)

func DirectoryExists

func DirectoryExists(path string) bool

func Download

func Download(version string) (string, error)

func ExtractTGZ

func ExtractTGZ(file string) error

func FileExists

func FileExists(filename string) bool

func GetOS

func GetOS() string

func Install

func Install(file string) error

func InteractiveVersion

func InteractiveVersion(versionGroup []VersionGroup) (string, error)

func MoveFiles

func MoveFiles(file string) error

func PrintReleases

func PrintReleases(versions ...string) error

func TaskSpinner

func TaskSpinner(done chan bool)

func Tidy

func Tidy()

Types

type Release

type Release struct {
	Version      string
	Date         string
	ReleaseNotes string
	DownloadURI  string
	SHA256Sum    string
}

func Interactive

func Interactive() (Release, error)

func InteractiveRelease

func InteractiveRelease(version string, versionGroup []VersionGroup) (Release, error)

type VersionGroup

type VersionGroup struct {
	VersionPrefix string
	Releases      []Release
}

func GetReleases

func GetReleases() ([]VersionGroup, error)

GetReleases retrieves the release page from Cockroachlabs, and parses it for useful information

Jump to

Keyboard shortcuts

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