deps

package
v0.0.0-...-4c4ccab Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DevelopmentTools is the list of ACK development tools
	DevelopmentTools = []Dependency{
		{
			BinaryName:     "go",
			GetVersionArgs: []string{"version"},
		},
		{
			BinaryName:     "kind",
			GetVersionArgs: []string{"--version"},
		},
		{
			BinaryName:     "helm",
			GetVersionArgs: []string{"version", "--short"},
		},
		{
			BinaryName:     "mockery",
			GetVersionArgs: []string{"--version", "--quiet"},
		},
		{
			BinaryName:     "kubectl",
			GetVersionArgs: []string{"version", "--client", "--short"},
		},
		{
			BinaryName:     "kustomize",
			GetVersionArgs: []string{"version", "--short"},
		},
		{
			BinaryName:     "controller-gen",
			GetVersionArgs: []string{"--version"},
		},
	}
)
View Source
var (
	ErrorVersionNotFound = errors.New("version not found in output")
)

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	// Expected binary name
	BinaryName string
	// Arguments passed to the binary in order to get it version
	GetVersionArgs []string
}

Dependency represent an ACK development dependency. Generally dependencies are binaries.

func (*Dependency) BinPath

func (t *Dependency) BinPath() (string, error)

BinPath returns the path of a binary if it exists

func (*Dependency) Version

func (t *Dependency) Version() (string, error)

Version returns the version of the binary.

Jump to

Keyboard shortcuts

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