Documentation ¶
Index ¶
- func ToListOpts(namespace string, opts storage.ListOptions) *kclient.ListOptions
- type Base
- type CompleteCRUD
- type CompleteStrategy
- type CreateAdapter
- func (a *CreateAdapter) Canonicalize(obj runtime.Object)
- func (a *CreateAdapter) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error)
- func (a *CreateAdapter) NamespaceScoped() bool
- func (a *CreateAdapter) New() runtime.Object
- func (a *CreateAdapter) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (a *CreateAdapter) Validate(ctx context.Context, obj runtime.Object) (result field.ErrorList)
- func (a *CreateAdapter) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string
- type Creater
- type DeleteAdapter
- func (a *DeleteAdapter) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (a *DeleteAdapter) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error)
- func (a *DeleteAdapter) Recognizes(gvk schema.GroupVersionKind) bool
- type Deleter
- type DestroyAdapter
- type Destroyer
- type GetAdapter
- type GetAttr
- type GetToLister
- type Getter
- type ListAdapter
- func (l *ListAdapter) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (l *ListAdapter) ListPredicate(ctx context.Context, p storage.SelectionPredicate, ...) (runtime.Object, error)
- func (l *ListAdapter) NamespaceScoped() bool
- func (l *ListAdapter) NewList() runtime.Object
- type Lister
- type NameValidator
- type NamespaceScoper
- type NewAdapter
- type Newer
- type PrepareForCreator
- type PrepareForUpdater
- type Scoper
- type ScoperAdapter
- type SingularNameAdapter
- type Status
- func (s *Status) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (s *Status) Destroy()
- func (s *Status) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (s *Status) New() runtime.Object
- func (s *Status) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type StatusUpdater
- type TableAdapter
- type UpdateAdapter
- func (a *UpdateAdapter) AllowCreateOnUpdate() bool
- func (a *UpdateAdapter) AllowUnconditionalUpdate() bool
- func (a *UpdateAdapter) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (a *UpdateAdapter) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (a *UpdateAdapter) ValidateUpdate(ctx context.Context, obj, old runtime.Object) (result field.ErrorList)
- func (a *UpdateAdapter) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string
- type Updater
- type ValidateDeleter
- type ValidateUpdater
- type Validator
- type WarningsOnCreator
- type WarningsOnUpdater
- type WatchAdapter
- func (w *WatchAdapter) NamespaceScoped() bool
- func (w *WatchAdapter) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
- func (w *WatchAdapter) WatchPredicate(ctx context.Context, p storage.SelectionPredicate, resourceVersion string) (watch.Interface, error)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToListOpts ¶
func ToListOpts(namespace string, opts storage.ListOptions) *kclient.ListOptions
Types ¶
type Base ¶
type Base interface { rest.Storage rest.Scoper rest.TableConvertor rest.SingularNameProvider }
type CompleteStrategy ¶
type CreateAdapter ¶
type CreateAdapter struct { names.NameGenerator *runtime.Scheme Warner WarningsOnCreator Validator Validator NameValidator NameValidator PrepareForCreater PrepareForCreator // contains filtered or unexported fields }
func (*CreateAdapter) Canonicalize ¶
func (a *CreateAdapter) Canonicalize(obj runtime.Object)
func (*CreateAdapter) Create ¶
func (a *CreateAdapter) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*CreateAdapter) NamespaceScoped ¶
func (a *CreateAdapter) NamespaceScoped() bool
func (*CreateAdapter) New ¶
func (a *CreateAdapter) New() runtime.Object
func (*CreateAdapter) PrepareForCreate ¶
func (a *CreateAdapter) PrepareForCreate(ctx context.Context, obj runtime.Object)
func (*CreateAdapter) WarningsOnCreate ¶
type DeleteAdapter ¶
type DeleteAdapter struct { ValidateDeleter ValidateDeleter // contains filtered or unexported fields }
func (*DeleteAdapter) Delete ¶
func (a *DeleteAdapter) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
func (*DeleteAdapter) ObjectKinds ¶
func (a *DeleteAdapter) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error)
func (*DeleteAdapter) Recognizes ¶
func (a *DeleteAdapter) Recognizes(gvk schema.GroupVersionKind) bool
type DestroyAdapter ¶
type DestroyAdapter struct {
Destroyer Destroyer
}
func NewDestroyAdapter ¶
func NewDestroyAdapter(destroy Destroyer) *DestroyAdapter
func (*DestroyAdapter) Destroy ¶
func (d *DestroyAdapter) Destroy()
type GetAdapter ¶
type GetAdapter struct {
// contains filtered or unexported fields
}
func NewGet ¶
func NewGet(strategy Getter) *GetAdapter
type GetToLister ¶
type ListAdapter ¶
type ListAdapter struct { *TableAdapter // contains filtered or unexported fields }
func NewList ¶
func NewList(strategy Lister) *ListAdapter
func (*ListAdapter) List ¶
func (l *ListAdapter) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*ListAdapter) ListPredicate ¶
func (l *ListAdapter) ListPredicate(ctx context.Context, p storage.SelectionPredicate, options *metainternalversion.ListOptions) (runtime.Object, error)
ListPredicate returns a list of all the items matching the given SelectionPredicate.
func (*ListAdapter) NamespaceScoped ¶
func (l *ListAdapter) NamespaceScoped() bool
func (*ListAdapter) NewList ¶
func (l *ListAdapter) NewList() runtime.Object
type Lister ¶
type Lister interface { List(ctx context.Context, namespace string, opts storage.ListOptions) (types.ObjectList, error) New() types.Object NewList() types.ObjectList }
type NameValidator ¶
type NamespaceScoper ¶
type NamespaceScoper interface {
NamespaceScoped() bool
}
type NewAdapter ¶
type NewAdapter struct {
// contains filtered or unexported fields
}
func NewNew ¶
func NewNew(n Newer) *NewAdapter
func (*NewAdapter) New ¶
func (n *NewAdapter) New() runtime.Object
type PrepareForCreator ¶
type PrepareForUpdater ¶
type ScoperAdapter ¶
type ScoperAdapter struct {
// contains filtered or unexported fields
}
func NewScoper ¶
func NewScoper(strategy Newer) *ScoperAdapter
func (*ScoperAdapter) NamespaceScoped ¶
func (s *ScoperAdapter) NamespaceScoped() bool
type SingularNameAdapter ¶
func NewSingularNameAdapter ¶
func NewSingularNameAdapter(obj runtime.Object, scheme *runtime.Scheme) *SingularNameAdapter
func (*SingularNameAdapter) GetSingularName ¶
func (s *SingularNameAdapter) GetSingularName() string
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) ConvertToTable ¶
func (*Status) Update ¶
func (s *Status) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
type StatusUpdater ¶
type TableAdapter ¶
type TableAdapter struct {
// contains filtered or unexported fields
}
func NewTable ¶
func NewTable(strategy any) *TableAdapter
type UpdateAdapter ¶
type UpdateAdapter struct { *CreateAdapter PrepareForUpdater PrepareForUpdater WarningsOnUpdater WarningsOnUpdater ValidateUpdater ValidateUpdater // contains filtered or unexported fields }
func NewUpdateStatus ¶
func NewUpdateStatus(schema *runtime.Scheme, strategy StatusUpdater) *UpdateAdapter
func (*UpdateAdapter) AllowCreateOnUpdate ¶
func (a *UpdateAdapter) AllowCreateOnUpdate() bool
func (*UpdateAdapter) AllowUnconditionalUpdate ¶
func (a *UpdateAdapter) AllowUnconditionalUpdate() bool
func (*UpdateAdapter) PrepareForUpdate ¶
func (a *UpdateAdapter) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
func (*UpdateAdapter) Update ¶
func (a *UpdateAdapter) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
func (*UpdateAdapter) ValidateUpdate ¶
func (*UpdateAdapter) WarningsOnUpdate ¶
type ValidateDeleter ¶
type ValidateUpdater ¶
type WarningsOnCreator ¶
type WarningsOnUpdater ¶
type WatchAdapter ¶
type WatchAdapter struct {
// contains filtered or unexported fields
}
func NewWatch ¶
func NewWatch(strategy Watcher) *WatchAdapter
func (*WatchAdapter) NamespaceScoped ¶
func (w *WatchAdapter) NamespaceScoped() bool
func (*WatchAdapter) Watch ¶
func (w *WatchAdapter) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
func (*WatchAdapter) WatchPredicate ¶
func (w *WatchAdapter) WatchPredicate(ctx context.Context, p storage.SelectionPredicate, resourceVersion string) (watch.Interface, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.