Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const ErrCode0101 + const ErrCode0107 + const ErrCode0108 + const ErrCode0109 + const ErrCode0110 + const ErrCode0111 + const RuntimeNotFound + func AddECIConfigToServiceGroupCreateV2Request(sg *apistructs.ServiceGroupCreateV2Request, vendor string) + func AppendEnv(target map[string]string, overlay map[string]string) + func ApplyOverlay(d *diceyml.Object, overlay *diceyml.Object) + func BuildDiscoveryConfig(appName string, group *apistructs.ServiceGroup) map[string]string + func ConvertBinds(volumePrefixDir string, vol []string) (binds []apistructs.ServiceBind) + func ConvertHealthCheck(hc spec.HealthCheck) *apistructs.NewHealthCheck + func ConvertServiceLabels(groupLabels, serviceLabels map[string]string, serviceName string) map[string]string + func ConvertToLegacyDice(dice *diceyml.DiceYaml, addonActions map[string]interface{}) *spec.LegacyDice + func ConvertVolume(volume diceyml.Volume) diceyml.Volume + func DoJson(r *httpclient.Request, o interface{}) error + func ErrResp(status int, err *apistructs.ErrorResponse) (httpserver.Responser, error) + func ErrResp0101(err error, msg string) (httpserver.Responser, error) + func ErrRespIllegalParam(err error, msg string) (httpserver.Responser, error) + func FindCRBRRunningPipeline(appID uint64, env string, ymlName string, bdl *bundle.Bundle) ([]apistructs.PagePipeline, error) + func FindCreatingRuntimesByRelease(appID uint64, envs map[string][]string, ymlName string, bdl *bundle.Bundle) ([]apistructs.RuntimeSummaryDTO, error) + func GenCreateByReleasePipelineYaml(releaseID string, workspaces []string) apistructs.PipelineYml + func GenRedeployPipelineYaml(runtimeID uint64) apistructs.PipelineYml + func GetPageInfo(r *http.Request) (apistructs.PageInfo, error) + func GetRealIP(request *http.Request) string + func IsProjectECIEnable(bdl *bundle.Bundle, projectID uint64, workspace string, orgID uint64, ...) bool + func IsValidK8sSvcName(name string) bool + func ParseDeploymentOrderStatus(appStatus apistructs.DeploymentOrderStatusMap) apistructs.DeploymentOrderStatus + func ParseDeploymentStatus(status apistructs.DeploymentStatus) apistructs.DeploymentStatus + func ParseOrderName(uuid string) string + func Round(f float64, n int) float64 + func Smaller(a, b float64) bool + type ErrCode string + type Resp struct + Data interface{} + Err *apistructs.ErrorResponse + Success bool + type RespForRead struct + Data json.RawMessage + Err *apistructs.ErrorResponse + Success bool