stores

package
v0.0.0-...-2a34e5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComplete

func NewComplete(scheme *runtime.Scheme, s strategy.CompleteStrategy) rest.Storage

func NewStatus

func NewStatus(scheme *runtime.Scheme, updater strategy.StatusUpdater) rest.Storage

Types

type Builder

type Builder struct {
	List           strategy.Lister
	Update         strategy.Updater
	Get            strategy.Getter
	Create         strategy.Creater
	Delete         strategy.Deleter
	Destroy        strategy.Destroyer
	Watch          strategy.Watcher
	TableConverter rest.TableConvertor

	PrepareForUpdater strategy.PrepareForUpdater
	WarningsOnUpdater strategy.WarningsOnUpdater
	ValidateUpdater   strategy.ValidateUpdater

	PrepareForCreator strategy.PrepareForCreator
	WarningsOnCreator strategy.WarningsOnCreator
	Validator         strategy.Validator
	NameValidator     strategy.NameValidator

	ValidateDeleter strategy.ValidateDeleter
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(scheme *runtime.Scheme, obj kclient.Object) *Builder

func (Builder) Build

func (b Builder) Build() rest.Storage

func (Builder) WithCompleteCRUD

func (b Builder) WithCompleteCRUD(complete strategy.CompleteCRUD) *Builder

func (Builder) WithCreate

func (b Builder) WithCreate(create strategy.Creater) *Builder

func (Builder) WithDelete

func (b Builder) WithDelete(deleter strategy.Deleter) *Builder

func (Builder) WithDestroy

func (b Builder) WithDestroy(destroy strategy.Destroyer) *Builder

func (Builder) WithGet

func (b Builder) WithGet(get strategy.Getter) *Builder

func (Builder) WithList

func (b Builder) WithList(lister strategy.Lister) *Builder

func (Builder) WithPrepareCreate

func (b Builder) WithPrepareCreate(prepare strategy.PrepareForCreator) *Builder

func (Builder) WithPrepareUpdate

func (b Builder) WithPrepareUpdate(prepare strategy.PrepareForUpdater) *Builder

func (Builder) WithTableConverter

func (b Builder) WithTableConverter(table rest.TableConvertor) *Builder

func (Builder) WithUpdate

func (b Builder) WithUpdate(update strategy.Updater) *Builder

func (Builder) WithValidateCreate

func (b Builder) WithValidateCreate(validate strategy.Validator) *Builder

func (Builder) WithValidateDelete

func (b Builder) WithValidateDelete(validate strategy.ValidateDeleter) *Builder

func (Builder) WithValidateName

func (b Builder) WithValidateName(validate strategy.NameValidator) *Builder

func (Builder) WithValidateUpdate

func (b Builder) WithValidateUpdate(validate strategy.ValidateUpdater) *Builder

func (Builder) WithWarnOnCreate

func (b Builder) WithWarnOnCreate(warn strategy.WarningsOnCreator) *Builder

func (Builder) WithWarnOnUpdate

func (b Builder) WithWarnOnUpdate(warn strategy.WarningsOnUpdater) *Builder

func (Builder) WithWatch

func (b Builder) WithWatch(watch strategy.Watcher) *Builder

type Complete

func (*Complete) Destroy

func (c *Complete) Destroy()

func (*Complete) NamespaceScoped

func (c *Complete) NamespaceScoped() bool

type CreateGetListDeleteStore

func (*CreateGetListDeleteStore) NamespaceScoped

func (r *CreateGetListDeleteStore) NamespaceScoped() bool

func (*CreateGetListDeleteStore) New

type CreateGetListDeleteUpdateStore

func (*CreateGetListDeleteUpdateStore) NamespaceScoped

func (c *CreateGetListDeleteUpdateStore) NamespaceScoped() bool

func (*CreateGetListDeleteUpdateStore) New

type CreateGetListDeleteWatchStore

func (*CreateGetListDeleteWatchStore) NamespaceScoped

func (r *CreateGetListDeleteWatchStore) NamespaceScoped() bool

func (*CreateGetListDeleteWatchStore) New

type ListOnlyStore

func (*ListOnlyStore) NamespaceScoped

func (r *ListOnlyStore) NamespaceScoped() bool

type Status

type Status struct {
	// contains filtered or unexported fields
}

func (*Status) ConvertToTable

func (s *Status) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*Status) Destroy

func (s *Status) Destroy()

func (*Status) Get

func (s *Status) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*Status) New

func (s *Status) New() runtime.Object

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL