Versions in this module Expand all Collapse all v0 v0.28.202 Oct 19, 2023 v0.28.201 Oct 19, 2023 Changes in this version + var FakeCategoryExpander restmapper.CategoryExpander = restmapper.SimpleCategoryExpander + var FileExtensions = []string + var InputExtensions = append(FileExtensions, "stdin") + var LocalResourceError = errors.New(...) + var StdinMultiUseError = errors.New("standard input cannot be used for multiple arguments") + func EnhanceListError(err error, opts metav1.ListOptions, subj string) error + func FilterNamespace(info *Info, err error) error + func FollowContinue(initialOpts *metav1.ListOptions, ...) error + func HasNames(args []string) (bool, error) + func IsParamUnsupportedError(err error) bool + func IsUsageError(err error) bool + func NewParamUnsupportedError(gvk schema.GroupVersionKind, param VerifiableQueryParam) error + func RetrieveLatest(info *Info, err error) error + func RetrieveLazy(info *Info, err error) error + func SplitResourceArgument(arg string) []string + func UnstructuredPlusDefaultContentConfig() rest.ContentConfig + func UpdateObjectNamespace(info *Info, err error) error + func ValidateSchema(data []byte, schema ContentValidator) error + type Builder struct + func NewBuilder(restClientGetter RESTClientGetter) *Builder + func NewFakeBuilder(fakeClientFn FakeClientFunc, restMapper RESTMapperFunc, ...) *Builder + func NewLocalBuilder() *Builder + func (b *Builder) AddError(err error) *Builder + func (b *Builder) AllNamespaces(allNamespace bool) *Builder + func (b *Builder) ContinueOnError() *Builder + func (b *Builder) DefaultNamespace() *Builder + func (b *Builder) Do() *Result + func (b *Builder) FieldSelectorParam(s string) *Builder + func (b *Builder) FilenameParam(enforceNamespace bool, filenameOptions *FilenameOptions, ...) *Builder + func (b *Builder) Flatten() *Builder + func (b *Builder) LabelSelector(selector string) *Builder + func (b *Builder) LabelSelectorParam(s string) *Builder + func (b *Builder) Latest() *Builder + func (b *Builder) Local() *Builder + func (b *Builder) LocalParam(local bool) *Builder + func (b *Builder) Mapper() *mapper + func (b *Builder) NamespaceParam(namespace string) *Builder + func (b *Builder) Path(recursive bool, paths ...string) *Builder + func (b *Builder) ReplaceAliases(input string) string + func (b *Builder) RequestChunksOf(chunkSize int64) *Builder + func (b *Builder) RequireNamespace() *Builder + func (b *Builder) RequireObject(require bool) *Builder + func (b *Builder) ResourceNames(resource string, names ...string) *Builder + func (b *Builder) ResourceTypeOrNameArgs(allowEmptySelector bool, args ...string) *Builder + func (b *Builder) ResourceTypes(types ...string) *Builder + func (b *Builder) Schema(schema ContentValidator) *Builder + func (b *Builder) SelectAllParam(selectAll bool) *Builder + func (b *Builder) SingleResourceType() *Builder + func (b *Builder) Stdin(fakeStdin io.Reader) *Builder + func (b *Builder) StdinInUse() *Builder + func (b *Builder) Stream(r io.Reader, name string) *Builder + func (b *Builder) Subresource(subresource string) *Builder + func (b *Builder) TransformRequests(opts ...RequestTransform) *Builder + func (b *Builder) URL(httpAttemptCount int, urls ...*url.URL) *Builder + func (b *Builder) Unstructured() *Builder + func (b *Builder) VisitorConcurrency(concurrency int) *Builder + func (b *Builder) WithScheme(scheme *runtime.Scheme, decodingVersions ...schema.GroupVersion) *Builder + type CRDFinder interface + HasCRD func(gvk schema.GroupKind) (bool, error) + func NewCRDFinder(getter CRDGetter) CRDFinder + type CRDGetter func() ([]schema.GroupKind, error) + func CRDFromDynamic(client dynamic.Interface) CRDGetter + type CategoryExpanderFunc func() (restmapper.CategoryExpander, error) + type ClientConfigFunc func() (*rest.Config, error) + type ConcurrentVisitorList struct + func (l ConcurrentVisitorList) Visit(fn VisitorFunc) error + type ContentValidator interface + ValidateBytes func(data []byte) error + type ContinueOnErrorVisitor struct + func (v ContinueOnErrorVisitor) Visit(fn VisitorFunc) error + type DecoratedVisitor struct + func (v DecoratedVisitor) Visit(fn VisitorFunc) error + type EagerVisitorList []Visitor + func (l EagerVisitorList) Visit(fn VisitorFunc) error + type ErrMatchFunc func(error) bool + type FakeClientFunc func(version schema.GroupVersion) (RESTClient, error) + type FileVisitor struct + FakeStdin io.Reader + Path string + func (v *FileVisitor) Visit(fn VisitorFunc) error + type FilenameOptions struct + Filenames []string + Kustomize string + Recursive bool + func (o *FilenameOptions) RequireFilenameOrKustomize() error + type FilterFunc func(info *Info, err error) (bool, error) + func FilterByLabelSelector(s labels.Selector) FilterFunc + type FilteredVisitor struct + func (v FilteredVisitor) Visit(fn VisitorFunc) error + type FlattenListVisitor struct + func (v FlattenListVisitor) Visit(fn VisitorFunc) error + type Helper struct + FieldManager string + FieldValidation string + NamespaceScoped bool + RESTClient RESTClient + Resource string + ServerDryRun bool + Subresource string + func NewHelper(client RESTClient, mapping *meta.RESTMapping) *Helper + func (m *Helper) Create(namespace string, modify bool, obj runtime.Object) (runtime.Object, error) + func (m *Helper) CreateWithOptions(namespace string, modify bool, obj runtime.Object, ...) (runtime.Object, error) + func (m *Helper) Delete(namespace, name string) (runtime.Object, error) + func (m *Helper) DeleteWithOptions(namespace, name string, options *metav1.DeleteOptions) (runtime.Object, error) + func (m *Helper) DryRun(dryRun bool) *Helper + func (m *Helper) Get(namespace, name string) (runtime.Object, error) + func (m *Helper) List(namespace, apiVersion string, options *metav1.ListOptions) (runtime.Object, error) + func (m *Helper) Patch(namespace, name string, pt types.PatchType, data []byte, ...) (runtime.Object, error) + func (m *Helper) Replace(namespace, name string, overwrite bool, obj runtime.Object) (runtime.Object, error) + func (m *Helper) Watch(namespace, apiVersion string, options *metav1.ListOptions) (watch.Interface, error) + func (m *Helper) WatchSingle(namespace, name, resourceVersion string) (watch.Interface, error) + func (m *Helper) WithFieldManager(fieldManager string) *Helper + func (m *Helper) WithFieldValidation(validationDirective string) *Helper + func (m *Helper) WithSubresource(subresource string) *Helper + type Info struct + Client RESTClient + Mapping *meta.RESTMapping + Name string + Namespace string + Object runtime.Object + ResourceVersion string + Source string + Subresource string + func (i *Info) Get() (err error) + func (i *Info) Namespaced() bool + func (i *Info) ObjectName() string + func (i *Info) Refresh(obj runtime.Object, ignoreError bool) error + func (i *Info) ResourceMapping() *meta.RESTMapping + func (i *Info) String() string + func (i *Info) Visit(fn VisitorFunc) error + func (i *Info) Watch(resourceVersion string) (watch.Interface, error) + type InfoListVisitor []*Info + func (infos InfoListVisitor) Visit(fn VisitorFunc) error + type KustomizeVisitor struct + func (v *KustomizeVisitor) Visit(fn VisitorFunc) error + type QueryParamVerifier struct + func NewQueryParamVerifier(dynamicClient dynamic.Interface, ...) *QueryParamVerifier + func (v *QueryParamVerifier) HasSupport(gvk schema.GroupVersionKind) error + type RESTClient interface + Delete func() *rest.Request + Get func() *rest.Request + Patch func(types.PatchType) *rest.Request + Post func() *rest.Request + Put func() *rest.Request + func NewClientWithOptions(c RESTClient, transforms ...RequestTransform) RESTClient + type RESTClientGetter interface + ToDiscoveryClient func() (discovery.CachedDiscoveryInterface, error) + ToRESTConfig func() (*rest.Config, error) + ToRESTMapper func() (meta.RESTMapper, error) + type RESTMapperFunc func() (meta.RESTMapper, error) + type RequestTransform func(*rest.Request) + type ResourceMapping interface + ResourceMapping func() *meta.RESTMapping + type Result struct + func (r *Result) Err() error + func (r *Result) IgnoreErrors(fns ...ErrMatchFunc) *Result + func (r *Result) Infos() ([]*Info, error) + func (r *Result) IntoSingleItemImplied(b *bool) *Result + func (r *Result) Mapper() *mapper + func (r *Result) Object() (runtime.Object, error) + func (r *Result) ResourceMapping() (*meta.RESTMapping, error) + func (r *Result) TargetsSingleItems() bool + func (r *Result) Visit(fn VisitorFunc) error + func (r *Result) Watch(resourceVersion string) (watch.Interface, error) + type Selector struct + Client RESTClient + FieldSelector string + LabelSelector string + LimitChunks int64 + Mapping *meta.RESTMapping + Namespace string + func NewSelector(client RESTClient, mapping *meta.RESTMapping, ...) *Selector + func (r *Selector) ResourceMapping() *meta.RESTMapping + func (r *Selector) Visit(fn VisitorFunc) error + func (r *Selector) Watch(resourceVersion string) (watch.Interface, error) + type StreamVisitor struct + Schema ContentValidator + Source string + func NewStreamVisitor(r io.Reader, mapper *mapper, source string, schema ContentValidator) *StreamVisitor + func (v *StreamVisitor) Visit(fn VisitorFunc) error + type URLVisitor struct + HttpAttemptCount int + URL *url.URL + func (v *URLVisitor) Visit(fn VisitorFunc) error + type VerifiableQueryParam string + const QueryParamFieldValidation + type Verifier interface + HasSupport func(gvk schema.GroupVersionKind) error + func NewFallbackQueryParamVerifier(primary Verifier, secondary Verifier) Verifier + func NewQueryParamVerifierV3(dynamicClient dynamic.Interface, oapiClient openapi.Client, ...) Verifier + type Visitor interface + Visit func(VisitorFunc) error + func ExpandPathsToFileVisitors(mapper *mapper, paths string, recursive bool, extensions []string, ...) ([]Visitor, error) + func FileVisitorForSTDIN(mapper *mapper, schema ContentValidator, fakeStdin io.Reader) Visitor + func NewDecoratedVisitor(v Visitor, fn ...VisitorFunc) Visitor + func NewFilteredVisitor(v Visitor, fn ...FilterFunc) Visitor + func NewFlattenListVisitor(v Visitor, typer runtime.ObjectTyper, mapper *mapper) Visitor + type VisitorFunc func(*Info, error) error + func RequireNamespace(namespace string) VisitorFunc + func SetNamespace(namespace string) VisitorFunc + type VisitorList []Visitor + func (l VisitorList) Visit(fn VisitorFunc) error + type Watchable interface + Watch func(resourceVersion string) (watch.Interface, error)