Documentation
¶
Index ¶
- func NewUnformatterStore(s types.Store) types.Store
- type ErrorStore
- func (e *ErrorStore) ByID(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
- func (e *ErrorStore) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
- func (e *ErrorStore) Delete(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
- func (e *ErrorStore) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
- func (e *ErrorStore) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, ...) (types.APIObject, error)
- func (e *ErrorStore) Watch(apiOp *types.APIRequest, schema *types.APISchema, wr types.WatchRequest) (chan types.APIEvent, error)
- type WatchRefresh
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorStore ¶ added in v0.3.0
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 ¶
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.