Documentation
¶
Index ¶
- type Clusters
- func (c *Clusters) AddClusters(req apistructs.CloudClusterRequest, userid string) (uint64, error)
- func (c *Clusters) BatchUpgradeEdgeCluster(req apistructs.BatchUpgradeEdgeClusterRequest, userid string)
- func (c *Clusters) ClusterInfo(ctx context.Context, clusterNames []string) ([]map[string]map[string]apistructs.NameValue, error)
- func (c *Clusters) ClusterPreview(req apistructs.CloudClusterRequest) ([]apistructs.CloudResource, error)
- func (c *Clusters) GetOrgClusterInfo(req apistructs.OrgClusterInfoRequest) (apistructs.OrgClusterInfoData, error)
- func (c *Clusters) GetOrgInfo(req *apistructs.OrgSearchRequest) (map[uint64]apistructs.OrgDTO, error)
- func (c *Clusters) ListClusters(req apistructs.OrgClusterInfoRequest) (result []apistructs.OrgClusterInfoBasicData, err error)
- func (c *Clusters) OfflineEdgeCluster(req apistructs.OfflineEdgeClusterRequest, userid string, orgid string) (uint64, error)
- func (c *Clusters) UpdateClusterVersion(req []apistructs.OrgClusterInfoBasicData) error
- func (c *Clusters) UpgradeEdgeCluster(req apistructs.UpgradeEdgeClusterRequest, userid string, orgid string) (recordID uint64, status int, precheckHint string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clusters ¶
type Clusters struct {
// contains filtered or unexported fields
}
func (*Clusters) AddClusters ¶
func (c *Clusters) AddClusters(req apistructs.CloudClusterRequest, userid string) (uint64, error)
func (*Clusters) BatchUpgradeEdgeCluster ¶
func (c *Clusters) BatchUpgradeEdgeCluster(req apistructs.BatchUpgradeEdgeClusterRequest, userid string)
func (*Clusters) ClusterInfo ¶
func (*Clusters) ClusterPreview ¶
func (c *Clusters) ClusterPreview(req apistructs.CloudClusterRequest) ([]apistructs.CloudResource, error)
func (*Clusters) GetOrgClusterInfo ¶
func (c *Clusters) GetOrgClusterInfo(req apistructs.OrgClusterInfoRequest) (apistructs.OrgClusterInfoData, error)
func (*Clusters) GetOrgInfo ¶
func (c *Clusters) GetOrgInfo(req *apistructs.OrgSearchRequest) (map[uint64]apistructs.OrgDTO, error)
func (*Clusters) ListClusters ¶
func (c *Clusters) ListClusters(req apistructs.OrgClusterInfoRequest) (result []apistructs.OrgClusterInfoBasicData, err error)
func (*Clusters) OfflineEdgeCluster ¶
func (c *Clusters) OfflineEdgeCluster(req apistructs.OfflineEdgeClusterRequest, userid string, orgid string) (uint64, error)
func (*Clusters) UpdateClusterVersion ¶
func (c *Clusters) UpdateClusterVersion(req []apistructs.OrgClusterInfoBasicData) error
func (*Clusters) UpgradeEdgeCluster ¶
func (c *Clusters) UpgradeEdgeCluster(req apistructs.UpgradeEdgeClusterRequest, userid string, orgid string) (recordID uint64, status int, precheckHint string, err error)
status:
1 -- in processing, jump to check log 2 -- do precheck 3 -- invalid, do not support (non k8s cluster, central cluster, higher version ecluster)
Click to show internal directories.
Click to hide internal directories.