cluster

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPreCheckCluster = err("ErrPreCheckCluster", "auth failed")
	ErrCreateCluster   = err("ErrCreateCluster", "failed to create cluster")
	ErrUpdateCluster   = err("ErrUpdateCluster", "failed to update cluster")
	ErrPatchCluster    = err("ErrPatchCluster", "failed to patch cluster")
	ErrGetCluster      = err("ErrGetCluster", "failed to get cluster")
	ErrListCluster     = err("ErrListCluster", "failed to list cluster")
	ErrDeleteCluster   = err("ErrDeleteCluster", "failed to delete cluster")
	ErrGetClusterInfo  = err("ErrGetClusterInfo", "failed to get cluster info")
)

Functions

This section is empty.

Types

type ClusterService

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

func NewClusterService

func NewClusterService(options ...Option) *ClusterService

func (*ClusterService) Create

func (c *ClusterService) Create(req *pb.CreateClusterRequest) error

Create creates cluster

func (*ClusterService) CreateCluster

func (*ClusterService) CreateWithEvent

func (c *ClusterService) CreateWithEvent(req *pb.CreateClusterRequest) error

CreateWithEvent create cluster with event request

func (*ClusterService) DeleteByName

func (c *ClusterService) DeleteByName(clusterName string) error

DeleteByName delete cluster by name

func (*ClusterService) DeleteCluster

func (*ClusterService) DeleteWithEvent

func (c *ClusterService) DeleteWithEvent(clusterName string) error

DeleteWithEvent delete cluster with delete event

func (*ClusterService) Get

func (c *ClusterService) Get(idOrName string) (*pb.ClusterInfo, error)

Get gets *apistructs.ClusterInfo by name

func (*ClusterService) GetCluster

func (*ClusterService) List

func (c *ClusterService) List() ([]*pb.ClusterInfo, error)

List lists all cluster

func (*ClusterService) ListCluster

func (*ClusterService) ListClusterByType

func (c *ClusterService) ListClusterByType(clusterType string) ([]*pb.ClusterInfo, error)

func (*ClusterService) PatchCluster

func (*ClusterService) PatchWithEvent

func (c *ClusterService) PatchWithEvent(req *pb.PatchClusterRequest) error

PatchWithEvent patch with event

func (*ClusterService) Update

func (c *ClusterService) Update(req *pb.UpdateClusterRequest) error

Update update cluster

func (*ClusterService) UpdateCluster

func (*ClusterService) UpdateWithEvent

func (c *ClusterService) UpdateWithEvent(req *pb.UpdateClusterRequest) error

UpdateWithEvent update cluster & sender cluster update event

type Option

type Option = func(c *ClusterService)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

func WithDB

func WithDB(db *db.ClusterDB) Option

func WithOrg

func WithOrg(org org.ClientInterface) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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