Documentation ¶
Index ¶
- Variables
- func CollectionFormat(request *types.APIRequest, collection *types.GenericCollection)
- func Format(_ *types.APIRequest, resource *types.RawResource)
- type Store
- func (e *Store) ByID(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)
- func (e *Store) Create(_ *types.APIRequest, _ *types.APISchema, data types.APIObject) (types.APIObject, error)
- func (e *Store) Delete(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)
- func (e *Store) List(_ *types.APIRequest, _ *types.APISchema) (types.APIObjectList, error)
- func (e *Store) Update(_ *types.APIRequest, _ *types.APISchema, data types.APIObject, id string) (types.APIObject, error)
- func (e *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, _ types.WatchRequest) (chan types.APIEvent, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActionHandlers = map[string]http.Handler{ "import": http.HandlerFunc(importHandler), "update-install-script": http.HandlerFunc(updateInstallScript), "cancel": http.HandlerFunc(cancelHandler), "download": http.HandlerFunc(downloadHandler), } LinkHandlers = map[string]http.Handler{ "export": http.HandlerFunc(exportHandler), } )
Functions ¶
func CollectionFormat ¶
func CollectionFormat(request *types.APIRequest, collection *types.GenericCollection)
func Format ¶
func Format(_ *types.APIRequest, resource *types.RawResource)
Types ¶
Click to show internal directories.
Click to hide internal directories.