Versions in this module Expand all Collapse all v0 v0.0.8 Sep 14, 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 ClusterServiceClient struct + func NewClusterServiceClient() *ClusterServiceClient + func (c *ClusterServiceClient) RPCUpdateDeployStatus(ctx context.Context, in *UpdateDeployStatusRequest) (*Cluster, error) + 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 + func ComputeK8sDeploymentStatus(deploy *appsv1.Deployment) (DEPLOY_STATUS, string) + 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 int32 + Status DEPLOY_STATUS + SyncAt *time.Time + UpdateAt *time.Time + func (d *DeployStatus) SetMessage(m string) *DeployStatus + func (d *DeployStatus) SetReplicas(r int32) *DeployStatus + func (d *DeployStatus) SetStatus(s DEPLOY_STATUS) *DeployStatus + func (d *DeployStatus) SetSyncAt(t time.Time) *DeployStatus + func (d *DeployStatus) SetUpdateAt(t time.Time) *DeployStatus + func (d *DeployStatus) TableName() string + 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 RPC interface + RPCUpdateDeployStatus func(context.Context, *UpdateDeployStatusRequest) (*Cluster, error) + 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) + func GetService() Service + type TYPE string + const TYPE_K8S + const TYPE_VM + func (t TYPE) String() string + type UpdateClusterRequest struct + type UpdateDeployConfigRequest struct + type UpdateDeployStatusRequest struct + func NewUpdateDeployStatusRequest(clusterId string) *UpdateDeployStatusRequest + type VmDeployConfig struct