# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package pubkeypin provides primitives for x509 public key pinning in the style of RFC7469.
No description provided by the author
No description provided by the author
# Functions
BuildArgumentListFromMap takes two string-string maps, one with the base arguments and one with optional override arguments.
CheckErr prints a user friendly error to STDERR and exits with a non-zero exit code.
CopyDir copies the content of a folder.
FormatErrMsg returns a human-readable string describing the slice of errors passed to the function.
GetMasterEndpoint returns a properly formatted endpoint for the control plane built according following rules: - If the api.ControlPlaneEndpoint is defined, use it.
KubernetesIsCIVersion checks if user requested CI version.
KubernetesReleaseVersion is helper function that can fetch available version information from release servers based on label names, like "stable" or "latest".
KubernetesVersionToImageTag is helper function that replaces all non-allowed symbols in tag strings with underscores.
LoadYAML is a small wrapper around go-yaml that ensures all nested structs are map[string]interface{} instead of map[interface{}]interface{}.
MarshalToYaml marshals an object into yaml.
MarshalToYamlForCodecs marshals an object into yaml using the specified codec.
ParseArgumentListToMap parses a CLI argument list in the form "--foo=bar" to a string-string map.
ParseHostPort parses a network address of the form "host:port", "ipv4:port", "[ipv6]:port" into host and port; ":port" can be eventually omitted.
ParseTemplate validates and parses passed as argument template.
ReplaceArgument gets a command list; converts it to a map for easier modification, runs the provided function that returns a new modified map, and then converts the map back to a command string slice.
UnmarshalFromYaml unmarshals yaml into an object.
UnmarshalFromYamlForCodecs unmarshals yaml into an object using the specified codec.
# Constants
DefaultErrorExitCode defines exit the code for failed action generally.
PreFlightExitCode defines exit the code for preflight checks.
ValidationExitCode defines the exit code validation checks.