package
0.21.4
Repository: https://github.com/iscas-fork/kubernetes.git
Documentation: pkg.go.dev

# Functions

AddPrinterFlags adds printing related flags to a command (e.g.
AddSourceToErr adds handleResourcePrefix and source string to error message.
CheckCustomErr is like CheckErr except a custom prefix error string may be provied to help produce more specific error messages.
CheckErr prints a user friendly error to STDERR and exits with a non-zero exit code.
DefaultClientConfig creates a clientcmd.ClientConfig with the following hierarchy: 1.
No description provided by the author
No description provided by the author
Assumes the flag has a default value.
No description provided by the author
GetFlagStringList can be used to accept multiple argument with flag repetition (e.g.
GetWideFlag is used to determine if "-o wide" is used.
No description provided by the author
MultilineError returns a string representing an error that splits sub errors into their own lines.
MultipleErrors returns a newline delimited string containing the prefix and referenced errors in standard form.
No description provided by the author
NewFactory creates a factory with the default Kubernetes resources defined if optionalClientConfig is nil, then flags will be bound to a new clientcmd.ClientConfig.
OutputVersion returns the preferred output version for generic content (JSON, YAML, or templates).
PrinterForCommand returns the default printer for this command.
ReadConfigData reads the bytes from the specified filesytem or network location or from stdin if location == "-".
TODO: replace with resource.Builder.
No description provided by the author
StandardErrorMessage translates common errors into a human readable message, or returns false if the error is not one of the recognized types.
No description provided by the author

# Constants

No description provided by the author

# Structs

Factory provides abstractions that allow the Kubectl command to be extended across multiple types of resources and different API sets.