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.
Click to show internal directories.
Click to hide internal directories.