# 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.
No description provided by the author
NewResourceSelector creates a resource selector which hides details of getting items by their label selector.
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.
ResourcesFromArgsOrFile computes a list of Resources by extracting info from filename or args.
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.
ResourceInfo contains temporary info to execute REST call.
ResourceSelector is a facade for all the resources fetched via label selector.
# Interfaces
ResourceVisitor lets clients walk the list of resources.
# Type aliases
No description provided by the author