package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev

# 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
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 Master Endpoint or passes the error from GetMasterHostPort.
GetMasterHostPort returns a properly formatted Master hostname or IP and port pair, or error if the hostname or IP address can not be parsed or port is outside the valid TCP range.
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.
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.
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.

# 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.

# Structs

LocalEtcdCluster represents an instance of a local etcd cluster.

# Interfaces

EtcdCluster is an interface to get etcd cluster related information.