package
1.6.0-alpha.0
Repository: https://github.com/p0lyn0mial/kubernetes.git
Documentation: pkg.go.dev

# Functions

AsVersionedObject converts a list of infos into a single object - either a List containing the objects as children, or if only a single Object is present, as that object.
AsVersionedObjects converts a list of infos into versioned objects.
ExpandPathsToFileVisitors will return a slice of FileVisitors that will handle files from the provided path.
FileVisitorForSTDIN return a special FileVisitor just for STDIN.
No description provided by the author
FilterNamespace omits the namespace if the object is not namespace scoped.
HasNames returns true if the provided args contain resource names.
TODO: expand this to include other errors.
NewBuilder creates a builder that operates on generic objects.
NewDecoratedVisitor will create a visitor that invokes the provided visitor functions before the user supplied visitor function is invoked, giving them the opportunity to mutate the Info object or terminate early with an error.
No description provided by the author
NewFlattenListVisitor creates a visitor that will expand list style runtime.Objects into individual items and then visit them individually.
NewHelper creates a Helper from a ResourceMapping.
NewInfo returns a new info object.
NewSelector creates a resource selector which hides details of getting items by their label selector.
NewStreamVisitor is a helper function that is useful when we want to change the fields of the struct but keep calls the same.
RequireNamespace will either set a namespace if none is provided on the Info object, or if the namespace is set and does not match the provided value, returns an error.
RetrieveLatest updates the Object on each Info by invoking a standard client Get.
RetrieveLazy updates the object if it has not been loaded yet.
SetNamespace ensures that every Info object visited will have a namespace set.
SplitResourceArgument splits the argument with commas and returns unique strings in the original order.
TryConvert attempts to convert the given object to the provided versions in order.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

Builder provides convenience functions for taking arguments and parameters from the command line and converting them to a list of resources to iterate over using the Visitor interface.
ContinueOnErrorVisitor visits each item and, if an error occurs on any individual item, returns an aggregate error after all items are visited.
DecoratedVisitor will invoke the decorators in order prior to invoking the visitor function passed to Visit.
DisabledClientForMapping allows callers to avoid allowing remote calls when handling resources.
No description provided by the author
FileVisitor is wrapping around a StreamVisitor, to handle open/close files.
No description provided by the author
FlattenListVisitor flattens any objects that runtime.ExtractList recognizes as a list - has an "Items" public field that is a slice of runtime.Objects or objects satisfying that interface - into multiple Infos.
Helper provides methods for retrieving or mutating a RESTful resource.
Info contains temporary info to execute a REST call, or show the results of an already completed REST call.
Mapper is a convenience struct for holding references to the three interfaces needed to create Info for arbitrary objects.
Result contains helper methods for dealing with the outcome of a Builder.
Selector is a Visitor for resources that match a label selector.
StreamVisitor reads objects from an io.Reader and walks them.
URLVisitor downloads the contents of a URL, and if successful, returns an info object representing the downloaded object.

# Interfaces

ClientMapper abstracts retrieving a Client for mapped objects.
ResourceMapping allows an object to return the resource mapping associated with the resource or resources it represents.
RESTClient is a client helper for dealing with RESTful resources in a generic way.
Visitor lets clients walk a list of resources.
Watchable describes a resource that can be watched for changes that occur on the server, beginning after the provided resource version.

# Type aliases

ClientMapperFunc implements ClientMapper for a function.
EagerVisitorList implements Visit for the sub visitors it contains.
ErrMatchFunc can be used to filter errors that may not be true failures.
No description provided by the author
VisitorFunc implements the Visitor interface for a matching function.
VisitorList implements Visit for the sub visitors it contains.