Documentation ¶
Index ¶
- func Formatter(request *types.APIRequest, resource *types.RawResource)
- func HandleCluster() map[string]http.Handler
- func LinkCluster(request *types.APIRequest) (types.APIObject, error)
- type Store
- func (c *Store) ByID(_ *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
- func (c *Store) Create(_ *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
- func (c *Store) Delete(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)
- func (c *Store) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
- func (c *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 ¶
func Formatter ¶
func Formatter(request *types.APIRequest, resource *types.RawResource)
Formatter cluster's formatter.
func HandleCluster ¶
HandleCluster cluster's action handler.
func LinkCluster ¶
func LinkCluster(request *types.APIRequest) (types.APIObject, error)
LinkCluster cluster's link handler.
Types ¶
type Store ¶
Store holds cluster's API state
func (*Store) ByID ¶
func (c *Store) ByID(_ *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
ByID returns cluster by ID.
func (*Store) Create ¶
func (c *Store) Create(_ *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
Create creates cluster based on the request data.
func (*Store) List ¶
func (c *Store) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
List returns clusters as list.
Click to show internal directories.
Click to hide internal directories.