Versions in this module Expand all Collapse all v1 v1.5.0 Jan 6, 2022 v1.4.0 Nov 16, 2021 Changes in this version + type ClusterDaily struct + ClusterName string + CreatedAt time.Time + ID int + UpdatedAt time.Time + type ProjectDaily struct + CpuQuota float64 + CpuRequest float64 + CreatedAt time.Time + ID int + MemQuota float64 + MemRequest float64 + ProjectID string + ProjectName string + UpdatedAt time.Time type RecordType + const RecordTypeCreateClusterCredential + const RecordTypeResetClusterCredential v1.3.2 Oct 19, 2021 v1.3.1 Oct 14, 2021 v1.3.0 Oct 11, 2021 v1.3.0-rc Sep 10, 2021 v1.2.2 Sep 7, 2021 v1.2.1 Aug 20, 2021 v1.2.0 Aug 13, 2021 v1.2.0-rc Aug 2, 2021 v1.1.1 Aug 3, 2021 v1.1.0 Jul 31, 2021 Changes in this version + type AddonManagement struct + AddonConfig string + AddonID string + CPU float64 + CreateTime time.Time + ID uint64 + Mem uint64 + Name string + Nodes int + OrgID string + ProjectID string + UpdateTime time.Time + func (AddonManagement) TableName() string + type AddonNode struct + CPU float64 + CreatedAt time.Time + Deleted string + ID string + InstanceID string + Mem uint64 + Namespace string + NodeName string + UpdatedAt time.Time + func (AddonNode) TableName() string + type AddonNodeList []AddonNode + func (r AddonNodeList) Len() int + func (r AddonNodeList) Less(i, j int) bool + func (r AddonNodeList) Swap(i, j int) + type DBClient struct + func Open(db *dbengine.DBEngine) *DBClient + func (c *DBClient) AddonManageReader() *addonManageReader + func (c *DBClient) AddonManageWriter() *addonManageWriter + func (c *DBClient) AddonNodeReader() *addonNodeReader + func (c *DBClient) AddonNodeWriter() *addonNodeWriter + func (c *DBClient) CreateDeployment(deployment *Deployments) error + func (c *DBClient) CreateJob(Job *Jobs) error + func (c *DBClient) DeleteDeployment(orgID string, taskID uint64) error + func (c *DBClient) DeleteJob(orgID string, taskID uint64) error + func (c *DBClient) GetDeployment(orgID string, taskID uint64) []Deployments + func (c *DBClient) GetJob(orgID string, taskID uint64) []Jobs + func (c *DBClient) ListDeploymentsByOrgID(param *apistructs.OrgRunningTasksListRequest, orgID uint64) (int64, *[]Deployments, error) + func (c *DBClient) ListExpiredDeployments(startTime string) []Deployments + func (c *DBClient) ListExpiredJobs(startTime string) []Jobs + func (c *DBClient) ListJobsByOrgID(param *apistructs.OrgRunningTasksListRequest, orgID uint64) (int64, *[]Jobs, error) + func (c *DBClient) ListRunningDeployments() []Deployments + func (c *DBClient) ListRunningJobs() []Jobs + func (c *DBClient) OrgAKReader() *orgakReader + func (c *DBClient) OrgAKWriter() *orgakWriter + func (c *DBClient) RecordsReader() *recordsReader + func (c *DBClient) RecordsWriter() *recordsWriter + func (c *DBClient) ResourceRoutingReader() *resourceRoutingReader + func (c *DBClient) ResourceRoutingWriter() *resourceRoutingWriter + func (c *DBClient) UpdateDeploymentStatus(deployment *Deployments) error + func (c *DBClient) UpdateJobStatus(Job *Jobs) error + type Deployments struct + ApplicationID uint64 + ApplicationName string + ClusterName string + CostTimeSec int64 + CreatedAt time.Time + Env string + Extra ExtraDeployment + ID int64 + OrgID uint64 + PipelineID uint64 + ProjectID uint64 + ProjectName string + QueueTimeSec int64 + ReleaseID string + RuntimeID string + Status string + TaskID uint64 + TaskName string + UpdatedAt time.Time + UserID string + func (Deployments) TableName() string + type ExtraDeployment struct + type ExtraJob struct + type Jobs struct + ApplicationID uint64 + ApplicationName string + ClusterName string + CostTimeSec int64 + CreatedAt time.Time + Env string + Extra ExtraJob + ID int64 + OrgID uint64 + PipelineID uint64 + ProjectID uint64 + ProjectName string + QueueTimeSec int64 + Status string + TaskID uint64 + TaskName string + TaskType string + UpdatedAt time.Time + UserID string + func (Jobs) TableName() string + type OrgAK struct + AccessKey string + Description string + OrgID string + SecretKey string + Vendor VendorType + func (OrgAK) TableName() string + type Record struct + ClusterName string + Detail string + OrgID string + PipelineID uint64 + RecordType RecordType + Status StatusType + UserID string + func (Record) TableName() string + type RecordType string + const RecordTypeAddAliACKECluster + const RecordTypeAddAliCSECluster + const RecordTypeAddAliCSManagedCluster + const RecordTypeAddAliECSECluster + const RecordTypeAddAliNodes + const RecordTypeAddEssNodes + const RecordTypeAddNodes + const RecordTypeCreateAliCloudGateway + const RecordTypeCreateAliCloudMysql + const RecordTypeCreateAliCloudMysqlDB + const RecordTypeCreateAliCloudOns + const RecordTypeCreateAliCloudOnsTopic + const RecordTypeCreateAliCloudOss + const RecordTypeCreateAliCloudRedis + const RecordTypeDeleteEssNodes + const RecordTypeDeleteEssNodesCronJob + const RecordTypeDeleteNodes + const RecordTypeImportKubernetesCluster + const RecordTypeOfflineEdgeCluster + const RecordTypeRmNodes + const RecordTypeSetLabels + const RecordTypeUpgradeEdgeCluster + func (r RecordType) String() string + type ResourceRouting struct + AddonID string + ClusterName string + Detail string + OrgID string + ProjectID string + RecordID uint64 + ResourceID string + ResourceName string + ResourceType ResourceType + Status RoutingStatus + Vendor string + func (ResourceRouting) TableName() string + type ResourceType string + const ResourceTypeGateway + const ResourceTypeGatewayVpcGrant + const ResourceTypeMysql + const ResourceTypeMysqlDB + const ResourceTypeOns + const ResourceTypeOnsTopic + const ResourceTypeOss + const ResourceTypeRedis + func (r ResourceType) String() string + type RoutingStatus string + const ResourceStatusAttached + const ResourceStatusCreated + const ResourceStatusDeleted + const ResourceStatusDetached + func (r RoutingStatus) String() string + type StatusType string + const StatusTypeFailed + const StatusTypeProcessing + const StatusTypeSuccess + const StatusTypeSuccessed + const StatusTypeUnknown + func (s StatusType) String() string + type VendorType string + const VendorTypeAliyun v1.1.0-rc Jul 8, 2021