proxy

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnformatterStore added in v0.3.0

func NewUnformatterStore(s types.Store) types.Store

NewUnformatterStore returns a store which removes fields added by the formatter that kubernetes cannot recognize.

Types

type ErrorStore added in v0.3.0

type ErrorStore struct {
	types.Store
}

ErrorStore implements types.store with errors translated into APIErrors

func NewErrorStore added in v0.3.0

func NewErrorStore(s types.Store) *ErrorStore

NewErrorStore returns a store with errors translated into APIErrors

func (*ErrorStore) ByID added in v0.3.0

func (e *ErrorStore) ByID(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)

ByID looks up a single object by its ID.

func (*ErrorStore) Create added in v0.3.0

func (e *ErrorStore) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)

Create creates a single object in the store.

func (*ErrorStore) Delete added in v0.3.0

func (e *ErrorStore) Delete(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)

Delete deletes an object from a store.

func (*ErrorStore) List added in v0.3.0

func (e *ErrorStore) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)

List returns a list of resources.

func (*ErrorStore) Update added in v0.3.0

func (e *ErrorStore) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, id string) (types.APIObject, error)

Update updates a single object in the store.

func (*ErrorStore) Watch added in v0.3.0

func (e *ErrorStore) Watch(apiOp *types.APIRequest, schema *types.APISchema, wr types.WatchRequest) (chan types.APIEvent, error)

Watch returns a channel of events for a list or resource.

type WatchRefresh

type WatchRefresh struct {
	types.Store
	// contains filtered or unexported fields
}

WatchRefresh implements types.Store with awareness of changes to the requester's access.

func NewWatchRefresh added in v0.3.0

func NewWatchRefresh(s types.Store, asl accesscontrol.AccessSetLookup) *WatchRefresh

NewWatchRefresh returns a new store with awareness of changes to the requester's access.

func (*WatchRefresh) Watch

func (w *WatchRefresh) Watch(apiOp *types.APIRequest, schema *types.APISchema, wr types.WatchRequest) (chan types.APIEvent, error)

Watch performs a watch request which halts if the user's access level changes.

Jump to

Keyboard shortcuts

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