# Functions
CreateAndRefresh creates an object from input info and refreshes info with that object.
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.
MultipleTypesRequested returns true if the provided args contain multiple resource kinds.
NewBuilder creates a builder that operates on generic objects.
NewClientWithOptions wraps the provided RESTClient and invokes each transform on each newly created request.
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.
NewRelaxedClientMapper will return a nil mapping if the object is not a recognized resource.
NewRelaxedRESTMapper returns a RESTMapper that will tolerate mappings that don't exist in provided RESTMapper, returning a mapping that is a best effort against the current server.
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.
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
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 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
No description provided by the author
RequestTransform is a function that is given a chance to modify the outgoing request.
VisitorFunc implements the Visitor interface for a matching function.
VisitorList implements Visit for the sub visitors it contains.