package
1.14.0-alpha.0
Repository: https://github.com/everpeace/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
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
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.
Chroot chroot()s to the new path.
CopyDir copies the content of a folder.
FormatErrMsg returns a human-readable string describing the slice of errors passed to the function.
GetCgroupDriverDocker runs 'docker info' to obtain the docker cgroup driver.
GetMasterEndpoint returns a properly formatted endpoint for the control plane built according following rules: - If the ControlPlaneEndpoint is defined, use it.
GroupVersionKindsFromBytes parses the bytes and returns a gvk slice.
GroupVersionKindsHasClusterConfiguration returns whether the following gvk slice contains a ClusterConfiguration object.
GroupVersionKindsHasInitConfiguration returns whether the following gvk slice contains a InitConfiguration object.
GroupVersionKindsHasJoinConfiguration returns whether the following gvk slice contains a JoinConfiguration object.
GroupVersionKindsHasKind returns whether the following gvk slice contains the kind given as a parameter.
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 TODO: Is specifying the gv really needed here? TODO: Can we support json out of the box easily here?.
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.
ParsePort parses a string representing a TCP port.
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.
SplitYAMLDocuments reads the YAML bytes per-document, unmarshals the TypeMeta information from each document and returns a map between the GroupVersionKind of the document and the document bytes.
UnmarshalFromYaml unmarshals yaml into an object.
UnmarshalFromYamlForCodecs unmarshals yaml into an object using the specified codec TODO: Is specifying the gv really needed here? TODO: Can we support json out of the box easily here?.

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