cmd

package
v0.0.0-...-deb9b4d Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OSLocalBinaryRes = BinaryResource{
	Os:   "linux",
	Kind: "kind",
	Kubectl: func(_ k8s.KindK8sVersion) string {
		return "kubectl"
	},
}
View Source
var OSUrlBinaryRes = BinaryResource{
	Os:   "linux",
	Kind: "https://github.com/FootprintAI/kind/releases/download/v0.24.0-gpu/kind-linux",

	Kubectl: func(v k8s.KindK8sVersion) string {
		return fmt.Sprintf("https://storage.googleapis.com/kubernetes-release/release/%s/bin/linux/amd64/kubectl", v.Version())
	},
}

Functions

func DownloadPlainBinary

func DownloadPlainBinary(sourceURL, localpath string) error

Types

type BinaryResource

type BinaryResource struct {
	Os      string
	Kind    string
	Kubectl func(k8s.KindK8sVersion) string
}

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

func NewCmd

func NewCmd(logger log.Logger) *Cmd

func (*Cmd) Run

func (c *Cmd) Run(cmdAndArgs ...string) (*ioutil.CmdOutputStream, <-chan cmd.Status, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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