Documentation
¶
Index ¶
- Constants
- Variables
- func DetectKubernetesVersion() (string, error)
- func ExecuteCommand(name string, args ...string) error
- func LookPath(file string) (string, error)
- func Must[T any](t T, err error) T
- func NewHTTPHeaderAPIOptions(headers []string) ([]func(*middleware.Stack) error, error)
- func ParseMinorVersion(semanticVersion string) (string, error)
Constants ¶
View Source
const KubernetesVersionFile = "kubernetes-version.txt"
Variables ¶
View Source
var ErrFileNotFoundInPath = errors.New("file not found in $PATH")
Functions ¶
func DetectKubernetesVersion ¶
func ExecuteCommand ¶
func LookPath ¶
LookPath finds a file on the PATH. It uses a similar process to exec.LookPath, but can find regular files.
func NewHTTPHeaderAPIOptions ¶
func NewHTTPHeaderAPIOptions(headers []string) ([]func(*middleware.Stack) error, error)
NewHTTPHeaderAPIOptions returns a slice of middleware options that adds the specified HTTP headers to an API request. Each header should be of the format `Header-Key: Header-Value`, in the same manner as headers are passed with `curl`-s `-H` flag.
func ParseMinorVersion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.