package
0.7.0
Repository: https://github.com/nalind/kubernetes-1.git
Documentation: pkg.go.dev

# Functions

CompareNamespaceFromFile returns an error if the namespace the user has provided on the CLI or via the default namespace file does not match the namespace of an input file.
DataToObjects converts the raw JSON data into API objects.
Returns the first non-empty string out of the ones provided.
GetExplicitKubeNamespace returns the value of the namespace a user explicitly provided on the command line, or false if no such namespace was specified.
Return a list of file names of a certain type within a given directory.
No description provided by the author
Returns nil if the flag wasn't set.
Assumes the flag has a default value.
No description provided by the author
GetKubeNamespace returns the value of the namespace a user provided on the command line or use the default namespace.
No description provided by the author
NewFactory creates a factory with the default Kubernetes resources defined.
ReadConfigData reads the bytes from the specified filesytem or network location or from stdin if location == "-".
No description provided by the author
ResourceFromArgs expects two arguments with a given type, and extracts the fields necessary to uniquely locate a resource.
ResourceFromArgsOrFile expects two arguments or a valid file with a given type, and extracts the fields necessary to uniquely locate a resource.
ResourceFromFile retrieves the name and namespace from a valid file.
ResourceFromArgs expects two arguments with a given type, and extracts the fields necessary to uniquely locate a resource.

# Structs

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