commands

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	// Name is the name of the command, e.g. helm or kubectl
	Name() string

	// InstallPath is the path where this command should get installed, if
	// it is not found in the PATH environment variable
	InstallPath(toolHomeFolder string) (string, error)

	// DownloadURL is the url where the command binary or archive can be downloaded
	// from.
	DownloadURL() string

	// IsValid checks if the command at the given path exists.
	IsValid(ctx context.Context, path string) (bool, error)

	// Install installs the command after it was downloaded from the DownloadURL() in toolHomeFolder
	Install(toolHomeFolder string, archiveFile string) error
}

func NewHelmV3Command

func NewHelmV3Command() Command

func NewKubectlCommand

func NewKubectlCommand() Command

Jump to

Keyboard shortcuts

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