Versions in this module Expand all Collapse all v0 v0.0.7 Sep 4, 2025 Changes in this version + const APP_NAME + const RESOURCE_PREFIX + type ActiveDeployConfigRequest struct + func NewActiveDeployConfigRequest(clusterId string) *ActiveDeployConfigRequest + type AutoDelete struct + Enabled *bool + RetentionDuration int + type AutoDeploy struct + Branch string + Enabled *bool + Interval int + type Cluster struct + DeleteAt *time.Time + DeleteBy string + Id string + UpdateAt *time.Time + func NewCluster(spec ClusterSpec) (*Cluster, error) + func (c *Cluster) String() string + func (c *Cluster) TableName() string + type ClusterCreateSpec struct + AppServiceId string + CreateAt time.Time + Purpose PURPOSE + Type TYPE + type ClusterSpec struct + Creator string + Domain string + Namespace string + func NewClusterSpec() *ClusterSpec + func (r *ClusterSpec) SetAutoDeleteEnabled(v bool) *ClusterSpec + func (r *ClusterSpec) SetAutoDeployEnabled(v bool) *ClusterSpec + func (r *ClusterSpec) Validate() error + type ClusterUpdateSpec struct + AutoDelete AutoDelete + AutoDeploy AutoDeploy + Description string + Extras map[string]string + K8sDeployConfig K8sDeployConfig + Lables map[string]string + Name string + VmDeployConfig VmDeployConfig + type DEPLOY_STATUS string + const DEPLOY_STATUS_AVAILABLE + const DEPLOY_STATUS_COMPLETE + const DEPLOY_STATUS_DEGRADED + const DEPLOY_STATUS_FAILED + const DEPLOY_STATUS_PROGRESSING + const DEPLOY_STATUS_STABLE + const DEPLOY_STATUS_STOPPED + const DEPLOY_STATUS_UNDEPLOYED + type DESCRIBE_BY string + const DESCRIBE_BY_ID + type DeleteClusterRequest struct + Id string + type DeployConfigStatus struct + IsActive bool + LastActive *time.Time + func (d *DeployConfigStatus) SetLastActive(t time.Time) *DeployConfigStatus + func (d DeployConfigStatus) TableName() string + type DeployStatus struct + Detail string + Message string + Replicas int + Status DEPLOY_STATUS + SyncAt *time.Time + UpdateAt *time.Time + type DescribeClusterRequest struct + Id string + WithInstance bool + WithService bool + func NewDescribeClusterRequest(clusterId string) *DescribeClusterRequest + type K8sDeployConfig struct + K8sId string + Namespace string + WorkloadKind workload.WORKLOAD_KIND + WorkloadYaml string + type PURPOSE string + const PURPOSE_DEV_CI + const PURPOSE_DEV_FEATURE + const PURPOSE_ONLINE_BLUE_GREEN + const PURPOSE_ONLINE_ROLL_UPGRADE + const PURPOSE_RELEASE_GRAY + const PURPOSE_RELEASE_PRE + const PURPOSE_TEST_FEATURE + const PURPOSE_TEST_PERFORMANCE + const PURPOSE_TEST_RELEASE + type QueryClusterRequest struct + func NewQueryClusterRequest() *QueryClusterRequest + type QueryClusterSpec struct + AppId string + K8sId string + K8sNamespace string + Label map[string]string + Name string + type Service interface + ActiveDeployConfig func(context.Context, *ActiveDeployConfigRequest) (*Cluster, error) + CreateCluster func(context.Context, *ClusterSpec) (*Cluster, error) + DeleteCluster func(context.Context, *DeleteClusterRequest) (*Cluster, error) + DescribeCluster func(context.Context, *DescribeClusterRequest) (*Cluster, error) + QueryCluster func(context.Context, *QueryClusterRequest) (*types.Set[*Cluster], error) + UpdateCluster func(context.Context, *UpdateClusterRequest) (*Cluster, error) + UpdateDeployStatus func(context.Context, *UpdateDeployStatusRequest) (*Cluster, error) + func GetService() Service + type TYPE string + const TYPE_K8S + const TYPE_VM + type UpdateClusterRequest struct + type UpdateDeployConfigRequest struct + type UpdateDeployStatusRequest struct + type VmDeployConfig struct