cluster

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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

func HandleCluster() map[string]http.Handler

HandleCluster cluster's action handler.

func LinkCluster

func LinkCluster(request *types.APIRequest) (types.APIObject, error)

LinkCluster cluster's link handler.

Types

type Store

type Store struct {
	empty.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) Delete

func (c *Store) Delete(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)

Delete deletes cluster by ID.

func (*Store) List

func (c *Store) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)

List returns clusters as list.

func (*Store) Watch

func (c *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, _ types.WatchRequest) (chan types.APIEvent, error)

Watch watches cluster change event.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL