Documentation ¶
Index ¶
- type ClusterManager
- func (clu *ClusterManager) Create(cluster *types.Cluster) error
- func (clu *ClusterManager) Delete(id uint) error
- func (clu *ClusterManager) GetById(id uint) (*types.Cluster, error)
- func (clu *ClusterManager) GetByName(name string) (*types.Cluster, error)
- func (clu *ClusterManager) GetByToken(token string) (*types.Cluster, error)
- func (clu *ClusterManager) List(cond ListClusterCondition) ([]*types.Cluster, error)
- func (clu *ClusterManager) Update(cluster *types.Cluster) error
- func (clu *ClusterManager) UpdateByObject(id uint, cluster *types.Cluster) error
- type ListClusterCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterManager ¶
func NewClusterManager ¶
func NewClusterManager(db *gorm.DB, listWatcherConfig *config.ListWatcherConfig, appMgr *project.AppManager) *ClusterManager
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) UpdateByObject ¶
func (clu *ClusterManager) UpdateByObject(id uint, cluster *types.Cluster) error
type ListClusterCondition ¶
type ListClusterCondition struct{}
Click to show internal directories.
Click to hide internal directories.