cmd

package
v0.0.0-...-c58b0ca Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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