Documentation ¶
Index ¶
- type Store
- func (t *Store) ByID(_ *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
- func (t *Store) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
- func (t *Store) Delete(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)
- func (t *Store) List(_ *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
- func (t *Store) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, ...) (types.APIObject, error)
- func (t *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, _ types.WatchRequest) (chan types.APIEvent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store holds template's API state.
func (*Store) ByID ¶
func (t *Store) ByID(_ *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
ByID returns template by ID.
func (*Store) Create ¶
func (t *Store) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
Create creates template based on the request data.
func (*Store) List ¶
func (t *Store) List(_ *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
List returns templates as list.
Click to show internal directories.
Click to hide internal directories.