storage

package
v1.10.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyingREST added in v1.3.0

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

ProxyingREST implements a RESTStorage for proxying resource.

func NewProxyingREST added in v1.3.0

func NewProxyingREST(ctl *proxy.Controller) *ProxyingREST

NewProxyingREST returns a RESTStorage object that will work against search.

func (*ProxyingREST) Connect added in v1.3.0

func (r *ProxyingREST) Connect(ctx context.Context, _ string, _ runtime.Object, responder rest.Responder) (http.Handler, error)

Connect returns a handler for proxy.

func (*ProxyingREST) ConnectMethods added in v1.3.0

func (r *ProxyingREST) ConnectMethods() []string

ConnectMethods returns the list of HTTP methods handled by Connect.

func (*ProxyingREST) Destroy added in v1.4.0

func (r *ProxyingREST) Destroy()

Destroy cleans up its resources on shutdown.

func (*ProxyingREST) GetSingularName added in v1.7.0

func (r *ProxyingREST) GetSingularName() string

GetSingularName returns singular name of resources

func (*ProxyingREST) NamespaceScoped added in v1.3.0

func (r *ProxyingREST) NamespaceScoped() bool

NamespaceScoped returns false because Proxy is not namespaced.

func (*ProxyingREST) New added in v1.3.0

func (r *ProxyingREST) New() runtime.Object

New return empty Proxy object.

func (*ProxyingREST) NewConnectOptions added in v1.3.0

func (r *ProxyingREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions returns an empty options object that will be used to pass options to the Connect method.

type REST

type REST struct {
	*genericregistry.Store
}

REST implements a RESTStorage for ResourceRegistry.

type ResourceRegistryStorage

type ResourceRegistryStorage struct {
	ResourceRegistry *REST
	Status           *StatusREST
}

ResourceRegistryStorage includes storage for ResourceRegistry and for all the subresources.

func NewResourceRegistryStorage

func NewResourceRegistryStorage(scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (*ResourceRegistryStorage, error)

NewResourceRegistryStorage returns a ResourceRegistryStorage object that will work against resourceRegistries.

type SearchREST

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

SearchREST implements a RESTStorage for search resource.

func NewSearchREST

func NewSearchREST(
	multiClusterInformerManager genericmanager.MultiClusterInformerManager,
	clusterLister clusterlister.ClusterLister,
	restMapper meta.RESTMapper) *SearchREST

NewSearchREST returns a RESTStorage object that will work against search.

func (*SearchREST) Connect

func (r *SearchREST) Connect(ctx context.Context, id string, _ runtime.Object, responder rest.Responder) (http.Handler, error)

Connect returns a handler for search.

func (*SearchREST) ConnectMethods

func (r *SearchREST) ConnectMethods() []string

ConnectMethods returns the list of HTTP methods handled by Connect.

func (*SearchREST) Destroy added in v1.4.0

func (r *SearchREST) Destroy()

Destroy cleans up its resources on shutdown.

func (*SearchREST) GetSingularName added in v1.7.0

func (r *SearchREST) GetSingularName() string

GetSingularName returns singular name of resources

func (*SearchREST) NamespaceScoped

func (r *SearchREST) NamespaceScoped() bool

NamespaceScoped returns false because Search is not namespaced.

func (*SearchREST) New

func (r *SearchREST) New() runtime.Object

New return empty Search object.

func (*SearchREST) NewConnectOptions

func (r *SearchREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions returns an empty options object that will be used to pass options to the Connect method.

type StatusREST

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

StatusREST implements the REST endpoint for changing the status of a ResourceRegistry.

func (*StatusREST) Destroy added in v1.4.0

func (r *StatusREST) Destroy()

Destroy cleans up its resources on shutdown.

func (*StatusREST) Get

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

Get retrieves the object from the storage. It is required to support Patch.

func (*StatusREST) GetResetFields

func (r *StatusREST) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set

GetResetFields implements rest.ResetFieldsStrategy

func (*StatusREST) New

func (r *StatusREST) New() runtime.Object

New returns empty ResourceRegistry.

func (*StatusREST) Update

func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, _ bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

Update alters the status subset of an object.

Jump to

Keyboard shortcuts

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