cluster

package
v0.0.0-...-1ae172a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterManager

type ClusterManager struct {
	//*CommonManager
	*gorm.DB
	// contains filtered or unexported fields
}

func NewClusterManager

func NewClusterManager(db *gorm.DB, listWatcherConfig *config.ListWatcherConfig, appMgr *project.AppManager) *ClusterManager

func (*ClusterManager) Create

func (clu *ClusterManager) Create(cluster *types.Cluster) error

func (*ClusterManager) Delete

func (clu *ClusterManager) Delete(id uint) error

func (*ClusterManager) GetById

func (clu *ClusterManager) GetById(id uint) (*types.Cluster, error)

func (*ClusterManager) GetByName

func (clu *ClusterManager) GetByName(name string) (*types.Cluster, error)

func (*ClusterManager) GetByToken

func (clu *ClusterManager) GetByToken(token string) (*types.Cluster, error)

func (*ClusterManager) List

func (clu *ClusterManager) List(cond ListClusterCondition) ([]*types.Cluster, error)

func (*ClusterManager) Update

func (clu *ClusterManager) Update(cluster *types.Cluster) error

func (*ClusterManager) UpdateByObject

func (clu *ClusterManager) UpdateByObject(id uint, cluster *types.Cluster) error

type ListClusterCondition

type ListClusterCondition struct{}

Jump to

Keyboard shortcuts

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