cluster

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

func NewClusterService

func NewClusterService() *Cluster

func (*Cluster) Close

func (srv *Cluster) Close()

func (*Cluster) Create

func (srv *Cluster) Create(ctx context.Context, name, kubeconfig, storageClass, server, extraApiServer, clusterInfo string, userId uint64) (model.ClusterModel, error)

func (*Cluster) Delete

func (srv *Cluster) Delete(ctx context.Context, clusterId uint64) error

func (*Cluster) DeleteByCreator

func (srv *Cluster) DeleteByCreator(ctx context.Context, userid uint64) error

func (*Cluster) Evict

func (srv *Cluster) Evict(id uint64)

func (*Cluster) Get

func (srv *Cluster) Get(ctx context.Context, id uint64) (model.ClusterModel, error)

func (*Cluster) GetAny

func (srv *Cluster) GetAny(ctx context.Context, where map[string]interface{}) ([]*model.ClusterModel, error)

func (*Cluster) GetCache

func (srv *Cluster) GetCache(id uint64) (model.ClusterModel, error)

func (*Cluster) GetList

func (srv *Cluster) GetList(ctx context.Context) ([]*model.ClusterList, error)

func (*Cluster) Update

func (srv *Cluster) Update(
	ctx context.Context, update map[string]interface{}, clusterId uint64,
) (*model.ClusterModel, error)

Jump to

Keyboard shortcuts

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