# Functions
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.
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 creates a visitor that will return resources that were encoded into the provided stream.
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.
SetNamespace ensures that every Info object visited will have a namespace set.
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.
DecoratedVisitor will invoke the decorators in order prior to invoking the visitor function passed to Visit.
DirectoryVisitor loads the specified files from a directory and passes them to visitors.
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.
PathVisitor visits a given path and returns an object representing the file at that path.
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 retrieves a client object for a given mapping.
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.
VisitorFunc implements the Visitor interface for a matching function.
VisitorList implements Visit for the sub visitors it contains.