Documentation ¶
Index ¶
- func Formatter(request *types.APIRequest, resource *types.RawResource)
- type Store
- func (cred *Store) ByID(_ *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
- func (cred *Store) Create(_ *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
- func (cred *Store) Delete(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)
- func (cred *Store) List(_ *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
- func (cred *Store) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, ...) (types.APIObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Formatter ¶ added in v0.6.0
func Formatter(request *types.APIRequest, resource *types.RawResource)
Types ¶
type Store ¶
Store holds credential API state.
func (*Store) ByID ¶
func (cred *Store) ByID(_ *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
ByID returns credential by ID.
func (*Store) Create ¶
func (cred *Store) Create(_ *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
Create creates credential based on the request data.
func (*Store) Delete ¶
func (cred *Store) Delete(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)
Delete deletes credential by ID.
func (*Store) List ¶
func (cred *Store) List(_ *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
List returns credentials as list.
Click to show internal directories.
Click to hide internal directories.