endpoints

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Endpoints

func (*Endpoints) CreateCluster

func (e *Endpoints) CreateCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateCluster create cluster

func (*Endpoints) DeleteCluster

func (e *Endpoints) DeleteCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteCluster delete cluster

func (*Endpoints) GetCluster

func (e *Endpoints) GetCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetCluster get cluster meta info

func (*Endpoints) ListCluster

func (e *Endpoints) ListCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListCluster list all cluster

func (*Endpoints) PatchCluster

func (e *Endpoints) PatchCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PatchCluster patch cluster

func (*Endpoints) Routes

func (e *Endpoints) Routes() []httpserver.Endpoint

Routes Return routes

func (*Endpoints) UpdateCluster

func (e *Endpoints) UpdateCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateCluster update cluster

type Option

type Option func(*Endpoints)

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

Jump to

Keyboard shortcuts

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