Documentation
¶
Index ¶
- Constants
- Variables
- func CheckRandomStringStrength(password string, length int, enableSpecialChar bool) error
- func CommandExec(command, workDir string) (string, string, error)
- func ExtractEmbedFile(f embed.FS, rootDir string, targetDir string) error
- func GetCmdBaseName() string
- func Indent(s string) string
- func ParseTplFromVals(vals interface{}, tplStr string) (string, error)
- func RandomString(n int, enableSpecialChar bool, suffix string) string
- func RemoveMapEmptyItems(m map[string]interface{}) map[string]interface{}
- func ValidateIpAddress(s string) error
- func ValidateMinusNameID(s string) error
- func ValidatePipelineName(s string) error
- func ValidateRunName(s string) error
- func YamlIndent(obj interface{}) ([]byte, error)
- type AccessToken
- type AdminKind
- type AdminKindList
- type AdminMetadata
- type AdminWebhook
- type ApplyIngressStepDef
- type ApplyMeshStepDef
- type ArchSetting
- type ArtifactDef
- type ArtifactRepo
- type ArtifactRepoConfig
- type ArtifactStepDef
- type BuildDef
- type BuildStepDef
- type CheckDeployStepDef
- type CheckQuotaStepDef
- type Component
- type ComponentDebug
- type ComponentTemplate
- type ConfigPath
- type ConsoleKind
- type ConsoleKindList
- type ConsoleMetadata
- type CustomOpsDef
- type CustomStepConf
- type CustomStepConfDetail
- type CustomStepConfOutput
- type CustomStepDef
- type CustomStepDefs
- type CustomStepDockerConf
- type CustomStepModuleDef
- type CustomStepPhaseDef
- type Database
- type DefClone
- type DefKind
- type DefKindList
- type DefMetadata
- type DefProjectSummary
- type DefUpdate
- type DefUpdateList
- type DeployArtifactDef
- type DeployArtifactStepDef
- type DeployConfigMap
- type DeployContainerDef
- type DeployContainerPatch
- type DeployContainerStepDef
- type DeployHttpGet
- type DeployLoadBalancer
- type DeployLocalPort
- type DeployNodePort
- type DeploySecret
- type DeploySpecDebug
- type DeploySpecStatic
- type DeployVolume
- type DockerBuildEnv
- type DoryConfig
- type EnvDebugSpec
- type EnvK8s
- type EnvK8sDetail
- type EnvNodePort
- type ExtraPushImage
- type GetRunSettingsStepDef
- type GitPullStepDef
- type GitRepo
- type GitRepoConfig
- type GitRepoDir
- type Host
- type HostAlias
- type HpaConfig
- type ImageRepo
- type ImageRepoConfig
- type InputStepDef
- type InstallConfig
- func (ic *InstallConfig) HarborProjectAdd(projectName string) error
- func (ic *InstallConfig) HarborQuery(url, method string, param map[string]interface{}) (string, int, error)
- func (ic *InstallConfig) KubernetesPodsGet(namespace string) ([]KubePod, error)
- func (ic *InstallConfig) KubernetesQuery(url, method string, param map[string]interface{}) (string, int, error)
- func (ic *InstallConfig) UnmarshalMapValues() (map[string]interface{}, error)
- func (ic *InstallConfig) VerifyInstallConfig() error
- type InstallDockerImage
- type InstallDockerImages
- type IstioConnectionPool
- type IstioConnectionPoolHttp
- type IstioConnectionPoolTcp
- type IstioConsistentHash
- type IstioDef
- type IstioGatewayDef
- type IstioLoadBalancer
- type IstioOutlierDetection
- type KubeNode
- type KubePod
- type KubePodList
- type KubePodState
- type KubernetesHaCluster
- type Module
- type ModuleRun
- type NameValue
- type OpsBatchDef
- type PackageDef
- type PackageImageStepDef
- type PatchAction
- type Pipeline
- type PipelineBuild
- type PipelineBuildDef
- type PipelineCron
- type PipelineDef
- type PipelineStepDef
- type PipelineTrigger
- type Project
- type ProjectAvailableEnv
- type ProjectAvailableEnvConsole
- type ProjectConsole
- type ProjectDef
- type ProjectInfo
- type ProjectMember
- type ProjectOutput
- type ProjectPipeline
- type ProxyRepo
- type QuotaConfig
- type QuotaPod
- type QuotaResource
- type RepoNameList
- type ResourceVersion
- type Run
- type RunInput
- type RunInputOption
- type ScanCodeRepo
- type ScanCodeRepoConfig
- type ScanCodeStepDef
- type ScanImageStepDef
- type SecurityContext
- type SyncImageStepDef
- type TestApiStepDef
- type TestPerformanceStepDef
- type TestWebuiStepDef
- type User
- type UserDetail
- type UserProject
- type WebhookNameVale
- type WsAdminLog
- type WsRunLog
Constants ¶
View Source
const ( VersionDoryCli = "v1.7.1" VersionDoryEngine = "v2.7.1" VersionDoryFrontend = "v2.7.1" ConfigDirDefault = ".dorycli" ConfigFileDefault = "config.yaml" EnvVarConfigFile = "DORYCONFIG" DirInstallScripts = "install_scripts" DirInstallConfigs = "install_configs" TimeoutDefault = 5 LogTypeInfo = "INFO" LogTypeWarning = "WARNING" LogTypeError = "ERROR" StatusSuccess = "SUCCESS" StatusFail = "FAIL" InputValueAbort = "ABORT" InputValueConfirm = "CONFIRM" LogStatusInput = "INPUT" // special usage for websocket send notice directives )
Variables ¶
View Source
var ( // !!! go embed function will ignore _* and .* file //go:embed install_scripts/* install_scripts/kubernetes/harbor/.helmignore install_scripts/kubernetes/harbor/templates/_helpers.tpl FsInstallScripts embed.FS //go:embed install_configs/* FsInstallConfigs embed.FS //go:embed language/* FsLanguage embed.FS DefKindAll = "all" DefKindBuild = "build" DefKindPackage = "package" DefKindArtifact = "artifact" DefKindDeployContainer = "deploy-container" DefKindDeployArtifact = "deploy-artifact" DefKindIstio = "istio" DefKindIstioGateway = "istio-gateway" DefKindCustomStep = "custom-step" DefKindPipeline = "pipeline" DefKindCustomOps = "custom-ops" DefKindOpsBatch = "ops-batch" DefKindDockerIgnore = "docker-ignore" DefCmdKinds = map[string]string{ DefKindAll: "", DefKindBuild: "buildDefs", DefKindPackage: "packageDefs", DefKindArtifact: "artifactDefs", DefKindDeployContainer: "deployContainerDefs", DefKindDeployArtifact: "deployArtifactDefs", DefKindIstio: "istioDefs", DefKindIstioGateway: "istioGatewayDef", DefKindCustomStep: "customStepDef", DefKindPipeline: "pipelineDef", DefKindCustomOps: "customOpsDefs", DefKindOpsBatch: "opsBatchDefs", DefKindDockerIgnore: "dockerIgnoreDefs", } AdminKindAll = "all" AdminKindComponentTemplate = "component-template" AdminKindEnvK8s = "env-k8s" AdminKindCustomStep = "custom-step" AdminKindUser = "user" AdminKindDockerBuildEnv = "docker-build-env" AdminKindGitRepoConfig = "git-repo-config" AdminKindImageRepoConfig = "image-repo-config" AdminKindArtifactRepoConfig = "artifact-repo-config" AdminKindScanCodeRepoConfig = "scan-code-repo-config" AdminKindAdminWebhook = "admin-webhook" AdminKinds = []string{ AdminKindComponentTemplate, AdminKindEnvK8s, AdminKindCustomStep, AdminKindUser, AdminKindDockerBuildEnv, AdminKindGitRepoConfig, AdminKindImageRepoConfig, AdminKindArtifactRepoConfig, AdminKindScanCodeRepoConfig, AdminKindAdminWebhook, } AdminCmdKinds = map[string]string{ AdminKindAll: "", AdminKindUser: "user", AdminKindCustomStep: "customStepConf", AdminKindEnvK8s: "envK8s", AdminKindComponentTemplate: "componentTemplate", AdminKindDockerBuildEnv: "dockerBuildEnv", AdminKindGitRepoConfig: "gitRepoConfig", AdminKindImageRepoConfig: "imageRepoConfig", AdminKindArtifactRepoConfig: "artifactRepoConfig", AdminKindScanCodeRepoConfig: "scanCodeRepoConfig", AdminKindAdminWebhook: "adminWebhook", } ConsoleKindAll = "all" ConsoleKindMember = "member" ConsoleKindPipeline = "pipeline" ConsoleKindPipelineTrigger = "pipeline-trigger" ConsoleKindHost = "host" ConsoleKindDatabase = "database" ConsoleKindDebugComponent = "debug-component" ConsoleKindComponent = "component" ConsoleKinds = []string{ ConsoleKindMember, ConsoleKindPipeline, ConsoleKindPipelineTrigger, ConsoleKindHost, ConsoleKindDatabase, ConsoleKindDebugComponent, ConsoleKindComponent, } ConsoleCmdKinds = map[string]string{ ConsoleKindAll: "", ConsoleKindMember: "member", ConsoleKindPipeline: "pipeline", ConsoleKindPipelineTrigger: "pipelineTrigger", ConsoleKindHost: "host", ConsoleKindDatabase: "database", ConsoleKindDebugComponent: "debugComponent", ConsoleKindComponent: "component", } AccessLevelMaintainer = "maintainer" AccessLevelDeveloper = "developer" AccessLevelRunner = "runner" AccessLevels = []string{ AccessLevelMaintainer, AccessLevelDeveloper, AccessLevelRunner, } TableRenderBorder = tablewriter.WithRenderer(renderer.NewBlueprint(tw.Rendition{ Settings: tw.Settings{Separators: tw.Separators{BetweenRows: tw.On}}, })) TableRenderBorderNone = tablewriter.WithRenderer(renderer.NewBlueprint(tw.Rendition{ Borders: tw.BorderNone, Settings: tw.Settings{Separators: tw.SeparatorsNone, Lines: tw.LinesNone}, })) TableCellConfig = tablewriter.WithConfig(tablewriter.Config{ Header: tw.CellConfig{ Alignment: tw.CellAlignment{Global: tw.AlignLeft}, }, Row: tw.CellConfig{ Alignment: tw.CellAlignment{Global: tw.AlignLeft}, }, }) )
Functions ¶
func GetCmdBaseName ¶
func GetCmdBaseName() string
func ParseTplFromVals ¶
func RemoveMapEmptyItems ¶
func ValidateIpAddress ¶
func ValidateMinusNameID ¶
func ValidatePipelineName ¶
func ValidateRunName ¶
func YamlIndent ¶
Types ¶
type AccessToken ¶
type AccessToken struct {
AccessToken string `yaml:"accessToken" json:"accessToken" bson:"accessToken" validate:""`
AccessTokenName string `yaml:"accessTokenName" json:"accessTokenName" bson:"accessTokenName" validate:""`
ExpireTime string `yaml:"expireTime" json:"expireTime" bson:"expireTime" validate:""`
Expired bool `yaml:"expired" json:"expired" bson:"expired" validate:""`
Username string `yaml:"username" json:"username" bson:"username" validate:""`
}
type AdminKind ¶
type AdminKind struct {
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
Metadata AdminMetadata `yaml:"metadata" json:"metadata" bson:"metadata" validate:"required"`
Spec interface{} `yaml:"spec" json:"spec" bson:"spec" validate:""`
}
type AdminKindList ¶
type AdminMetadata ¶
type AdminWebhook ¶ added in v1.6.5
type AdminWebhook struct {
AdminWebhookID string `yaml:"adminWebhookID" json:"adminWebhookID" bson:"adminWebhookID" validate:""`
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
AdminAction string `yaml:"adminAction" json:"adminAction" bson:"adminAction" validate:""`
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
WebhookUrl string `yaml:"webhookUrl" json:"webhookUrl" bson:"webhookUrl" validate:""`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
WebhookMethod string `yaml:"webhookMethod" json:"webhookMethod" bson:"webhookMethod" validate:""`
WebhookHeaders []WebhookNameVale `yaml:"webhookHeaders" json:"webhookHeaders" bson:"webhookHeaders" validate:"dive"`
WebhookQueryParams []WebhookNameVale `yaml:"webhookQueryParams" json:"webhookQueryParams" bson:"webhookQueryParams" validate:"dive"`
WebhookForms []WebhookNameVale `yaml:"webhookForms" json:"webhookForms" bson:"webhookForms" validate:"dive"`
WebhookBody string `yaml:"webhookBody" json:"webhookBody" bson:"webhookBody" validate:""`
Username string `yaml:"username" json:"username" bson:"username" validate:""`
}
type ApplyIngressStepDef ¶
type ApplyMeshStepDef ¶
type ArchSetting ¶
type ArtifactDef ¶
type ArtifactDef struct {
ArtifactName string `yaml:"artifactName" json:"artifactName" bson:"artifactName" validate:"required"`
RelatedBuilds []string `yaml:"relatedBuilds" json:"relatedBuilds" bson:"relatedBuilds" validate:"required"`
Artifacts []string `yaml:"artifacts" json:"artifacts" bson:"artifacts" validate:"required"`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type ArtifactRepo ¶ added in v1.5.2
type ArtifactRepo struct {
Type string `yaml:"type" json:"type" bson:"type" validate:""`
Internal struct {
Image string `yaml:"image" json:"image" bson:"image" validate:"required_with=Image Port PortHub PortGcr PortQuay"`
Port int `yaml:"port" json:"port" bson:"port" validate:"required_with=Image Port PortHub PortGcr PortQuay"`
PortHub int `yaml:"portHub" json:"portHub" bson:"portHub" validate:"required_with=Image Port PortHub PortGcr PortQuay"`
PortGcr int `yaml:"portGcr" json:"portGcr" bson:"portGcr" validate:"required_with=Image Port PortHub PortGcr PortQuay"`
PortQuay int `yaml:"portQuay" json:"portQuay" bson:"portQuay" validate:"required_with=Image Port PortHub PortGcr PortQuay"`
} `yaml:"internal" json:"internal" bson:"internal" validate:""`
External struct {
ViewUrl string `` /* 190-byte string literal not displayed */
Schema string `` /* 187-byte string literal not displayed */
Hostname string `` /* 193-byte string literal not displayed */
Username string `` /* 193-byte string literal not displayed */
Password string `` /* 193-byte string literal not displayed */
PublicRole string `` /* 199-byte string literal not displayed */
PublicUser string `` /* 199-byte string literal not displayed */
PublicPassword string `` /* 211-byte string literal not displayed */
PublicEmail string `` /* 202-byte string literal not displayed */
Port int `` /* 181-byte string literal not displayed */
PortHub int `` /* 190-byte string literal not displayed */
PortGcr int `` /* 190-byte string literal not displayed */
PortQuay int `` /* 193-byte string literal not displayed */
ProxyRepo ProxyRepo `` /* 196-byte string literal not displayed */
} `yaml:"external" json:"external" bson:"external" validate:""`
}
type ArtifactRepoConfig ¶
type ArtifactRepoConfig struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
IsFromFile bool `yaml:"isFromFile" json:"isFromFile" bson:"isFromFile" validate:""`
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
RepoName string `yaml:"repoName" json:"repoName" bson:"repoName" validate:"required"`
ViewUrl string `yaml:"viewUrl" json:"viewUrl" bson:"viewUrl" validate:"required"`
SchemaInternal string `yaml:"schemaInternal" json:"schemaInternal" bson:"schemaInternal" validate:"required"`
SchemaExternal string `yaml:"schemaExternal" json:"schemaExternal" bson:"schemaExternal" validate:"required"`
Schema string `yaml:"schema" json:"schema" bson:"schema" validate:""`
HostnameInternal string `yaml:"hostnameInternal" json:"hostnameInternal" bson:"hostnameInternal" validate:"required"`
HostnameExternal string `yaml:"hostnameExternal" json:"hostnameExternal" bson:"hostnameExternal" validate:"required"`
Hostname string `yaml:"hostname" json:"hostname" bson:"hostname" validate:""`
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
Url string `yaml:"url" json:"url" bson:"url" validate:""`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
Username string `yaml:"username" json:"username" bson:"username" validate:"required"`
Password string `yaml:"password" json:"password" bson:"password" validate:"required"`
ProxyRepo struct {
PublicRole string `yaml:"publicRole" json:"publicRole" bson:"publicRole" validate:""`
PublicUser string `yaml:"publicUser" json:"publicUser" bson:"publicUser" validate:""`
PublicPassword string `yaml:"publicPassword" json:"publicPassword" bson:"publicPassword" validate:""`
PortDocker int `yaml:"portDocker" json:"portDocker" bson:"portDocker" validate:""`
PortGcr int `yaml:"portGcr" json:"portGcr" bson:"portGcr" validate:""`
PortQuay int `yaml:"portQuay" json:"portQuay" bson:"portQuay" validate:""`
Maven string `yaml:"maven" json:"maven" bson:"maven" validate:""`
Npm string `yaml:"npm" json:"npm" bson:"npm" validate:""`
Pip string `yaml:"pip" json:"pip" bson:"pip" validate:""`
Gradle string `yaml:"gradle" json:"gradle" bson:"gradle" validate:""`
Go string `yaml:"go" json:"go" bson:"go" validate:""`
Apt struct {
Amd64 string `yaml:"amd64" json:"amd64" bson:"amd64" validate:""`
Arm64v8 string `yaml:"arm64v8" json:"arm64v8" bson:"arm64v8" validate:""`
} `yaml:"apt" json:"apt" bson:"apt" validate:""`
} `yaml:"proxyRepo" json:"proxyRepo" bson:"proxyRepo" validate:""`
}
type ArtifactStepDef ¶
type BuildDef ¶
type BuildDef struct {
BuildName string `yaml:"buildName" json:"buildName" bson:"buildName" validate:"required"`
BuildPhaseID int `yaml:"buildPhaseID" json:"buildPhaseID" bson:"buildPhaseID" validate:"required,gt=0"`
BuildPath string `yaml:"buildPath" json:"buildPath" bson:"buildPath" validate:"required"`
BuildEnv string `yaml:"buildEnv" json:"buildEnv" bson:"buildEnv" validate:"required"`
BuildCmds []string `yaml:"buildCmds" json:"buildCmds" bson:"buildCmds" validate:"required,dive"`
BuildCaches []string `yaml:"buildCaches" json:"buildCaches" bson:"buildCaches" validate:""`
SonarExtraSettings []string `yaml:"sonarExtraSettings" json:"sonarExtraSettings" bson:"sonarExtraSettings" validate:""`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type BuildStepDef ¶
type CheckDeployStepDef ¶
type CheckDeployStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
IgnoreError bool `yaml:"ignoreError" json:"ignoreError" bson:"ignoreError" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
Repeat int `yaml:"repeat" json:"repeat" bson:"repeat" validate:""`
RepeatInterval int `yaml:"repeatInterval" json:"repeatInterval" bson:"repeatInterval" validate:""`
}
type CheckQuotaStepDef ¶
type Component ¶ added in v1.6.5
type Component struct {
Arch string `yaml:"arch" json:"arch" bson:"arch" validate:"required"`
ComponentName string `yaml:"componentName" json:"componentName" bson:"componentName" validate:"required"`
ComponentDesc string `yaml:"componentDesc" json:"componentDesc" bson:"componentDesc" validate:"required"`
DeploySpecStatic DeploySpecStatic `yaml:"deploySpecStatic" json:"deploySpecStatic" bson:"deploySpecStatic" validate:"required"`
}
type ComponentDebug ¶ added in v1.6.5
type ComponentDebug struct {
DeploySpecDebug DeploySpecDebug `yaml:"deploySpecDebug" json:"deploySpecDebug" bson:"deploySpecDebug" validate:"required"`
}
type ComponentTemplate ¶
type ComponentTemplate struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
ComponentTemplateName string `yaml:"componentTemplateName" json:"componentTemplateName" bson:"componentTemplateName" validate:"required"`
ComponentTemplateDesc string `yaml:"componentTemplateDesc" json:"componentTemplateDesc" bson:"componentTemplateDesc" validate:"required"`
DeploySpecStatic DeploySpecStatic `yaml:"deploySpecStatic" json:"deploySpecStatic" bson:"deploySpecStatic" validate:"required"`
}
type ConfigPath ¶
type ConsoleKind ¶ added in v1.6.5
type ConsoleKind struct {
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
Metadata ConsoleMetadata `yaml:"metadata" json:"metadata" bson:"metadata" validate:"required"`
Items []interface{} `yaml:"items" json:"items" bson:"items" validate:""`
}
type ConsoleKindList ¶ added in v1.6.5
type ConsoleKindList struct {
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
Consoles []ConsoleKind `yaml:"consoles" json:"consoles" bson:"consoles" validate:"dive"`
}
type ConsoleMetadata ¶ added in v1.6.5
type CustomOpsDef ¶
type CustomOpsDef struct {
CustomOpsName string `yaml:"customOpsName" json:"customOpsName" bson:"customOpsName" validate:"required"`
CustomOpsDesc string `yaml:"customOpsDesc" json:"customOpsDesc" bson:"customOpsDesc" validate:"required"`
CustomOpsSteps []string `yaml:"customOpsSteps" json:"customOpsSteps" bson:"customOpsSteps" validate:"required"`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type CustomStepConf ¶
type CustomStepConf struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
CustomStepName string `yaml:"customStepName" json:"customStepName" bson:"customStepName" validate:"required"`
CustomStepActionDesc string `yaml:"customStepActionDesc" json:"customStepActionDesc" bson:"customStepActionDesc" validate:"required"`
CustomStepDesc string `yaml:"customStepDesc" json:"customStepDesc" bson:"customStepDesc" validate:"required"`
CustomStepUsage string `yaml:"customStepUsage" json:"customStepUsage" bson:"customStepUsage" validate:"required"`
GitRepoName string `yaml:"gitRepoName" json:"gitRepoName" bson:"gitRepoName" validate:""`
GitRepoPath string `yaml:"gitRepoPath" json:"gitRepoPath" bson:"gitRepoPath" validate:""`
GitRepoBranch string `yaml:"gitRepoBranch" json:"gitRepoBranch" bson:"gitRepoBranch" validate:""`
CustomStepDockerConf CustomStepDockerConf `yaml:"customStepDockerConf" json:"customStepDockerConf" bson:"customStepDockerConf" validate:"required"`
ParamInputYamlDef string `yaml:"paramInputYamlDef" json:"paramInputYamlDef" bson:"paramInputYamlDef" validate:""`
ParamOutputYamlDef string `yaml:"paramOutputYamlDef" json:"paramOutputYamlDef" bson:"paramOutputYamlDef" validate:""`
IsEnvDiff bool `yaml:"isEnvDiff" json:"isEnvDiff" bson:"isEnvDiff" validate:""`
}
type CustomStepConfDetail ¶
type CustomStepConfDetail struct {
CustomStepConf
ProjectNames []string `yaml:"projectNames" json:"projectNames" bson:"projectNames" validate:""`
}
type CustomStepConfOutput ¶
type CustomStepConfOutput struct {
CustomStepName string `yaml:"customStepName" json:"customStepName" bson:"customStepName" validate:""`
CustomStepActionDesc string `yaml:"customStepActionDesc" json:"customStepActionDesc" bson:"customStepActionDesc" validate:""`
CustomStepDesc string `yaml:"customStepDesc" json:"customStepDesc" bson:"customStepDesc" validate:""`
CustomStepUsage string `yaml:"customStepUsage" json:"customStepUsage" bson:"customStepUsage" validate:""`
IsEnvDiff bool `yaml:"isEnvDiff" json:"isEnvDiff" bson:"isEnvDiff" validate:""`
ParamInputYamlDef string `yaml:"paramInputYamlDef" json:"paramInputYamlDef" bson:"paramInputYamlDef" validate:""`
ParamOutputYamlDef string `yaml:"paramOutputYamlDef" json:"paramOutputYamlDef" bson:"paramOutputYamlDef" validate:""`
}
type CustomStepDef ¶
type CustomStepDef struct {
EnableMode string `yaml:"enableMode" json:"enableMode" bson:"enableMode" validate:""`
CustomStepModuleDefs []CustomStepModuleDef `yaml:"customStepModuleDefs" json:"customStepModuleDefs" bson:"customStepModuleDefs" validate:"dive"`
UpdateCustomStepModuleDefs bool `yaml:"updateCustomStepModuleDefs" json:"updateCustomStepModuleDefs" bson:"updateCustomStepModuleDefs" validate:""`
}
type CustomStepDefs ¶
type CustomStepDefs map[string]CustomStepDef
type CustomStepDockerConf ¶
type CustomStepDockerConf struct {
DockerImage string `yaml:"dockerImage" json:"dockerImage" bson:"dockerImage" validate:"required"`
RegistryUsername string `yaml:"registryUsername" json:"registryUsername" bson:"registryUsername" validate:""`
RegistryPassword string `yaml:"registryPassword" json:"registryPassword" bson:"registryPassword" validate:""`
DockerCommands []string `yaml:"dockerCommands" json:"dockerCommands" bson:"dockerCommands" validate:"required"`
DockerShowCommands bool `yaml:"dockerShowCommands" json:"dockerShowCommands" bson:"dockerShowCommands" validate:""`
DockerRunAsRoot bool `yaml:"dockerRunAsRoot" json:"dockerRunAsRoot" bson:"dockerRunAsRoot" validate:""`
DockerVolumes []string `yaml:"dockerVolumes" json:"dockerVolumes" bson:"dockerVolumes" validate:""`
DockerEnvs []string `yaml:"dockerEnvs" json:"dockerEnvs" bson:"dockerEnvs" validate:""`
DockerWorkDir string `yaml:"dockerWorkDir" json:"dockerWorkDir" bson:"dockerWorkDir" validate:""`
ParamInputFormat string `yaml:"paramInputFormat" json:"paramInputFormat" bson:"paramInputFormat" validate:"required"`
ParamOutputFormat string `yaml:"paramOutputFormat" json:"paramOutputFormat" bson:"paramOutputFormat" validate:"required"`
}
type CustomStepModuleDef ¶
type CustomStepModuleDef struct {
ModuleName string `yaml:"moduleName" json:"moduleName" bson:"moduleName" validate:"required"`
RelatedStepModules []string `yaml:"relatedStepModules" json:"relatedStepModules" bson:"relatedStepModules" validate:""`
ManualEnable bool `yaml:"manualEnable" json:"manualEnable" bson:"manualEnable" validate:""`
ParamInputYaml string `yaml:"paramInputYaml" json:"paramInputYaml" bson:"paramInputYaml" validate:""`
CheckVarToIgnore string `yaml:"checkVarToIgnore" json:"checkVarToIgnore" bson:"checkVarToIgnore" validate:""`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type CustomStepPhaseDef ¶
type CustomStepPhaseDef struct {
CustomStepName string `yaml:"customStepName" json:"customStepName" bson:"customStepName" validate:""`
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
IgnoreError bool `yaml:"ignoreError" json:"ignoreError" bson:"ignoreError" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
EnableInput bool `yaml:"enableInput" json:"enableInput" bson:"enableInput" validate:""`
IsApiOnly bool `yaml:"isApiOnly" json:"isApiOnly" bson:"isApiOnly" validate:""`
}
type Database ¶ added in v1.6.5
type Database struct {
DbName string `yaml:"dbName" json:"dbName" bson:"dbName" validate:"required"`
DbUrl string `yaml:"dbUrl" json:"dbUrl" bson:"dbUrl" validate:"required"`
DbUser string `yaml:"dbUser" json:"dbUser" bson:"dbUser" validate:"required"`
DbPassword string `yaml:"dbPassword" json:"dbPassword" bson:"dbPassword" validate:"required"`
}
type DefKind ¶
type DefKind struct {
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
Metadata DefMetadata `yaml:"metadata" json:"metadata" bson:"metadata" validate:"required"`
Items []interface{} `yaml:"items" json:"items" bson:"items" validate:""`
Status struct {
ErrMsg string `yaml:"errMsg" json:"errMsg" bson:"errMsg" validate:""`
} `yaml:"status" json:"status" bson:"status" validate:""`
}
type DefKindList ¶
type DefKindList struct {
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
Defs []DefKind `yaml:"defs" json:"defs" bson:"defs" validate:"dive"`
Status struct {
ErrMsgs []string `yaml:"errMsgs" json:"errMsgs" bson:"errMsgs" validate:""`
} `yaml:"status" json:"status" bson:"status" validate:""`
}
type DefMetadata ¶
type DefProjectSummary ¶ added in v1.6.5
type DefProjectSummary struct {
BuildEnvs []string `yaml:"buildEnvs" json:"buildEnvs" bson:"buildEnvs" validate:""`
BuildNames []string `yaml:"buildNames" json:"buildNames" bson:"buildNames" validate:""`
CustomStepConfs []CustomStepConfOutput `yaml:"customStepConfs" json:"customStepConfs" bson:"customStepConfs" validate:"dive"`
PackageNames []string `yaml:"packageNames" json:"packageNames" bson:"packageNames" validate:""`
ArtifactNames []string `yaml:"artifactNames" json:"artifactNames" bson:"artifactNames" validate:""`
BranchNames []string `yaml:"branchNames" json:"branchNames" bson:"branchNames" validate:""`
EnvNames []string `yaml:"envNames" json:"envNames" bson:"envNames" validate:""`
}
type DefUpdate ¶
type DefUpdate struct {
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""`
EnvName string `yaml:"envName" json:"envName" bson:"envName" validate:""`
CustomStepName string `yaml:"customStepName" json:"customStepName" bson:"customStepName" validate:""`
BranchName string `yaml:"branchName" json:"branchName" bson:"branchName" validate:""`
Def interface{} `yaml:"def" json:"def" bson:"def" validate:""`
}
type DefUpdateList ¶
type DeployArtifactDef ¶
type DeployArtifactDef struct {
DeployArtifactName string `yaml:"deployArtifactName" json:"deployArtifactName" bson:"deployArtifactName" validate:"required"`
RelatedArtifact string `yaml:"relatedArtifact" json:"relatedArtifact" bson:"relatedArtifact" validate:"required"`
Hosts string `yaml:"hosts" json:"hosts" bson:"hosts" validate:"required"`
Variables map[string]string `yaml:"variables" json:"variables" bson:"variables" validate:""`
Tasks string `yaml:"tasks" json:"tasks" bson:"tasks" validate:"required"`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type DeployArtifactStepDef ¶
type DeployArtifactStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
Archive bool `yaml:"archive" json:"archive" bson:"archive" validate:""`
Try bool `yaml:"try" json:"try" bson:"try" validate:""`
IgnoreExecuteModuleNames []string `yaml:"ignoreExecuteModuleNames" json:"ignoreExecuteModuleNames" bson:"ignoreExecuteModuleNames" validate:""`
}
type DeployConfigMap ¶
type DeployContainerDef ¶
type DeployContainerDef struct {
DeployName string `yaml:"deployName" json:"deployName" bson:"deployName" validate:"required"`
RelatedPackage string `yaml:"relatedPackage" json:"relatedPackage" bson:"relatedPackage" validate:"required"`
DeployImagePath string `yaml:"deployImagePath" json:"deployImagePath" bson:"deployImagePath" validate:""`
DeployImageTag string `yaml:"deployImageTag" json:"deployImageTag" bson:"deployImageTag" validate:""`
DeployLabels map[string]string `yaml:"deployLabels" json:"deployLabels" bson:"deployLabels" validate:""`
DeployType string `yaml:"deployType" json:"deployType" bson:"deployType" validate:""`
DeployHeadless bool `yaml:"deployHeadless" json:"deployHeadless" bson:"deployHeadless" validate:""`
PodManagementPolicy string `yaml:"podManagementPolicy" json:"podManagementPolicy" bson:"podManagementPolicy" validate:""`
DeployMeta struct {
Labels []NameValue `yaml:"labels" json:"labels" bson:"labels" validate:"dive"`
Annotations []NameValue `yaml:"annotations" json:"annotations" bson:"annotations" validate:"dive"`
} `yaml:"deployMeta" json:"deployMeta" bson:"deployMeta" validate:""`
DeploySessionAffinityTimeoutSeconds int `` /* 140-byte string literal not displayed */
DeployNodePorts []DeployNodePort `yaml:"deployNodePorts" json:"deployNodePorts" bson:"deployNodePorts" validate:"dive"`
DeployLocalPorts []DeployLocalPort `yaml:"deployLocalPorts" json:"deployLocalPorts" bson:"deployLocalPorts" validate:"dive"`
DeployLoadBalancers []DeployLoadBalancer `yaml:"deployLoadBalancers" json:"deployLoadBalancers" bson:"deployLoadBalancers" validate:"dive"`
DeployReplicas int `yaml:"deployReplicas" json:"deployReplicas" bson:"deployReplicas" validate:"required"`
HpaConfig HpaConfig `yaml:"hpaConfig" json:"hpaConfig" bson:"hpaConfig" validate:""`
DeployEnvs []string `yaml:"deployEnvs" json:"deployEnvs" bson:"deployEnvs" validate:""`
DeployCommand string `yaml:"deployCommand" json:"deployCommand" bson:"deployCommand" validate:""`
DeployCmds []string `yaml:"deployCmds" json:"deployCmds" bson:"deployCmds" validate:""`
DeployArgs []string `yaml:"deployArgs" json:"deployArgs" bson:"deployArgs" validate:""`
DeployResources QuotaPod `yaml:"deployResources" json:"deployResources" bson:"deployResources" validate:""`
DeployVolumes []DeployVolume `yaml:"deployVolumes" json:"deployVolumes" bson:"deployVolumes" validate:"dive"`
DeployHealthCheck struct {
CheckPort int `yaml:"checkPort" json:"checkPort" bson:"checkPort" validate:""`
Exec string `yaml:"exec" json:"exec" bson:"exec" validate:""`
ExecCmds []string `yaml:"execCmds" json:"execCmds" bson:"execCmds" validate:""`
HttpGet DeployHttpGet `yaml:"httpGet" json:"httpGet" bson:"httpGet" validate:""`
ReadinessDelaySeconds int `yaml:"readinessDelaySeconds" json:"readinessDelaySeconds" bson:"readinessDelaySeconds" validate:""`
ReadinessPeriodSeconds int `yaml:"readinessPeriodSeconds" json:"readinessPeriodSeconds" bson:"readinessPeriodSeconds" validate:""`
LivenessDelaySeconds int `yaml:"livenessDelaySeconds" json:"livenessDelaySeconds" bson:"livenessDelaySeconds" validate:""`
LivenessPeriodSeconds int `yaml:"livenessPeriodSeconds" json:"livenessPeriodSeconds" bson:"livenessPeriodSeconds" validate:""`
StartupDelaySeconds int `yaml:"startupDelaySeconds" json:"startupDelaySeconds" bson:"startupDelaySeconds" validate:""`
StartupPeriodSeconds int `yaml:"startupPeriodSeconds" json:"startupPeriodSeconds" bson:"startupPeriodSeconds" validate:""`
} `yaml:"deployHealthCheck" json:"deployHealthCheck" bson:"deployHealthCheck" validate:""`
DependServices []struct {
DependName string `yaml:"dependName" json:"dependName" bson:"dependName" validate:"required"`
DependPort int `yaml:"dependPort" json:"dependPort" bson:"dependPort" validate:"required"`
DependType string `yaml:"dependType" json:"dependType" bson:"dependType" validate:"oneof=TCP UDP"`
} `yaml:"dependServices" json:"dependServices" bson:"dependServices" validate:"dive"`
HostAliases []HostAlias `yaml:"hostAliases" json:"hostAliases" bson:"hostAliases" validate:"dive"`
SecurityContext SecurityContext `yaml:"securityContext" json:"securityContext" bson:"securityContext" validate:""`
DeployConfigSettings []ConfigPath `yaml:"deployConfigSettings" json:"deployConfigSettings" bson:"deployConfigSettings" validate:"dive"`
DeployConfigMaps []DeployConfigMap `yaml:"deployConfigMaps" json:"deployConfigMaps" bson:"deployConfigMaps" validate:"dive"`
DeploySecrets []DeploySecret `yaml:"deploySecrets" json:"deploySecrets" bson:"deploySecrets" validate:"dive"`
Lifecycle struct {
PostStart struct {
Exec string `yaml:"exec" json:"exec" bson:"exec" validate:""`
ExecCmds []string `yaml:"execCmds" json:"execCmds" bson:"execCmds" validate:""`
HttpGet DeployHttpGet `yaml:"httpGet" json:"httpGet" bson:"httpGet" validate:""`
} `yaml:"postStart" json:"postStart" bson:"postStart" validate:""`
PreStop struct {
Exec string `yaml:"exec" json:"exec" bson:"exec" validate:""`
ExecCmds []string `yaml:"execCmds" json:"execCmds" bson:"execCmds" validate:""`
HttpGet DeployHttpGet `yaml:"httpGet" json:"httpGet" bson:"httpGet" validate:""`
} `yaml:"preStop" json:"preStop" bson:"preStop" validate:""`
} `yaml:"lifecycle" json:"lifecycle" bson:"lifecycle" validate:""`
WorkingDir string `yaml:"workingDir" json:"workingDir" bson:"workingDir" validate:""`
NodeSelector []NameValue `yaml:"nodeSelector" json:"nodeSelector" bson:"nodeSelector" validate:"dive"`
NodeName string `yaml:"nodeName" json:"nodeName" bson:"nodeName" validate:""`
TerminationGracePeriodSeconds int `yaml:"terminationGracePeriodSeconds" json:"terminationGracePeriodSeconds" bson:"terminationGracePeriodSeconds" validate:""`
Subdomain string `yaml:"subdomain" json:"subdomain" bson:"subdomain" validate:""`
EnableDownwardApi bool `yaml:"enableDownwardApi" json:"enableDownwardApi" bson:"enableDownwardApi" validate:""`
RestartPolicy string `yaml:"restartPolicy" json:"restartPolicy" bson:"restartPolicy" validate:""`
Job struct {
Completions int `yaml:"completions" json:"completions" bson:"completions" validate:""`
Parallelism int `yaml:"parallelism" json:"parallelism" bson:"parallelism" validate:""`
CompletionMode string `yaml:"completionMode" json:"completionMode" bson:"completionMode" validate:""`
BackoffLimit int `yaml:"backoffLimit" json:"backoffLimit" bson:"backoffLimit" validate:""`
ActiveDeadlineSeconds int `yaml:"activeDeadlineSeconds" json:"activeDeadlineSeconds" bson:"activeDeadlineSeconds" validate:""`
TtlSecondsAfterFinished int `yaml:"ttlSecondsAfterFinished" json:"ttlSecondsAfterFinished" bson:"ttlSecondsAfterFinished" validate:""`
} `yaml:"job" json:"job" bson:"job" validate:""`
CronJob struct {
Schedule string `yaml:"schedule" json:"schedule" bson:"schedule" validate:""`
ConcurrencyPolicy string `yaml:"concurrencyPolicy" json:"concurrencyPolicy" bson:"concurrencyPolicy" validate:""`
StartingDeadlineSeconds int `yaml:"startingDeadlineSeconds" json:"startingDeadlineSeconds" bson:"startingDeadlineSeconds" validate:""`
SuccessfulJobsHistoryLimit int `yaml:"successfulJobsHistoryLimit" json:"successfulJobsHistoryLimit" bson:"successfulJobsHistoryLimit" validate:""`
FailedJobsHistoryLimit int `yaml:"failedJobsHistoryLimit" json:"failedJobsHistoryLimit" bson:"failedJobsHistoryLimit" validate:""`
} `yaml:"cronJob" json:"cronJob" bson:"cronJob" validate:""`
Patches []DeployContainerPatch `yaml:"patches" json:"patches" bson:"patches" validate:"dive"`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type DeployContainerPatch ¶
type DeployContainerStepDef ¶
type DeployContainerStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
ForceReplace bool `yaml:"forceReplace" json:"forceReplace" bson:"forceReplace" validate:""`
Archive bool `yaml:"archive" json:"archive" bson:"archive" validate:""`
Try bool `yaml:"try" json:"try" bson:"try" validate:""`
IgnoreExecuteModuleNames []string `yaml:"ignoreExecuteModuleNames" json:"ignoreExecuteModuleNames" bson:"ignoreExecuteModuleNames" validate:""`
}
type DeployHttpGet ¶
type DeployHttpGet struct {
Path string `yaml:"path" json:"path" bson:"path" validate:""`
Port int `yaml:"port" json:"port" bson:"port" validate:""`
HttpHeaders []struct {
Name string `yaml:"name" json:"name" bson:"name" validate:"required"`
Value string `yaml:"value" json:"value" bson:"value" validate:"required"`
} `yaml:"httpHeaders" json:"httpHeaders" bson:"httpHeaders" validate:"dive"`
Scheme string `yaml:"scheme" json:"scheme" bson:"scheme" validate:""`
}
type DeployLoadBalancer ¶ added in v1.7.1
type DeployLocalPort ¶ added in v1.5.1
type DeployLocalPort struct {
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
Protocol string `yaml:"protocol" json:"protocol" bson:"protocol" validate:"omitempty,oneof=HTTP TCP UDP SCTP"`
Ingress struct {
DomainName string `yaml:"domainName" json:"domainName" bson:"domainName" validate:""`
PathPrefix string `yaml:"pathPrefix" json:"pathPrefix" bson:"pathPrefix" validate:""`
CertSelfSigned bool `yaml:"certSelfSigned" json:"certSelfSigned" bson:"certSelfSigned" validate:""`
CertBranch string `yaml:"certBranch" json:"certBranch" bson:"certBranch" validate:""`
CertPath string `yaml:"certPath" json:"certPath" bson:"certPath" validate:""`
} `yaml:"ingress" json:"ingress" bson:"ingress" validate:""`
}
type DeployNodePort ¶ added in v1.5.1
type DeploySecret ¶
type DeploySecret struct {
Name string `yaml:"name" json:"name" bson:"name" validate:""`
SecretType string `yaml:"secretType" json:"secretType" bson:"secretType" validate:""`
FromFileType string `yaml:"fromFileType" json:"fromFileType" bson:"fromFileType" validate:""`
Paths []string `yaml:"paths" json:"paths" bson:"paths" validate:""`
DockerConfig string `yaml:"dockerConfig" json:"dockerConfig" bson:"dockerConfig" validate:""`
Cert string `yaml:"cert" json:"cert" bson:"cert" validate:""`
Key string `yaml:"key" json:"key" bson:"key" validate:""`
}
type DeploySpecDebug ¶ added in v1.6.5
type DeploySpecDebug struct {
DebugQuota QuotaPod `yaml:"debugQuota" json:"debugQuota" bson:"debugQuota" validate:""`
Ingress struct {
DomainName string `yaml:"domainName" json:"domainName" bson:"domainName" validate:""`
PathPrefix string `yaml:"pathPrefix" json:"pathPrefix" bson:"pathPrefix" validate:""`
CertSelfSigned bool `yaml:"certSelfSigned" json:"certSelfSigned" bson:"certSelfSigned" validate:""`
CertBranch string `yaml:"certBranch" json:"certBranch" bson:"certBranch" validate:""`
CertPath string `yaml:"certPath" json:"certPath" bson:"certPath" validate:""`
} `yaml:"ingress" json:"ingress" bson:"ingress" validate:""`
}
type DeploySpecStatic ¶
type DeploySpecStatic struct {
DeployName string `yaml:"deployName" json:"deployName" bson:"deployName" validate:""`
DeployImage string `yaml:"deployImage" json:"deployImage" bson:"deployImage" validate:"required"`
DeployType string `yaml:"deployType" json:"deployType" bson:"deployType" validate:""`
DeployHeadless bool `yaml:"deployHeadless" json:"deployHeadless" bson:"deployHeadless" validate:""`
PodManagementPolicy string `yaml:"podManagementPolicy" json:"podManagementPolicy" bson:"podManagementPolicy" validate:""`
DeployMeta struct {
Labels []NameValue `yaml:"labels" json:"labels" bson:"labels" validate:"dive"`
Annotations []NameValue `yaml:"annotations" json:"annotations" bson:"annotations" validate:"dive"`
} `yaml:"deployMeta" json:"deployMeta" bson:"deployMeta" validate:""`
DeploySessionAffinityTimeoutSeconds int `` /* 140-byte string literal not displayed */
DeployNodePorts []DeployNodePort `yaml:"deployNodePorts" json:"deployNodePorts" bson:"deployNodePorts" validate:"dive"`
DeployLocalPorts []DeployLocalPort `yaml:"deployLocalPorts" json:"deployLocalPorts" bson:"deployLocalPorts" validate:"dive"`
DeployLoadBalancers []DeployLoadBalancer `yaml:"deployLoadBalancers" json:"deployLoadBalancers" bson:"deployLoadBalancers" validate:"dive"`
DeployReplicas int `yaml:"deployReplicas" json:"deployReplicas" bson:"deployReplicas" validate:"required"`
HpaConfig HpaConfig `yaml:"hpaConfig" json:"hpaConfig" bson:"hpaConfig" validate:""`
DeployEnvs []string `yaml:"deployEnvs" json:"deployEnvs" bson:"deployEnvs" validate:""`
DeployCommand string `yaml:"deployCommand" json:"deployCommand" bson:"deployCommand" validate:""`
DeployCmds []string `yaml:"deployCmds" json:"deployCmds" bson:"deployCmds" validate:""`
DeployArgs []string `yaml:"deployArgs" json:"deployArgs" bson:"deployArgs" validate:""`
DeployResources QuotaPod `yaml:"deployResources" json:"deployResources" bson:"deployResources" validate:""`
DeployVolumes []struct {
PathInPod string `yaml:"pathInPod" json:"pathInPod" bson:"pathInPod" validate:"required"`
PathInPv string `yaml:"pathInPv" json:"pathInPv" bson:"pathInPv" validate:"required"`
Pvc string `yaml:"pvc" json:"pvc" bson:"pvc" validate:""`
} `yaml:"deployVolumes" json:"deployVolumes" bson:"deployVolumes" validate:"dive"`
DeployHealthCheck struct {
CheckPort int `yaml:"checkPort" json:"checkPort" bson:"checkPort" validate:""`
Exec string `yaml:"exec" json:"exec" bson:"exec" validate:""`
ExecCmds []string `yaml:"execCmds" json:"execCmds" bson:"execCmds" validate:""`
HttpGet DeployHttpGet `yaml:"httpGet" json:"httpGet" bson:"httpGet" validate:""`
ReadinessDelaySeconds int `yaml:"readinessDelaySeconds" json:"readinessDelaySeconds" bson:"readinessDelaySeconds" validate:""`
ReadinessPeriodSeconds int `yaml:"readinessPeriodSeconds" json:"readinessPeriodSeconds" bson:"readinessPeriodSeconds" validate:""`
LivenessDelaySeconds int `yaml:"livenessDelaySeconds" json:"livenessDelaySeconds" bson:"livenessDelaySeconds" validate:""`
LivenessPeriodSeconds int `yaml:"livenessPeriodSeconds" json:"livenessPeriodSeconds" bson:"livenessPeriodSeconds" validate:""`
StartupDelaySeconds int `yaml:"startupDelaySeconds" json:"startupDelaySeconds" bson:"startupDelaySeconds" validate:""`
StartupPeriodSeconds int `yaml:"startupPeriodSeconds" json:"startupPeriodSeconds" bson:"startupPeriodSeconds" validate:""`
} `yaml:"deployHealthCheck" json:"deployHealthCheck" bson:"deployHealthCheck" validate:""`
DependServices []struct {
DependName string `yaml:"dependName" json:"dependName" bson:"dependName" validate:"required"`
DependPort int `yaml:"dependPort" json:"dependPort" bson:"dependPort" validate:"required"`
DependType string `yaml:"dependType" json:"dependType" bson:"dependType" validate:"oneof=TCP UDP"`
} `yaml:"dependServices" json:"dependServices" bson:"dependServices" validate:"dive"`
HostAliases []HostAlias `yaml:"hostAliases" json:"hostAliases" bson:"hostAliases" validate:"dive"`
SecurityContext SecurityContext `yaml:"securityContext" json:"securityContext" bson:"securityContext" validate:""`
DeployConfigBranch string `yaml:"deployConfigBranch" json:"deployConfigBranch" bson:"deployConfigBranch" validate:""`
DeployConfigSettings []ConfigPath `yaml:"deployConfigSettings" json:"deployConfigSettings" bson:"deployConfigSettings" validate:"dive"`
Lifecycle struct {
PostStart struct {
Exec string `yaml:"exec" json:"exec" bson:"exec" validate:""`
ExecCmds []string `yaml:"execCmds" json:"execCmds" bson:"execCmds" validate:""`
HttpGet DeployHttpGet `yaml:"httpGet" json:"httpGet" bson:"httpGet" validate:""`
} `yaml:"postStart" json:"postStart" bson:"postStart" validate:""`
PreStop struct {
Exec string `yaml:"exec" json:"exec" bson:"exec" validate:""`
ExecCmds []string `yaml:"execCmds" json:"execCmds" bson:"execCmds" validate:""`
HttpGet DeployHttpGet `yaml:"httpGet" json:"httpGet" bson:"httpGet" validate:""`
} `yaml:"preStop" json:"preStop" bson:"preStop" validate:""`
} `yaml:"lifecycle" json:"lifecycle" bson:"lifecycle" validate:""`
WorkingDir string `yaml:"workingDir" json:"workingDir" bson:"workingDir" validate:""`
NodeSelector []NameValue `yaml:"nodeSelector" json:"nodeSelector" bson:"nodeSelector" validate:"dive"`
NodeName string `yaml:"nodeName" json:"nodeName" bson:"nodeName" validate:""`
TerminationGracePeriodSeconds int `yaml:"terminationGracePeriodSeconds" json:"terminationGracePeriodSeconds" bson:"terminationGracePeriodSeconds" validate:""`
Subdomain string `yaml:"subdomain" json:"subdomain" bson:"subdomain" validate:""`
EnableDownwardApi bool `yaml:"enableDownwardApi" json:"enableDownwardApi" bson:"enableDownwardApi" validate:""`
Patches []DeployContainerPatch `yaml:"patches" json:"patches" bson:"patches" validate:"dive"`
}
type DeployVolume ¶ added in v1.5.1
type DockerBuildEnv ¶
type DockerBuildEnv struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
IsFromFile bool `yaml:"isFromFile" json:"isFromFile" bson:"isFromFile" validate:""`
BuildEnvName string `yaml:"buildEnvName" json:"buildEnvName" bson:"buildEnvName" validate:"required"`
Image string `yaml:"image" json:"image" bson:"image" validate:"required"`
RegistryUsername string `yaml:"registryUsername" json:"registryUsername" bson:"registryUsername" validate:""`
RegistryPassword string `yaml:"registryPassword" json:"registryPassword" bson:"registryPassword" validate:""`
BuildArches []string `yaml:"buildArches" json:"buildArches" bson:"buildArches" validate:""`
MountHomeDir bool `yaml:"mountHomeDir" json:"mountHomeDir" bson:"mountHomeDir" validate:""`
EnableProxy bool `yaml:"enableProxy" json:"enableProxy" bson:"enableProxy" validate:""`
MountExtraCacheDirs []string `yaml:"mountExtraCacheDirs" json:"mountExtraCacheDirs" bson:"mountExtraCacheDirs" validate:""`
CommandsBeforeBuild []string `yaml:"commandsBeforeBuild" json:"commandsBeforeBuild" bson:"commandsBeforeBuild" validate:""`
CommandsAfterCheck []string `yaml:"commandsAfterCheck" json:"commandsAfterCheck" bson:"commandsAfterCheck" validate:""`
}
type DoryConfig ¶
type DoryConfig struct {
ServerURL string `yaml:"serverURL" json:"serverURL" bson:"serverURL" validate:""`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
AccessToken string `yaml:"accessToken" json:"accessToken" bson:"accessToken" validate:""`
Language string `yaml:"language" json:"language" bson:"language" validate:""`
}
type EnvDebugSpec ¶ added in v1.5.1
type EnvK8s ¶
type EnvK8s struct {
EnvName string `yaml:"envName" json:"envName" bson:"envName" validate:"required"`
EnvDesc string `yaml:"envDesc" json:"envDesc" bson:"envDesc" validate:"required"`
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
IsFromFile bool `yaml:"isFromFile" json:"isFromFile" bson:"isFromFile" validate:""`
Host string `yaml:"host" json:"host" bson:"host" validate:"required"`
ViewHost string `yaml:"viewHost" json:"viewHost" bson:"viewHost" validate:"required"`
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
Token string `yaml:"token" json:"token" bson:"token" validate:"required"`
CaCrtBase64 string `yaml:"caCrtBase64" json:"caCrtBase64" bson:"caCrtBase64" validate:"required"`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
DashboardUrl string `yaml:"dashboardUrl" json:"dashboardUrl" bson:"dashboardUrl" validate:"required"`
DashboardUrlNetworkPolicy string `yaml:"dashboardUrlNetworkPolicy" json:"dashboardUrlNetworkPolicy" bson:"dashboardUrlNetworkPolicy" validate:"required"`
DashboardUrlPod string `yaml:"dashboardUrlPod" json:"dashboardUrlPod" bson:"dashboardUrlPod" validate:"required"`
IstioNamespace string `yaml:"istioNamespace" json:"istioNamespace" bson:"istioNamespace" validate:"required"`
IngressControllerNamespace string `yaml:"ingressControllerNamespace" json:"ingressControllerNamespace" bson:"ingressControllerNamespace" validate:"required"`
Timezone string `yaml:"timezone" json:"timezone" bson:"timezone" validate:"required"`
NodePortRange struct {
NodePortRangeStart int `yaml:"nodePortRangeStart" json:"nodePortRangeStart" bson:"nodePortRangeStart" validate:"required"`
NodePortRangeEnd int `yaml:"nodePortRangeEnd" json:"nodePortRangeEnd" bson:"nodePortRangeEnd" validate:"required"`
} `yaml:"nodePortRange" json:"nodePortRange" bson:"nodePortRange" validate:"required"`
ArchSettings []ArchSetting `yaml:"archSettings" json:"archSettings" bson:"archSettings" validate:"dive"`
ProjectDataPod struct {
Namespace string `yaml:"namespace" json:"namespace" bson:"namespace" validate:"required"`
StatefulSetName string `yaml:"statefulSetName" json:"statefulSetName" bson:"statefulSetName" validate:"required"`
Path string `yaml:"path" json:"path" bson:"path" validate:"required"`
} `yaml:"projectDataPod" json:"projectDataPod" bson:"projectDataPod" validate:""`
PodImageSettings struct {
ProjectDataPodImage string `yaml:"projectDataPodImage" json:"projectDataPodImage" bson:"projectDataPodImage" validate:"required"`
BusyboxImage string `yaml:"busyboxImage" json:"busyboxImage" bson:"busyboxImage" validate:"required"`
} `yaml:"podImageSettings" json:"podImageSettings" bson:"podImageSettings" validate:"required"`
ImageRepoUseExternal bool `yaml:"imageRepoUseExternal" json:"imageRepoUseExternal" bson:"imageRepoUseExternal" validate:""`
ArtifactRepoUseExternal bool `yaml:"artifactRepoUseExternal" json:"artifactRepoUseExternal" bson:"artifactRepoUseExternal" validate:""`
PvConfigLocal struct {
LocalPath string `yaml:"localPath" json:"localPath" bson:"localPath" validate:""`
} `yaml:"pvConfigLocal" json:"pvConfigLocal" bson:"pvConfigLocal" validate:""`
PvConfigCephfs struct {
CephPath string `yaml:"cephPath" json:"cephPath" bson:"cephPath" validate:""`
CephUser string `yaml:"cephUser" json:"cephUser" bson:"cephUser" validate:""`
CephSecret string `yaml:"cephSecret" json:"cephSecret" bson:"cephSecret" validate:""`
CephMonitors []string `yaml:"cephMonitors" json:"cephMonitors" bson:"cephMonitors" validate:""`
} `yaml:"pvConfigCephfs" json:"pvConfigCephfs" bson:"pvConfigCephfs" validate:""`
PvConfigNfs struct {
NfsPath string `yaml:"nfsPath" json:"nfsPath" bson:"nfsPath" validate:""`
NfsServer string `yaml:"nfsServer" json:"nfsServer" bson:"nfsServer" validate:""`
} `yaml:"pvConfigNfs" json:"pvConfigNfs" bson:"pvConfigNfs" validate:""`
PvConfigCsi struct {
EnvCsiName string `yaml:"envCsiName" json:"envCsiName" bson:"envCsiName" validate:""`
EnvCsiParams string `yaml:"envCsiParams" json:"envCsiParams" bson:"envCsiParams" validate:""`
} `yaml:"pvConfigCsi" json:"pvConfigCsi" bson:"pvConfigCsi" validate:""`
ProjectNodeSelector map[string]string `yaml:"projectNodeSelector" json:"projectNodeSelector" bson:"projectNodeSelector" validate:""`
QuotaConfig QuotaConfig `yaml:"quotaConfig" json:"quotaConfig" bson:"quotaConfig" validate:"required"`
DisabledDefs []string `yaml:"disabledDefs" json:"disabledDefs" bson:"disabledDefs" validate:""`
DisabledPatches []string `yaml:"disabledPatches" json:"disabledPatches" bson:"disabledPatches" validate:""`
Arches []string `yaml:"arches" json:"arches" bson:"arches" validate:""`
CsiDrivers []string `yaml:"csiDrivers" json:"csiDrivers" bson:"csiDrivers" validate:""`
EnvArch string `yaml:"envArch" json:"envArch" bson:"envArch" validate:""`
}
type EnvK8sDetail ¶
type EnvK8sDetail struct {
EnvK8s
ResourceVersion ResourceVersion `yaml:"resourceVersion" json:"resourceVersion" bson:"resourceVersion" validate:""`
Nodes []KubeNode `yaml:"nodes" json:"nodes" bson:"nodes" validate:"dive"`
Arches []string `yaml:"arches" json:"arches" bson:"arches" validate:""`
}
type EnvNodePort ¶ added in v1.5.1
type ExtraPushImage ¶ added in v1.6.0
type GetRunSettingsStepDef ¶ added in v1.7.0
type GetRunSettingsStepDef struct {
ShowAllSteps bool `yaml:"showAllSteps" json:"showAllSteps" bson:"showAllSteps" validate:""`
}
type GitPullStepDef ¶
type GitRepo ¶ added in v1.5.2
type GitRepo struct {
Type string `yaml:"type" json:"type" bson:"type" validate:""`
Internal struct {
Image string `yaml:"image" json:"image" bson:"image" validate:"required_with=Image Port"`
ImageDB string `yaml:"imageDB" json:"imageDB" bson:"imageDB" validate:""`
ImageNginx string `yaml:"imageNginx" json:"imageNginx" bson:"imageNginx" validate:""`
Port int `yaml:"port" json:"port" bson:"port" validate:"required_with=Image Port"`
} `yaml:"internal" json:"internal" bson:"internal" validate:""`
External struct {
ViewUrl string `` /* 129-byte string literal not displayed */
Url string `yaml:"url" json:"url" bson:"url" validate:"required_with=ViewUrl Url Username Name Mail Password Token GitWebhookUrl"`
Username string `` /* 132-byte string literal not displayed */
Name string `yaml:"name" json:"name" bson:"name" validate:"required_with=ViewUrl Url Username Name Mail Password Token GitWebhookUrl"`
Mail string `yaml:"mail" json:"mail" bson:"mail" validate:"required_with=ViewUrl Url Username Name Mail Password Token GitWebhookUrl"`
Password string `` /* 132-byte string literal not displayed */
Token string `yaml:"token" json:"token" bson:"token" validate:"required_with=ViewUrl Url Username Name Mail Password Token GitWebhookUrl"`
GitWebhookUrl string `` /* 147-byte string literal not displayed */
} `yaml:"external" json:"external" bson:"external" validate:""`
}
type GitRepoConfig ¶
type GitRepoConfig struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
IsFromFile bool `yaml:"isFromFile" json:"isFromFile" bson:"isFromFile" validate:""`
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
RepoName string `yaml:"repoName" json:"repoName" bson:"repoName" validate:"required"`
ViewUrl string `yaml:"viewUrl" json:"viewUrl" bson:"viewUrl" validate:"required"`
Url string `yaml:"url" json:"url" bson:"url" validate:"required"`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
Username string `yaml:"username" json:"username" bson:"username" validate:"required"`
Name string `yaml:"name" json:"name" bson:"name" validate:"required"`
Mail string `yaml:"mail" json:"mail" bson:"mail" validate:"required"`
Password string `yaml:"password" json:"password" bson:"password" validate:"required"`
Token string `yaml:"token" json:"token" bson:"token" validate:"required"`
}
type GitRepoDir ¶ added in v1.5.2
type GitRepoDir struct {
BuildSettingsDir string `yaml:"buildSettingsDir" json:"buildSettingsDir" bson:"buildSettingsDir" validate:""`
DatabaseScriptsDir string `yaml:"databaseScriptsDir" json:"databaseScriptsDir" bson:"databaseScriptsDir" validate:""`
DemoCodesDir string `yaml:"demoCodesDir" json:"demoCodesDir" bson:"demoCodesDir" validate:""`
DeployScriptsDir string `yaml:"deployScriptsDir" json:"deployScriptsDir" bson:"deployScriptsDir" validate:""`
DocumentsDir string `yaml:"documentsDir" json:"documentsDir" bson:"documentsDir" validate:""`
TestScriptsDir string `yaml:"testScriptsDir" json:"testScriptsDir" bson:"testScriptsDir" validate:""`
}
type Host ¶ added in v1.6.5
type Host struct {
HostName string `yaml:"hostName" json:"hostName" bson:"hostName" validate:"required"`
HostAddr string `yaml:"hostAddr" json:"hostAddr" bson:"hostAddr" validate:"required"`
HostPort int `yaml:"hostPort" json:"hostPort" bson:"hostPort" validate:"required"`
HostUser string `yaml:"hostUser" json:"hostUser" bson:"hostUser" validate:"required"`
HostPassword string `yaml:"hostPassword" json:"hostPassword" bson:"hostPassword" validate:"required"`
HostBecome bool `yaml:"hostBecome" json:"hostBecome" bson:"hostBecome" validate:""`
HostBecomeUser string `yaml:"hostBecomeUser" json:"hostBecomeUser" bson:"hostBecomeUser" validate:""`
HostBecomePassword string `yaml:"hostBecomePassword" json:"hostBecomePassword" bson:"hostBecomePassword" validate:""`
Groups []string `yaml:"groups" json:"groups" bson:"groups" validate:""`
Variables map[string]string `yaml:"variables" json:"variables" bson:"variables" validate:""`
}
type HpaConfig ¶ added in v1.6.2
type HpaConfig struct {
MaxReplicas int `yaml:"maxReplicas" json:"maxReplicas" bson:"maxReplicas" validate:""`
MemoryAverageValue string `yaml:"memoryAverageValue" json:"memoryAverageValue" bson:"memoryAverageValue" validate:""`
MemoryAverageRequestPercent int `yaml:"memoryAverageRequestPercent" json:"memoryAverageRequestPercent" bson:"memoryAverageRequestPercent" validate:""`
CpuAverageValue string `yaml:"cpuAverageValue" json:"cpuAverageValue" bson:"cpuAverageValue" validate:""`
CpuAverageRequestPercent int `yaml:"cpuAverageRequestPercent" json:"cpuAverageRequestPercent" bson:"cpuAverageRequestPercent" validate:""`
}
type ImageRepo ¶ added in v1.5.2
type ImageRepo struct {
Type string `yaml:"type" json:"type" bson:"type" validate:""`
Internal struct {
Hostname string `yaml:"hostname" json:"hostname" bson:"hostname" validate:"required_with=Hostname Namespace Version"`
Namespace string `yaml:"namespace" json:"namespace" bson:"namespace" validate:"required_with=Hostname Namespace Version"`
Version string `yaml:"version" json:"version" bson:"version" validate:"required_with=Hostname Namespace Version"`
Password string `yaml:"password" json:"password" bson:"password" validate:""`
// deprecated
CertsDir string `yaml:"certsDir" json:"certsDir" bson:"certsDir" validate:"required_with=CertsDir DataDir"`
// deprecated
DataDir string `yaml:"dataDir" json:"dataDir" bson:"dataDir" validate:"required_with=CertsDir DataDir"`
RegistryPassword string `yaml:"registryPassword" json:"registryPassword" bson:"registryPassword" validate:""`
RegistryHtpasswd string `yaml:"registryHtpasswd" json:"registryHtpasswd" bson:"registryHtpasswd" validate:""`
VersionBig string `yaml:"versionBig" json:"versionBig" bson:"versionBig" validate:""`
} `yaml:"internal" json:"internal" bson:"internal" validate:""`
External struct {
Ip string `yaml:"ip" json:"ip" bson:"ip" validate:"required_with=Ip Hostname Username Password Email"`
Hostname string `yaml:"hostname" json:"hostname" bson:"hostname" validate:"required_with=Ip Hostname Username Password Email"`
Username string `yaml:"username" json:"username" bson:"username" validate:"required_with=Ip Hostname Username Password Email"`
Password string `yaml:"password" json:"password" bson:"password" validate:"required_with=Ip Hostname Username Password Email"`
Email string `yaml:"email" json:"email" bson:"email" validate:"required_with=Ip Hostname Username Password Email"`
} `yaml:"external" json:"external" bson:"external" validate:""`
}
type ImageRepoConfig ¶
type ImageRepoConfig struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
IsFromFile bool `yaml:"isFromFile" json:"isFromFile" bson:"isFromFile" validate:""`
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
RepoName string `yaml:"repoName" json:"repoName" bson:"repoName" validate:"required"`
Hostname string `yaml:"hostname" json:"hostname" bson:"hostname" validate:"required"`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
Username string `yaml:"username" json:"username" bson:"username" validate:"required"`
Password string `yaml:"password" json:"password" bson:"password" validate:"required"`
IpInternal string `yaml:"ipInternal" json:"ipInternal" bson:"ipInternal" validate:"required"`
IpExternal string `yaml:"ipExternal" json:"ipExternal" bson:"ipExternal" validate:"required"`
}
type InputStepDef ¶
type InstallConfig ¶
type InstallConfig struct {
// deprecated
RootDir string `yaml:"rootDir" json:"rootDir" bson:"rootDir" validate:""`
HostIP string `yaml:"hostIP" json:"hostIP" bson:"hostIP" validate:"required"`
ViewURL string `yaml:"viewURL" json:"viewURL" bson:"viewURL" validate:"required"`
Dory struct {
Namespace string `yaml:"namespace" json:"namespace" bson:"namespace" validate:"required"`
NodeSelector map[string]string `yaml:"nodeSelector" json:"nodeSelector" bson:"nodeSelector" validate:""`
LicenseKey string `yaml:"licenseKey" json:"licenseKey" bson:"licenseKey" validate:""`
GitRepo GitRepo `yaml:"gitRepo" json:"gitRepo" bson:"gitRepo" validate:""`
ImageRepo ImageRepo `yaml:"imageRepo" json:"imageRepo" bson:"imageRepo" validate:""`
ArtifactRepo ArtifactRepo `yaml:"artifactRepo" json:"artifactRepo" bson:"artifactRepo" validate:""`
ScanCodeRepo ScanCodeRepo `yaml:"scanCodeRepo" json:"scanCodeRepo" bson:"scanCodeRepo" validate:""`
Openldap struct {
Image string `yaml:"image" json:"image" bson:"image" validate:"required"`
ImageAdmin string `yaml:"imageAdmin" json:"imageAdmin" bson:"imageAdmin" validate:"required"`
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
Password string `yaml:"password" json:"password" bson:"password" validate:""`
Domain string `yaml:"domain" json:"domain" bson:"domain" validate:"required"`
BaseDN string `yaml:"baseDN" json:"baseDN" bson:"baseDN" validate:"required"`
ServiceName string `yaml:"serviceName" json:"serviceName" bson:"serviceName" validate:"required"`
} `yaml:"openldap" json:"openldap" bson:"openldap" validate:"required"`
Redis struct {
Image string `yaml:"image" json:"image" bson:"image" validate:"required"`
Password string `yaml:"password" json:"password" bson:"password" validate:""`
} `yaml:"redis" json:"redis" bson:"redis" validate:"required"`
Mongo struct {
Image string `yaml:"image" json:"image" bson:"image" validate:"required"`
Password string `yaml:"password" json:"password" bson:"password" validate:""`
} `yaml:"mongo" json:"mongo" bson:"mongo" validate:"required"`
DemoDatabase struct {
Internal struct {
DeployName string `yaml:"deployName" json:"deployName" bson:"deployName" validate:"required_with=DeployName Image User Database Port"`
Image string `yaml:"image" json:"image" bson:"image" validate:"required_with=DeployName Image User Database Port"`
Password string `yaml:"password" json:"password" bson:"password" validate:""`
User string `yaml:"user" json:"user" bson:"user" validate:"required_with=DeployName Image User Database Port"`
Database string `yaml:"database" json:"database" bson:"database" validate:"required_with=DeployName Image User Database Port"`
UserPassword string `yaml:"userPassword" json:"userPassword" bson:"userPassword" validate:""`
Port int `yaml:"port" json:"port" bson:"port" validate:"required_with=DeployName Image User Database Port"`
} `yaml:"internal" json:"internal" bson:"internal" validate:""`
External struct {
DbUrl string `yaml:"dbUrl" json:"dbUrl" bson:"dbUrl" validate:"required_with=DbUrl DbUser DbPassword"`
DbUser string `yaml:"dbUser" json:"dbUser" bson:"dbUser" validate:"required_with=DbUrl DbUser DbPassword"`
DbPassword string `yaml:"dbPassword" json:"dbPassword" bson:"dbPassword" validate:"required_with=DbUrl DbUser DbPassword"`
} `yaml:"external" json:"external" bson:"external" validate:""`
} `yaml:"demoDatabase" json:"demoDatabase" bson:"demoDatabase" validate:"required"`
DemoHost struct {
Internal struct {
DeployName string `` /* 135-byte string literal not displayed */
Image string `yaml:"image" json:"image" bson:"image" validate:"required_with=DeployName Image PortSsh NodePortSsh PortWeb NodePortWeb"`
Password string `yaml:"password" json:"password" bson:"password" validate:""`
PortSsh int `` /* 126-byte string literal not displayed */
NodePortSsh int `` /* 138-byte string literal not displayed */
PortWeb int `` /* 126-byte string literal not displayed */
NodePortWeb int `` /* 138-byte string literal not displayed */
} `yaml:"internal" json:"internal" bson:"internal" validate:""`
External struct {
HostAddr string `yaml:"hostAddr" json:"hostAddr" bson:"hostAddr" validate:"required_with=HostAddr HostPort HostUser HostPassword NodePortWeb"`
HostPort int `yaml:"hostPort" json:"hostPort" bson:"hostPort" validate:"required_with=HostAddr HostPort HostUser HostPassword NodePortWeb"`
HostUser string `yaml:"hostUser" json:"hostUser" bson:"hostUser" validate:"required_with=HostAddr HostPort HostUser HostPassword NodePortWeb"`
HostPassword string `` /* 136-byte string literal not displayed */
HostBecome bool `yaml:"hostBecome" json:"hostBecome" bson:"hostBecome" validate:""`
HostBecomeUser string `yaml:"hostBecomeUser" json:"hostBecomeUser" bson:"hostBecomeUser" validate:""`
HostBecomePassword string `yaml:"hostBecomePassword" json:"hostBecomePassword" bson:"hostBecomePassword" validate:""`
NodePortWeb int `` /* 133-byte string literal not displayed */
} `yaml:"external" json:"external" bson:"external" validate:""`
} `yaml:"demoHost" json:"demoHost" bson:"demoHost" validate:"required"`
Docker struct {
Image string `yaml:"image" json:"image" bson:"image" validate:"required"`
DockerName string `yaml:"dockerName" json:"dockerName" bson:"dockerName" validate:"required"`
} `yaml:"docker" json:"docker" bson:"docker" validate:"required"`
Doryengine struct {
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
} `yaml:"doryengine" json:"doryengine" bson:"doryengine" validate:"required"`
} `yaml:"dory" json:"dory" bson:"dory" validate:"required"`
Account struct {
AdminUser struct {
Username string `yaml:"username" json:"username" bson:"username" validate:"required"`
Name string `yaml:"name" json:"name" bson:"name" validate:"required"`
Mail string `yaml:"mail" json:"mail" bson:"mail" validate:"required"`
Mobile string `yaml:"mobile" json:"mobile" bson:"mobile" validate:"required"`
} `yaml:"adminUser" json:"adminUser" bson:"adminUser" validate:"required"`
Mail struct {
Host string `yaml:"host" json:"host" bson:"host" validate:"required"`
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
Username string `yaml:"username" json:"username" bson:"username" validate:"required"`
Password string `yaml:"password" json:"password" bson:"password" validate:"required"`
Mode string `yaml:"mode" json:"mode" bson:"mode" validate:""`
From string `yaml:"from" json:"from" bson:"from" validate:"required"`
} `yaml:"mail" json:"mail" bson:"mail" validate:"required"`
} `yaml:"account" json:"account" bson:"account" validate:"required"`
Kubernetes struct {
EnvName string `yaml:"envName" json:"envName" bson:"envName" validate:"required"`
EnvDesc string `yaml:"envDesc" json:"envDesc" bson:"envDesc" validate:"required"`
Timezone string `yaml:"timezone" json:"timezone" bson:"timezone" validate:"required"`
Runtime string `yaml:"runtime" json:"runtime" bson:"runtime" validate:"required,oneof=docker containerd crio"`
Host string `yaml:"host" json:"host" bson:"host" validate:"required"`
ViewHost string `yaml:"viewHost" json:"viewHost" bson:"viewHost" validate:"required"`
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
Token string `yaml:"token" json:"token" bson:"token" validate:"required"`
CaCrtBase64 string `yaml:"caCrtBase64" json:"caCrtBase64" bson:"caCrtBase64" validate:"required"`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
DashboardUrl string `yaml:"dashboardUrl" json:"dashboardUrl" bson:"dashboardUrl" validate:"required"`
DashboardUrlNetworkPolicy string `yaml:"dashboardUrlNetworkPolicy" json:"dashboardUrlNetworkPolicy" bson:"dashboardUrlNetworkPolicy" validate:"required"`
DashboardUrlPod string `yaml:"dashboardUrlPod" json:"dashboardUrlPod" bson:"dashboardUrlPod" validate:"required"`
IstioNamespace string `yaml:"istioNamespace" json:"istioNamespace" bson:"istioNamespace" validate:"required"`
IngressControllerNamespace string `yaml:"ingressControllerNamespace" json:"ingressControllerNamespace" bson:"ingressControllerNamespace" validate:"required"`
PvConfigLocal struct {
LocalPath string `yaml:"localPath" json:"localPath" bson:"localPath" validate:""`
} `yaml:"pvConfigLocal" json:"pvConfigLocal" bson:"pvConfigLocal" validate:""`
PvConfigNfs struct {
NfsPath string `yaml:"nfsPath" json:"nfsPath" bson:"nfsPath" validate:"required_with=NfsPath NfsServer"`
NfsServer string `yaml:"nfsServer" json:"nfsServer" bson:"nfsServer" validate:"required_with=NfsPath NfsServer"`
} `yaml:"pvConfigNfs" json:"pvConfigNfs" bson:"pvConfigNfs" validate:""`
PvConfigCephfs struct {
CephPath string `yaml:"cephPath" json:"cephPath" bson:"cephPath" validate:"required_with=CephPath CephUser CephSecret CephMonitors"`
CephUser string `yaml:"cephUser" json:"cephUser" bson:"cephUser" validate:"required_with=CephPath CephUser CephSecret CephMonitors"`
CephSecret string `yaml:"cephSecret" json:"cephSecret" bson:"cephSecret" validate:"required_with=CephPath CephUser CephSecret CephMonitors"`
CephMonitors []string `` /* 126-byte string literal not displayed */
} `yaml:"pvConfigCephfs" json:"pvConfigCephfs" bson:"pvConfigCephfs" validate:""`
PvConfigCsiNfs struct {
NfsPath string `yaml:"nfsPath" json:"nfsPath" bson:"nfsPath" validate:"required_with=NfsPath NfsServer"`
NfsServer string `yaml:"nfsServer" json:"nfsServer" bson:"nfsServer" validate:"required_with=NfsPath NfsServer"`
NfsMountOptions []string `yaml:"nfsMountOptions" json:"nfsMountOptions" bson:"nfsMountOptions" validate:""`
} `yaml:"pvConfigCsiNfs" json:"pvConfigCsiNfs" bson:"pvConfigCsiNfs" validate:""`
PvConfigCsiCephfs struct {
CephPath string `` /* 126-byte string literal not displayed */
CephUser string `` /* 126-byte string literal not displayed */
CephSecret string `` /* 132-byte string literal not displayed */
CephFsName string `` /* 132-byte string literal not displayed */
CephClusterId string `` /* 141-byte string literal not displayed */
} `yaml:"pvConfigCsiCephfs" json:"pvConfigCsiCephfs" bson:"pvConfigCsiCephfs" validate:""`
PvType string `yaml:"pvType" json:"pvType" bson:"pvType" validate:""`
PvPath string `yaml:"pvPath" json:"pvPath" bson:"pvPath" validate:""`
} `yaml:"kubernetes" json:"kubernetes" bson:"kubernetes" validate:"required"`
}
func (*InstallConfig) HarborProjectAdd ¶
func (ic *InstallConfig) HarborProjectAdd(projectName string) error
func (*InstallConfig) HarborQuery ¶
func (*InstallConfig) KubernetesPodsGet ¶
func (ic *InstallConfig) KubernetesPodsGet(namespace string) ([]KubePod, error)
func (*InstallConfig) KubernetesQuery ¶
func (*InstallConfig) UnmarshalMapValues ¶
func (ic *InstallConfig) UnmarshalMapValues() (map[string]interface{}, error)
func (*InstallConfig) VerifyInstallConfig ¶
func (ic *InstallConfig) VerifyInstallConfig() error
type InstallDockerImage ¶
type InstallDockerImage struct {
Source string `yaml:"source" json:"source" bson:"source" validate:"required"`
Target string `yaml:"target" json:"target" bson:"target" validate:"required"`
DockerFile string `yaml:"dockerFile" json:"dockerFile" bson:"dockerFile" validate:""`
Built string `yaml:"built" json:"built" bson:"built" validate:""`
Arm64 string `yaml:"arm64" json:"arm64" bson:"arm64" validate:""`
}
type InstallDockerImages ¶
type InstallDockerImages struct {
InstallDockerImages []InstallDockerImage `yaml:"dockerImages" json:"dockerImages" bson:"dockerImages" validate:"dive"`
}
func GetDockerImages ¶
func GetDockerImages(installConfig InstallConfig) (InstallDockerImages, error)
type IstioConnectionPool ¶
type IstioConnectionPool struct {
ConnectionPoolEnable bool `yaml:"connectionPoolEnable" json:"connectionPoolEnable" bson:"connectionPoolEnable" validate:""`
Tcp IstioConnectionPoolTcp `yaml:"tcp" json:"tcp" bson:"tcp" validate:""`
Http IstioConnectionPoolHttp `yaml:"http" json:"http" bson:"http" validate:""`
}
type IstioConnectionPoolHttp ¶
type IstioConnectionPoolHttp struct {
HttpEnable bool `yaml:"httpEnable" json:"httpEnable" bson:"httpEnable" validate:""`
Http1MaxPendingRequests int `yaml:"http1MaxPendingRequests" json:"http1MaxPendingRequests" bson:"http1MaxPendingRequests" validate:""`
Http2MaxRequests int `yaml:"http2MaxRequests" json:"http2MaxRequests" bson:"http2MaxRequests" validate:""`
MaxRequestsPerConnection int `yaml:"maxRequestsPerConnection" json:"maxRequestsPerConnection" bson:"maxRequestsPerConnection" validate:""`
MaxRetries int `yaml:"maxRetries" json:"maxRetries" bson:"maxRetries" validate:""`
IdleTimeout string `yaml:"idleTimeout" json:"idleTimeout" bson:"idleTimeout" validate:""`
}
type IstioConnectionPoolTcp ¶
type IstioConnectionPoolTcp struct {
TcpEnable bool `yaml:"tcpEnable" json:"tcpEnable" bson:"tcpEnable" validate:""`
MaxConnections int `yaml:"maxConnections" json:"maxConnections" bson:"maxConnections" validate:""`
ConnectTimeout string `yaml:"connectTimeout" json:"connectTimeout" bson:"connectTimeout" validate:""`
}
type IstioConsistentHash ¶
type IstioConsistentHash struct {
ConsistentHashEnable bool `yaml:"consistentHashEnable" json:"consistentHashEnable" bson:"consistentHashEnable" validate:""`
HttpHeaderName string `yaml:"httpHeaderName" json:"httpHeaderName" bson:"httpHeaderName" validate:""`
HttpCookie struct {
Name string `yaml:"name" json:"name" bson:"name" validate:""`
Path string `yaml:"path" json:"path" bson:"path" validate:""`
Ttl string `yaml:"ttl" json:"ttl" bson:"ttl" validate:""`
} `yaml:"httpCookie" json:"httpCookie" bson:"httpCookie" validate:""`
UseSourceIp bool `yaml:"useSourceIp" json:"useSourceIp" bson:"useSourceIp" validate:""`
HttpQueryParameterName string `yaml:"httpQueryParameterName" json:"httpQueryParameterName" bson:"httpQueryParameterName" validate:""`
}
type IstioDef ¶
type IstioDef struct {
DeployName string `yaml:"deployName" json:"deployName" bson:"deployName" validate:"required"`
Port int `yaml:"port" json:"port" bson:"port" validate:"required"`
Protocol string `yaml:"protocol" json:"protocol" bson:"protocol" validate:"required,oneof=http tcp"`
HttpSettings struct {
MatchHeaders []struct {
Header string `yaml:"header" json:"header" bson:"header" validate:"required"`
MatchType string `yaml:"matchType" json:"matchType" bson:"matchType" validate:"oneof=exact prefix regex"`
MatchValue string `yaml:"matchValue" json:"matchValue" bson:"matchValue" validate:"required"`
} `yaml:"matchHeaders" json:"matchHeaders" bson:"matchHeaders" validate:"dive"`
Gateway struct {
RewriteUri string `yaml:"rewriteUri" json:"rewriteUri" bson:"rewriteUri" validate:""`
MatchUris []struct {
MatchType string `yaml:"matchType" json:"matchType" bson:"matchType" validate:"oneof=exact prefix regex"`
MatchValue string `yaml:"matchValue" json:"matchValue" bson:"matchValue" validate:"required"`
} `yaml:"matchUris" json:"matchUris" bson:"matchUris" validate:"dive"`
MatchDefault bool `yaml:"matchDefault" json:"matchDefault" bson:"matchDefault" validate:""`
} `yaml:"gateway" json:"gateway" bson:"gateway" validate:""`
Timeout string `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retries struct {
RetryOn string `yaml:"retryOn" json:"retryOn" bson:"retryOn" validate:""`
Attempts int `yaml:"attempts" json:"attempts" bson:"attempts" validate:""`
PerTryTimeout string `yaml:"perTryTimeout" json:"perTryTimeout" bson:"perTryTimeout" validate:""`
} `yaml:"retries" json:"retries" bson:"retries" validate:""`
Mirror struct {
Host string `yaml:"host" json:"host" bson:"host" validate:""`
Port int `yaml:"port" json:"port" bson:"port" validate:""`
Subset string `yaml:"subset" json:"subset" bson:"subset" validate:""`
MirrorPercent int `yaml:"mirrorPercent" json:"mirrorPercent" bson:"mirrorPercent" validate:""`
} `yaml:"mirror" json:"mirror" bson:"mirror" validate:""`
CorsPolicy struct {
AllowOrigins []map[string]string `yaml:"allowOrigins" json:"allowOrigins" bson:"allowOrigins" validate:""`
AllowMethods []string `yaml:"allowMethods" json:"allowMethods" bson:"allowMethods" validate:""`
AllowCredentials bool `yaml:"allowCredentials" json:"allowCredentials" bson:"allowCredentials" validate:""`
AllowHeaders []string `yaml:"allowHeaders" json:"allowHeaders" bson:"allowHeaders" validate:""`
ExposeHeaders []string `yaml:"exposeHeaders" json:"exposeHeaders" bson:"exposeHeaders" validate:""`
MaxAge string `yaml:"maxAge" json:"maxAge" bson:"maxAge" validate:""`
} `yaml:"corsPolicy" json:"corsPolicy" bson:"corsPolicy" validate:""`
TrafficPolicyEnable bool `yaml:"trafficPolicyEnable" json:"trafficPolicyEnable" bson:"trafficPolicyEnable" validate:""`
LoadBalancer IstioLoadBalancer `yaml:"loadBalancer" json:"loadBalancer" bson:"loadBalancer" validate:""`
ConnectionPool IstioConnectionPool `yaml:"connectionPool" json:"connectionPool" bson:"connectionPool" validate:""`
OutlierDetection IstioOutlierDetection `yaml:"outlierDetection" json:"outlierDetection" bson:"outlierDetection" validate:""`
} `yaml:"httpSettings" json:"httpSettings" bson:"httpSettings" validate:""`
TcpSettings struct {
SourceServiceNames []string `yaml:"sourceServiceNames" json:"sourceServiceNames" bson:"sourceServiceNames" validate:""`
} `yaml:"tcpSettings" json:"tcpSettings" bson:"tcpSettings" validate:""`
LabelName string `yaml:"labelName" json:"labelName" bson:"labelName" validate:""`
LocalLabelConfig struct {
LabelDefault string `yaml:"labelDefault" json:"labelDefault" bson:"labelDefault" validate:""`
LabelNew string `yaml:"labelNew" json:"labelNew" bson:"labelNew" validate:""`
} `yaml:"localLabelConfig" json:"localLabelConfig" bson:"localLabelConfig" validate:""`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type IstioGatewayDef ¶
type IstioGatewayDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
HostDefault string `yaml:"hostDefault" json:"hostDefault" bson:"hostDefault" validate:""`
HostNew string `yaml:"hostNew" json:"hostNew" bson:"hostNew" validate:""`
SourceSubsetHeader string `yaml:"sourceSubsetHeader" json:"sourceSubsetHeader" bson:"sourceSubsetHeader" validate:""`
CertSelfSigned bool `yaml:"certSelfSigned" json:"certSelfSigned" bson:"certSelfSigned" validate:""`
CertPath string `yaml:"certPath" json:"certPath" bson:"certPath" validate:""`
WeightDefault int `yaml:"weightDefault" json:"weightDefault" bson:"weightDefault" validate:""`
WeightNew int `yaml:"weightNew" json:"weightNew" bson:"weightNew" validate:""`
}
type IstioLoadBalancer ¶
type IstioLoadBalancer struct {
LoadBalancerEnable bool `yaml:"loadBalancerEnable" json:"loadBalancerEnable" bson:"loadBalancerEnable" validate:""`
Simple string `yaml:"simple" json:"simple" bson:"simple" validate:""`
ConsistentHash IstioConsistentHash `yaml:"consistentHash" json:"consistentHash" bson:"consistentHash" validate:""`
}
type IstioOutlierDetection ¶
type IstioOutlierDetection struct {
OutlierDetectionEnable bool `yaml:"outlierDetectionEnable" json:"outlierDetectionEnable" bson:"outlierDetectionEnable" validate:""`
ConsecutiveGatewayErrors int `yaml:"consecutiveGatewayErrors" json:"consecutiveGatewayErrors" bson:"consecutiveGatewayErrors" validate:""`
Consecutive5xxErrors int `yaml:"consecutive5xxErrors" json:"consecutive5xxErrors" bson:"consecutive5xxErrors" validate:""`
Interval string `yaml:"interval" json:"interval" bson:"interval" validate:""`
BaseEjectionTime string `yaml:"baseEjectionTime" json:"baseEjectionTime" bson:"baseEjectionTime" validate:""`
MaxEjectionPercent int `yaml:"maxEjectionPercent" json:"maxEjectionPercent" bson:"maxEjectionPercent" validate:""`
MinHealthPercent int `yaml:"minHealthPercent" json:"minHealthPercent" bson:"minHealthPercent" validate:""`
}
type KubeNode ¶
type KubeNode struct {
ApiVersion string `yaml:"apiVersion" json:"apiVersion" bson:"apiVersion" validate:"required"`
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
MetaData struct {
Name string `yaml:"name" json:"name" bson:"name" validate:"required"`
Labels map[string]string `yaml:"labels" json:"labels" bson:"labels" validate:""`
Annotations map[string]string `yaml:"annotations" json:"annotations" bson:"annotations" validate:""`
} `yaml:"metadata" json:"metadata" bson:"metadata" validate:"required"`
Spec struct {
PodCIDR string `yaml:"podCIDR" json:"podCIDR" bson:"podCIDR" validate:""`
PodCIDRs []string `yaml:"podCIDRs" json:"podCIDRs" bson:"podCIDRs" validate:""`
Unschedulable bool `yaml:"unschedulable" json:"unschedulable" bson:"unschedulable" validate:""`
} `yaml:"spec" json:"spec" bson:"spec" validate:""`
Status struct {
Addresses []struct {
Address string `yaml:"address" json:"address" bson:"address" validate:""`
Type string `yaml:"type" json:"type" bson:"type" validate:""`
} `yaml:"addresses" json:"addresses" bson:"addresses" validate:""`
Allocatable struct {
Cpu string `yaml:"cpu" json:"cpu" bson:"cpu" validate:""`
Memory string `yaml:"memory" json:"memory" bson:"memory" validate:""`
Pods string `yaml:"pods" json:"pods" bson:"pods" validate:""`
} `yaml:"allocatable" json:"allocatable" bson:"allocatable" validate:""`
Capacity struct {
Cpu string `yaml:"cpu" json:"cpu" bson:"cpu" validate:""`
Memory string `yaml:"memory" json:"memory" bson:"memory" validate:""`
Pods string `yaml:"pods" json:"pods" bson:"pods" validate:""`
} `yaml:"capacity" json:"capacity" bson:"capacity" validate:""`
Conditions []struct {
LastHeartbeatTime string `yaml:"lastHeartbeatTime" json:"lastHeartbeatTime" bson:"lastHeartbeatTime" validate:""`
LastTransitionTime string `yaml:"lastTransitionTime" json:"lastTransitionTime" bson:"lastTransitionTime" validate:""`
Message string `yaml:"message" json:"message" bson:"message" validate:""`
Reason string `yaml:"reason" json:"reason" bson:"reason" validate:""`
Status string `yaml:"status" json:"status" bson:"status" validate:""`
Type string `yaml:"type" json:"type" bson:"type" validate:""`
} `yaml:"conditions" json:"conditions" bson:"conditions" validate:""`
NodeInfo struct {
Architecture string `yaml:"architecture" json:"architecture" bson:"architecture" validate:""`
ContainerRuntimeVersion string `yaml:"containerRuntimeVersion" json:"containerRuntimeVersion" bson:"containerRuntimeVersion" validate:""`
KernelVersion string `yaml:"kernelVersion" json:"kernelVersion" bson:"kernelVersion" validate:""`
KubeProxyVersion string `yaml:"kubeProxyVersion" json:"kubeProxyVersion" bson:"kubeProxyVersion" validate:""`
KubeletVersion string `yaml:"kubeletVersion" json:"kubeletVersion" bson:"kubeletVersion" validate:""`
OperatingSystem string `yaml:"operatingSystem" json:"operatingSystem" bson:"operatingSystem" validate:""`
OsImage string `yaml:"osImage" json:"osImage" bson:"osImage" validate:""`
} `yaml:"nodeInfo" json:"nodeInfo" bson:"nodeInfo" validate:""`
} `yaml:"status" json:"status" bson:"status" validate:""`
}
type KubePod ¶
type KubePod struct {
ApiVersion string `yaml:"apiVersion" json:"apiVersion" bson:"apiVersion" validate:"required"`
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
MetaData struct {
Name string `yaml:"name" json:"name" bson:"name" validate:"required"`
NameSpace string `yaml:"namespace" json:"namespace" bson:"namespace" validate:""`
Labels map[string]string `yaml:"labels" json:"labels" bson:"labels" validate:""`
Annotations map[string]string `yaml:"annotations" json:"annotations" bson:"annotations" validate:""`
CreationTimestamp string `yaml:"creationTimestamp" json:"creationTimestamp" bson:"creationTimestamp" validate:""`
DeletionTimestamp string `yaml:"deletionTimestamp" json:"deletionTimestamp" bson:"deletionTimestamp" validate:""`
OwnerReferences []struct {
ApiVersion string `yaml:"apiVersion" json:"apiVersion" bson:"apiVersion" validate:"required"`
BlockOwnerDeletion bool `yaml:"blockOwnerDeletion" json:"blockOwnerDeletion" bson:"blockOwnerDeletion" validate:""`
Controller bool `yaml:"controller" json:"controller" bson:"controller" validate:""`
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:""`
Name string `yaml:"name" json:"name" bson:"name" validate:""`
Uid string `yaml:"uid" json:"uid" bson:"uid" validate:""`
} `yaml:"ownerReferences" json:"ownerReferences" bson:"ownerReferences" validate:""`
} `yaml:"metadata" json:"metadata" bson:"metadata" validate:"required"`
Spec struct {
Containers []struct {
Name string `yaml:"name" json:"name" bson:"name" validate:""`
Image string `yaml:"image" json:"image" bson:"image" validate:""`
} `yaml:"containers" json:"containers" bson:"containers" validate:""`
} `yaml:"spec" json:"spec" bson:"spec" validate:""`
Status struct {
Reason string `yaml:"reason" json:"reason" bson:"reason" validate:""`
Conditions []struct {
Type string `yaml:"type" json:"type" bson:"type" validate:""`
Status string `yaml:"status" json:"status" bson:"status" validate:""`
} `yaml:"conditions" json:"conditions" bson:"conditions" validate:""`
ContainerStatuses []struct {
Name string `yaml:"name" json:"name" bson:"name" validate:""`
Ready bool `yaml:"ready" json:"ready" bson:"ready" validate:""`
Started bool `yaml:"started" json:"started" bson:"started" validate:""`
RestartCount int `yaml:"restartCount" json:"restartCount" bson:"restartCount" validate:""`
State KubePodState `yaml:"state" json:"state" bson:"state" validate:""`
} `yaml:"containerStatuses" json:"containerStatuses" bson:"containerStatuses" validate:""`
InitContainerStatuses []struct {
Name string `yaml:"name" json:"name" bson:"name" validate:""`
Ready bool `yaml:"ready" json:"ready" bson:"ready" validate:""`
Started bool `yaml:"started" json:"started" bson:"started" validate:""`
RestartCount int `yaml:"restartCount" json:"restartCount" bson:"restartCount" validate:""`
State KubePodState `yaml:"state" json:"state" bson:"state" validate:""`
} `yaml:"initContainerStatuses" json:"initContainerStatuses" bson:"initContainerStatuses" validate:""`
Phase string `yaml:"phase" json:"phase" bson:"phase" validate:""`
PodIP string `yaml:"podIP" json:"podIP" bson:"podIP" validate:""`
StartTime time.Time `yaml:"startTime" json:"startTime" bson:"startTime" validate:""`
} `yaml:"status" json:"status" bson:"status" validate:""`
}
type KubePodList ¶
type KubePodList struct {
Items []KubePod `yaml:"items" json:"items" bson:"items" validate:"dive"`
}
type KubePodState ¶
type KubePodState struct {
Waiting struct {
Reason string `yaml:"reason" json:"reason" bson:"reason" validate:""`
} `yaml:"waiting" json:"waiting" bson:"waiting" validate:""`
Running struct {
StartedAt string `yaml:"startedAt" json:"startedAt" bson:"startedAt" validate:""`
} `yaml:"running" json:"running" bson:"running" validate:""`
Terminated struct {
Reason string `yaml:"reason" json:"reason" bson:"reason" validate:""`
ExitCode int `yaml:"exitCode" json:"exitCode" bson:"exitCode" validate:""`
Signal int `yaml:"signal" json:"signal" bson:"signal" validate:""`
} `yaml:"terminated" json:"terminated" bson:"terminated" validate:""`
}
type KubernetesHaCluster ¶
type KubernetesHaCluster struct {
Version string `yaml:"version" json:"version" bson:"version" validate:"required"`
ImageRepository string `yaml:"imageRepository" json:"imageRepository" bson:"imageRepository" validate:""`
KeepalivedImage string `yaml:"keepalivedImage" json:"keepalivedImage" bson:"keepalivedImage" validate:"required"`
NginxlbImage string `yaml:"nginxlbImage" json:"nginxlbImage" bson:"nginxlbImage" validate:"required"`
VirtualIp string `yaml:"virtualIp" json:"virtualIp" bson:"virtualIp" validate:"required"`
VirtualPort int `yaml:"virtualPort" json:"virtualPort" bson:"virtualPort" validate:"required"`
VirtualHostname string `yaml:"virtualHostname" json:"virtualHostname" bson:"virtualHostname" validate:"required"`
CriSocket string `yaml:"criSocket" json:"criSocket" bson:"criSocket" validate:"required"`
PodSubnet string `yaml:"podSubnet" json:"podSubnet" bson:"podSubnet" validate:""`
ServiceSubnet string `yaml:"serviceSubnet" json:"serviceSubnet" bson:"serviceSubnet" validate:""`
KeepAlivedAuthPass string `yaml:"keepAlivedAuthPass" json:"keepAlivedAuthPass" bson:"keepAlivedAuthPass" validate:""`
KeepAlivedVirtualRouterId int `yaml:"keepAlivedVirtualRouterId" json:"keepAlivedVirtualRouterId" bson:"keepAlivedVirtualRouterId" validate:"required"`
MasterHosts []struct {
IpAddress string `yaml:"ipAddress" json:"ipAddress" bson:"ipAddress" validate:"required"`
Hostname string `yaml:"hostname" json:"hostname" bson:"hostname" validate:"required"`
NetworkInterface string `yaml:"networkInterface" json:"networkInterface" bson:"networkInterface" validate:"required"`
KeepalivedPriority int `yaml:"keepalivedPriority" json:"keepalivedPriority" bson:"keepalivedPriority" validate:"required"`
} `yaml:"masterHosts" json:"masterHosts" bson:"masterHosts" validate:"required"`
}
func (*KubernetesHaCluster) VerifyKubernetesHaCluster ¶
func (khc *KubernetesHaCluster) VerifyKubernetesHaCluster() error
type OpsBatchDef ¶
type OpsBatchDef struct {
OpsBatchName string `yaml:"opsBatchName" json:"opsBatchName" bson:"opsBatchName" validate:"required"`
OpsBatchDesc string `yaml:"opsBatchDesc" json:"opsBatchDesc" bson:"opsBatchDesc" validate:"required"`
Batches []string `yaml:"batches" json:"batches" bson:"batches" validate:"required"`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type PackageDef ¶
type PackageDef struct {
PackageName string `yaml:"packageName" json:"packageName" bson:"packageName" validate:"required"`
RelatedBuilds []string `yaml:"relatedBuilds" json:"relatedBuilds" bson:"relatedBuilds" validate:"required"`
DockerFile string `yaml:"dockerFile" json:"dockerFile" bson:"dockerFile" validate:"required"`
ExtraPushImages []ExtraPushImage `yaml:"extraPushImages" json:"extraPushImages" bson:"extraPushImages" validate:"dive"`
IsPatch bool `yaml:"isPatch" json:"isPatch" bson:"isPatch" validate:""`
}
type PackageImageStepDef ¶
type PackageImageStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
ExtraPush bool `yaml:"extraPush" json:"extraPush" bson:"extraPush" validate:""`
}
type PatchAction ¶
type PatchAction struct {
Action string `yaml:"action" json:"action" bson:"action" validate:"required"`
Path string `yaml:"path" json:"path" bson:"path" validate:"required"`
Value interface{} `yaml:"value" json:"value" bson:"value" validate:""`
Str interface{} `yaml:"str" json:"str" bson:"str" validate:""`
}
type Pipeline ¶
type Pipeline struct {
PipelineName string `yaml:"pipelineName" json:"pipelineName" bson:"pipelineName" validate:""`
BranchName string `yaml:"branchName" json:"branchName" bson:"branchName" validate:""`
Envs []string `yaml:"envs" json:"envs" bson:"envs" validate:""`
EnvProductions []string `yaml:"envProductions" json:"envProductions" bson:"envProductions" validate:""`
SuccessCount int `yaml:"successCount" json:"successCount" bson:"successCount" validate:""`
FailCount int `yaml:"failCount" json:"failCount" bson:"failCount" validate:""`
AbortCount int `yaml:"abortCount" json:"abortCount" bson:"abortCount" validate:""`
Status struct {
Result string `yaml:"result" json:"result" bson:"result" validate:""`
StartTime string `yaml:"startTime" json:"startTime" bson:"startTime" validate:""`
Duration string `yaml:"duration" json:"duration" bson:"duration" validate:""`
} `yaml:"status" json:"status" bson:"status" validate:""`
ErrMsgPipelineDef string `yaml:"errMsgPipelineDef" json:"errMsgPipelineDef" bson:"errMsgPipelineDef" validate:""`
PipelineDef struct {
Builds []PipelineBuild `yaml:"builds" json:"builds" bson:"builds" validate:"dive"`
PipelineStep PipelineStepDef `yaml:"pipelineStep" json:"pipelineStep" bson:"pipelineStep" validate:""`
} `yaml:"pipelineDef" json:"pipelineDef" bson:"pipelineDef" validate:""`
}
type PipelineBuild ¶
type PipelineBuildDef ¶
type PipelineCron ¶ added in v1.6.5
type PipelineCron struct {
CrontabMinute int `yaml:"crontabMinute" json:"crontabMinute" bson:"crontabMinute" validate:""`
CrontabHour int `yaml:"crontabHour" json:"crontabHour" bson:"crontabHour" validate:""`
CrontabDay int `yaml:"crontabDay" json:"crontabDay" bson:"crontabDay" validate:""`
CrontabMonth int `yaml:"crontabMonth" json:"crontabMonth" bson:"crontabMonth" validate:""`
CrontabWeek int `yaml:"crontabWeek" json:"crontabWeek" bson:"crontabWeek" validate:""`
}
type PipelineDef ¶
type PipelineDef struct {
IsAutoDetectBuild bool `yaml:"isAutoDetectBuild" json:"isAutoDetectBuild" bson:"isAutoDetectBuild" validate:""`
IsQueue bool `yaml:"isQueue" json:"isQueue" bson:"isQueue" validate:""`
PipelineArch string `yaml:"pipelineArch" json:"pipelineArch" bson:"pipelineArch" validate:""`
Builds []PipelineBuildDef `yaml:"builds" json:"builds" bson:"builds" validate:"dive"`
PipelineStep PipelineStepDef `yaml:"pipelineStep" json:"pipelineStep" bson:"pipelineStep" validate:"required"`
CustomStepInsertDefs map[string][]CustomStepPhaseDef `yaml:"customStepInsertDefs" json:"customStepInsertDefs" bson:"customStepInsertDefs" validate:"dive"`
}
type PipelineStepDef ¶
type PipelineStepDef struct {
GitPullStepDef GitPullStepDef `yaml:"gitPull" json:"gitPull" bson:"gitPull" validate:""`
GetRunSettingsStepDef GetRunSettingsStepDef `yaml:"getRunSettings" json:"getRunSettings" bson:"getRunSettings" validate:""`
BuildStepDef BuildStepDef `yaml:"build" json:"build" bson:"build" validate:""`
ScanCodeStepDef ScanCodeStepDef `yaml:"scanCode" json:"scanCode" bson:"scanCode" validate:""`
PackageImageStepDef PackageImageStepDef `yaml:"packageImage" json:"packageImage" bson:"packageImage" validate:""`
ScanImageStepDef ScanImageStepDef `yaml:"scanImage" json:"scanImage" bson:"scanImage" validate:""`
ArtifactStepDef ArtifactStepDef `yaml:"artifact" json:"artifact" bson:"artifact" validate:""`
SyncImageStepDef SyncImageStepDef `yaml:"syncImage" json:"syncImage" bson:"syncImage" validate:""`
DeployContainerStepDef DeployContainerStepDef `yaml:"deploy" json:"deploy" bson:"deploy" validate:""`
ApplyIngressStepDef ApplyIngressStepDef `yaml:"applyIngress" json:"applyIngress" bson:"applyIngress" validate:""`
ApplyMeshStepDef ApplyMeshStepDef `yaml:"applyMesh" json:"applyMesh" bson:"applyMesh" validate:""`
CheckDeployStepDef CheckDeployStepDef `yaml:"checkDeploy" json:"checkDeploy" bson:"checkDeploy" validate:""`
CheckQuotaStepDef CheckQuotaStepDef `yaml:"checkQuota" json:"checkQuota" bson:"checkQuota" validate:""`
DeployArtifactStepDef DeployArtifactStepDef `yaml:"deployArtifact" json:"deployArtifact" bson:"deployArtifact" validate:""`
TestApiStepDef TestApiStepDef `yaml:"testApi" json:"testApi" bson:"testApi" validate:""`
TestPerformanceStepDef TestPerformanceStepDef `yaml:"testPerformance" json:"testPerformance" bson:"testPerformance" validate:""`
TestWebuiStepDef TestWebuiStepDef `yaml:"testWebui" json:"testWebui" bson:"testWebui" validate:""`
InputStepDef InputStepDef `yaml:"input" json:"input" bson:"input" validate:""`
}
type PipelineTrigger ¶ added in v1.6.5
type PipelineTrigger struct {
StepAction string `yaml:"stepAction" json:"stepAction" bson:"stepAction" validate:""`
BeforeExecute bool `yaml:"beforeExecute" json:"beforeExecute" bson:"beforeExecute" validate:""`
StatusResults []string `yaml:"statusResults" json:"statusResults" bson:"statusResults" validate:""`
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
CheckVarToIgnore string `yaml:"checkVarToIgnore" json:"checkVarToIgnore" bson:"checkVarToIgnore" validate:""`
WebhookUrl string `yaml:"webhookUrl" json:"webhookUrl" bson:"webhookUrl" validate:""`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
WebhookMethod string `yaml:"webhookMethod" json:"webhookMethod" bson:"webhookMethod" validate:""`
WebhookHeaders []WebhookNameVale `yaml:"webhookHeaders" json:"webhookHeaders" bson:"webhookHeaders" validate:"dive"`
WebhookQueryParams []WebhookNameVale `yaml:"webhookQueryParams" json:"webhookQueryParams" bson:"webhookQueryParams" validate:"dive"`
WebhookForms []WebhookNameVale `yaml:"webhookForms" json:"webhookForms" bson:"webhookForms" validate:"dive"`
WebhookBody string `yaml:"webhookBody" json:"webhookBody" bson:"webhookBody" validate:""`
MailTitle string `yaml:"mailTitle" json:"mailTitle" bson:"mailTitle" validate:""`
MailContent string `yaml:"mailContent" json:"mailContent" bson:"mailContent" validate:""`
MailAttachmentFormat string `yaml:"mailAttachmentFormat" json:"mailAttachmentFormat" bson:"mailAttachmentFormat" validate:""`
MailCommittees bool `yaml:"mailCommittees" json:"mailCommittees" bson:"mailCommittees" validate:""`
MailReceivers []string `yaml:"mailReceivers" json:"mailReceivers" bson:"mailReceivers" validate:""`
NoticeCommittees bool `yaml:"noticeCommittees" json:"noticeCommittees" bson:"noticeCommittees" validate:""`
NoticeUsernames []string `yaml:"noticeUsernames" json:"noticeUsernames" bson:"noticeUsernames" validate:""`
}
type Project ¶
type Project struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
ProjectInfo ProjectInfo `yaml:"projectInfo" json:"projectInfo" bson:"projectInfo" validate:""`
ProjectRepo struct {
GitRepo string `yaml:"gitRepo" json:"gitRepo" bson:"gitRepo" validate:""`
GitRepoDir GitRepoDir `yaml:"gitRepoDir" json:"gitRepoDir" bson:"gitRepoDir" validate:""`
ImageRepo string `yaml:"imageRepo" json:"imageRepo" bson:"imageRepo" validate:""`
ArtifactRepo string `yaml:"artifactRepo" json:"artifactRepo" bson:"artifactRepo" validate:""`
ArtifactRepoType string `yaml:"artifactRepoType" json:"artifactRepoType" bson:"artifactRepoType" validate:""`
ScanCodeRepo string `yaml:"scanCodeRepo" json:"scanCodeRepo" bson:"scanCodeRepo" validate:""`
} `yaml:"projectRepo" json:"projectRepo" bson:"projectRepo" validate:""`
ProjectNodePorts []struct {
EnvName string `yaml:"envName" json:"envName" bson:"envName" validate:""`
EnvNodePorts []EnvNodePort `yaml:"envNodePorts" json:"envNodePorts" bson:"envNodePorts" validate:"dive"`
NodePorts []int `yaml:"nodePorts" json:"nodePorts" bson:"nodePorts" validate:""`
} `yaml:"projectNodePorts" json:"projectNodePorts" bson:"projectNodePorts" validate:""`
Modules map[string][]Module `yaml:"modules" json:"modules" bson:"modules" validate:"dive"`
OpsBatchDefs []struct {
OpsBatchDesc string `yaml:"opsBatchDesc" json:"opsBatchDesc" bson:"opsBatchDesc" validate:""`
OpsBatchName string `yaml:"opsBatchName" json:"opsBatchName" bson:"opsBatchName" validate:""`
} `yaml:"opsBatchDefs" json:"opsBatchDefs" bson:"opsBatchDefs" validate:""`
Pipelines []Pipeline `yaml:"pipelines" json:"pipelines" bson:"pipelines" validate:"dive"`
}
type ProjectAvailableEnv ¶
type ProjectAvailableEnv struct {
EnvName string `yaml:"envName" json:"envName" bson:"envName" validate:"required"`
Privileged bool `yaml:"privileged" json:"privileged" bson:"privileged" validate:""`
DisabledDefs []string `yaml:"disabledDefs" json:"disabledDefs" bson:"disabledDefs" validate:""`
DisabledPatches []string `yaml:"disabledPatches" json:"disabledPatches" bson:"disabledPatches" validate:""`
DeployContainerDefs []DeployContainerDef `yaml:"deployContainerDefs" json:"deployContainerDefs" bson:"deployContainerDefs" validate:"dive"`
UpdateDeployContainerDefs bool `yaml:"updateDeployContainerDefs" json:"updateDeployContainerDefs" bson:"updateDeployContainerDefs" validate:""`
DeployArtifactDefs []DeployArtifactDef `yaml:"deployArtifactDefs" json:"deployArtifactDefs" bson:"deployArtifactDefs" validate:"dive"`
UpdateDeployArtifactDefs bool `yaml:"updateDeployArtifactDefs" json:"updateDeployArtifactDefs" bson:"updateDeployArtifactDefs" validate:""`
IstioDefs []IstioDef `yaml:"istioDefs" json:"istioDefs" bson:"istioDefs" validate:"dive"`
UpdateIstioDefs bool `yaml:"updateIstioDefs" json:"updateIstioDefs" bson:"updateIstioDefs" validate:""`
IstioGatewayDef IstioGatewayDef `yaml:"istioGatewayDef" json:"istioGatewayDef" bson:"istioGatewayDef" validate:""`
UpdateIstioGatewayDef bool `yaml:"updateIstioGatewayDef" json:"updateIstioGatewayDef" bson:"updateIstioGatewayDef" validate:""`
CustomStepDefs CustomStepDefs `yaml:"customStepDefs" json:"customStepDefs" bson:"customStepDefs" validate:""`
EnvDebugSpec EnvDebugSpec `yaml:"envDebugSpec" json:"envDebugSpec" bson:"envDebugSpec" validate:""`
EnvNodePorts []EnvNodePort `yaml:"envNodePorts" json:"envNodePorts" bson:"envNodePorts" validate:"dive"`
ErrMsgDeployContainerDefs string `yaml:"errMsgDeployContainerDefs" json:"errMsgDeployContainerDefs" bson:"errMsgDeployContainerDefs" validate:""`
ErrMsgDeployArtifactDefs string `yaml:"errMsgDeployArtifactDefs" json:"errMsgDeployArtifactDefs" bson:"errMsgDeployArtifactDefs" validate:""`
ErrMsgIstioDefs string `yaml:"errMsgIstioDefs" json:"errMsgIstioDefs" bson:"errMsgIstioDefs" validate:""`
ErrMsgIstioGatewayDef string `yaml:"errMsgIstioGatewayDef" json:"errMsgIstioGatewayDef" bson:"errMsgIstioGatewayDef" validate:""`
ErrMsgCustomStepDefs map[string]string `yaml:"errMsgCustomStepDefs" json:"errMsgCustomStepDefs" bson:"errMsgCustomStepDefs" validate:""`
}
type ProjectAvailableEnvConsole ¶ added in v1.6.5
type ProjectAvailableEnvConsole struct {
EnvName string `yaml:"envName" json:"envName" bson:"envName" validate:""`
ComponentDebug ComponentDebug `yaml:"componentDebug" json:"componentDebug" bson:"componentDebug" validate:""`
Components []Component `yaml:"components" json:"components" bson:"components" validate:"dive"`
Databases []Database `yaml:"databases" json:"databases" bson:"databases" validate:"dive"`
Hosts []Host `yaml:"hosts" json:"hosts" bson:"hosts" validate:"dive"`
}
type ProjectConsole ¶ added in v1.6.5
type ProjectConsole struct {
ProjectInfo ProjectInfo `yaml:"projectInfo" json:"projectInfo" bson:"projectInfo" validate:""`
ProjectMembers []ProjectMember `yaml:"projectMembers" json:"projectMembers" bson:"projectMembers" validate:"dive"`
Pipelines []ProjectPipeline `yaml:"pipelines" json:"pipelines" bson:"pipelines" validate:"dive"`
ProjectAvailableEnvs []ProjectAvailableEnvConsole `yaml:"projectAvailableEnvs" json:"projectAvailableEnvs" bson:"projectAvailableEnvs" validate:"dive"`
}
type ProjectDef ¶
type ProjectDef struct {
BuildDefs []BuildDef `yaml:"buildDefs" json:"buildDefs" bson:"buildDefs" validate:"dive"`
UpdateBuildDefs bool `yaml:"updateBuildDefs" json:"updateBuildDefs" bson:"updateBuildDefs" validate:""`
PackageDefs []PackageDef `yaml:"packageDefs" json:"packageDefs" bson:"packageDefs" validate:"dive"`
UpdatePackageDefs bool `yaml:"updatePackageDefs" json:"updatePackageDefs" bson:"updatePackageDefs" validate:""`
ArtifactDefs []ArtifactDef `yaml:"artifactDefs" json:"artifactDefs" bson:"artifactDefs" validate:"dive"`
UpdateArtifactDefs bool `yaml:"updateArtifactDefs" json:"updateArtifactDefs" bson:"updateArtifactDefs" validate:""`
DockerIgnoreDefs []string `yaml:"dockerIgnoreDefs" json:"dockerIgnoreDefs" bson:"dockerIgnoreDefs" validate:""`
UpdateDockerIgnoreDefs bool `yaml:"updateDockerIgnoreDefs" json:"updateDockerIgnoreDefs" bson:"updateDockerIgnoreDefs" validate:""`
CustomStepDefs CustomStepDefs `yaml:"customStepDefs" json:"customStepDefs" bson:"customStepDefs" validate:""`
CustomOpsDefs []CustomOpsDef `yaml:"customOpsDefs" json:"customOpsDefs" bson:"customOpsDefs" validate:"dive"`
UpdateCustomOpsDefs bool `yaml:"updateCustomOpsDefs" json:"updateCustomOpsDefs" bson:"updateCustomOpsDefs" validate:""`
OpsBatchDefs []OpsBatchDef `yaml:"opsBatchDefs" json:"opsBatchDefs" bson:"opsBatchDefs" validate:"dive"`
UpdateOpsBatchDefs bool `yaml:"updateOpsBatchDefs" json:"updateOpsBatchDefs" bson:"updateOpsBatchDefs" validate:""`
ErrMsgPackageDefs string `yaml:"errMsgPackageDefs" json:"errMsgPackageDefs" bson:"errMsgPackageDefs" validate:""`
ErrMsgArtifactDefs string `yaml:"errMsgArtifactDefs" json:"errMsgArtifactDefs" bson:"errMsgArtifactDefs" validate:""`
ErrMsgCustomStepDefs map[string]string `yaml:"errMsgCustomStepDefs" json:"errMsgCustomStepDefs" bson:"errMsgCustomStepDefs" validate:""`
ErrMsgCustomOpsDefs string `yaml:"errMsgCustomOpsDefs" json:"errMsgCustomOpsDefs" bson:"errMsgCustomOpsDefs" validate:""`
ErrMsgOpsBatchDefs string `yaml:"errMsgOpsBatchDefs" json:"errMsgOpsBatchDefs" bson:"errMsgOpsBatchDefs" validate:""`
}
type ProjectInfo ¶
type ProjectInfo struct {
ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""`
ProjectNamespace string `yaml:"projectNamespace" json:"projectNamespace" bson:"projectNamespace" validate:""`
ProjectShortName string `yaml:"projectShortName" json:"projectShortName" bson:"projectShortName" validate:""`
ShortName string `yaml:"shortName" json:"shortName" bson:"shortName" validate:""`
DefaultPv string `yaml:"defaultPv" json:"defaultPv" bson:"defaultPv" validate:""`
ProjectDesc string `yaml:"projectDesc" json:"projectDesc" bson:"projectDesc" validate:""`
ProjectTeam string `yaml:"projectTeam" json:"projectTeam" bson:"projectTeam" validate:""`
}
type ProjectMember ¶ added in v1.6.5
type ProjectMember struct {
Username string `yaml:"username" json:"username" bson:"username" validate:"required"`
AccessLevel string `yaml:"accessLevel" json:"accessLevel" bson:"accessLevel" validate:"required"`
DisableProjectDefs []string `yaml:"disableProjectDefs" json:"disableProjectDefs" bson:"disableProjectDefs" validate:""`
DisableRepoSecrets []string `yaml:"disableRepoSecrets" json:"disableRepoSecrets" bson:"disableRepoSecrets" validate:""`
DisablePipelines []string `yaml:"disablePipelines" json:"disablePipelines" bson:"disablePipelines" validate:""`
}
type ProjectOutput ¶
type ProjectOutput struct {
ProjectInfo ProjectInfo `yaml:"projectInfo" json:"projectInfo" bson:"projectInfo" validate:""`
ProjectPipelines []ProjectPipeline `yaml:"pipelines" json:"pipelines" bson:"pipelines" validate:"dive"`
ProjectAvailableEnvs []ProjectAvailableEnv `yaml:"projectAvailableEnvs" json:"projectAvailableEnvs" bson:"projectAvailableEnvs" validate:"dive"`
ProjectNodePorts []struct {
EnvName string `yaml:"envName" json:"envName" bson:"envName" validate:""`
EnvNodePorts []EnvNodePort `yaml:"envNodePorts" json:"envNodePorts" bson:"envNodePorts" validate:"dive"`
NodePorts []int `yaml:"nodePorts" json:"nodePorts" bson:"nodePorts" validate:""`
} `yaml:"projectNodePorts" json:"projectNodePorts" bson:"projectNodePorts" validate:""`
ProjectDef ProjectDef `yaml:"projectDef" json:"projectDef" bson:"projectDef" validate:""`
BuildEnvs []string `yaml:"buildEnvs" json:"buildEnvs" bson:"buildEnvs" validate:""`
BuildNames []string `yaml:"buildNames" json:"buildNames" bson:"buildNames" validate:""`
PackageNames []string `yaml:"packageNames" json:"packageNames" bson:"packageNames" validate:""`
ArtifactNames []string `yaml:"artifactNames" json:"artifactNames" bson:"artifactNames" validate:""`
CustomStepConfs []CustomStepConfOutput `yaml:"customStepConfs" json:"customStepConfs" bson:"customStepConfs" validate:"dive"`
}
type ProjectPipeline ¶
type ProjectPipeline struct {
BranchName string `yaml:"branchName" json:"branchName" bson:"branchName" validate:"required"`
SourceBranch string `yaml:"sourceBranch" json:"sourceBranch" bson:"sourceBranch" validate:""`
IsDefault bool `yaml:"isDefault" json:"isDefault" bson:"isDefault" validate:""`
WebhookPushEvent bool `yaml:"webhookPushEvent" json:"webhookPushEvent" bson:"webhookPushEvent" validate:""`
Envs []string `yaml:"envs" json:"envs" bson:"envs" validate:""`
EnvProductions []string `yaml:"envProductions" json:"envProductions" bson:"envProductions" validate:""`
PipelineCrons []PipelineCron `yaml:"pipelineCrons" json:"pipelineCrons" bson:"pipelineCrons" validate:"dive"`
PipelineTriggers []PipelineTrigger `yaml:"pipelineTriggers" json:"pipelineTriggers" bson:"pipelineTriggers" validate:"dive"`
PipelineDef PipelineDef `yaml:"pipelineDef" json:"pipelineDef" bson:"pipelineDef" validate:""`
UpdatePipelineDef bool `yaml:"updatePipelineDef" json:"updatePipelineDef" bson:"updatePipelineDef" validate:""`
ErrMsgPipelineDef string `yaml:"errMsgPipelineDef" json:"errMsgPipelineDef" bson:"errMsgPipelineDef" validate:""`
}
type ProxyRepo ¶
type ProxyRepo struct {
Maven string `yaml:"maven" json:"maven" bson:"maven" validate:""`
Npm string `yaml:"npm" json:"npm" bson:"npm" validate:""`
Pip string `yaml:"pip" json:"pip" bson:"pip" validate:""`
Gradle string `yaml:"gradle" json:"gradle" bson:"gradle" validate:""`
Go string `yaml:"go" json:"go" bson:"go" validate:""`
Apt map[string]string `yaml:"apt" json:"apt" bson:"apt" validate:""`
}
type QuotaConfig ¶
type QuotaConfig struct {
DefaultQuota QuotaPod `yaml:"defaultQuota" json:"defaultQuota" bson:"defaultQuota" validate:"required"`
NamespaceQuota QuotaResource `yaml:"namespaceQuota" json:"namespaceQuota" bson:"namespaceQuota" validate:"required"`
}
type QuotaPod ¶
type QuotaPod struct {
MemoryRequest string `yaml:"memoryRequest" json:"memoryRequest" bson:"memoryRequest" validate:"required"`
CpuRequest string `yaml:"cpuRequest" json:"cpuRequest" bson:"cpuRequest" validate:"required"`
MemoryLimit string `yaml:"memoryLimit" json:"memoryLimit" bson:"memoryLimit" validate:"required"`
CpuLimit string `yaml:"cpuLimit" json:"cpuLimit" bson:"cpuLimit" validate:"required"`
ExtraRequest []NameValue `yaml:"extraRequest" json:"extraRequest" bson:"extraRequest" validate:"dive"`
ExtraLimit []NameValue `yaml:"extraLimit" json:"extraLimit" bson:"extraLimit" validate:"dive"`
}
type QuotaResource ¶
type QuotaResource struct {
MemoryRequest string `yaml:"memoryRequest" json:"memoryRequest" bson:"memoryRequest" validate:"required"`
CpuRequest string `yaml:"cpuRequest" json:"cpuRequest" bson:"cpuRequest" validate:"required"`
MemoryLimit string `yaml:"memoryLimit" json:"memoryLimit" bson:"memoryLimit" validate:"required"`
CpuLimit string `yaml:"cpuLimit" json:"cpuLimit" bson:"cpuLimit" validate:"required"`
PodsLimit int `yaml:"podsLimit" json:"podsLimit" bson:"podsLimit" validate:"required"`
ExtraQuotas []NameValue `yaml:"extraQuotas" json:"extraQuotas" bson:"extraQuotas" validate:"dive"`
}
type RepoNameList ¶
type RepoNameList struct {
ArtifactRepoNames []string `yaml:"artifactRepoNames" json:"artifactRepoNames" bson:"artifactRepoNames" validate:""`
GitRepoNames []string `yaml:"gitRepoNames" json:"gitRepoNames" bson:"gitRepoNames" validate:""`
ImageRepoNames []string `yaml:"imageRepoNames" json:"imageRepoNames" bson:"imageRepoNames" validate:""`
ScanCodeRepoNames []string `yaml:"scanCodeRepoNames" json:"scanCodeRepoNames" bson:"scanCodeRepoNames" validate:""`
}
type ResourceVersion ¶
type ResourceVersion struct {
IngressVersion string `yaml:"ingressVersion" json:"ingressVersion" bson:"ingressVersion" validate:""`
HpaVersion string `yaml:"hpaVersion" json:"hpaVersion" bson:"hpaVersion" validate:""`
IstioVersion string `yaml:"istioVersion" json:"istioVersion" bson:"istioVersion" validate:""`
}
type Run ¶
type Run struct {
ProjectName string `yaml:"projectName" json:"projectName" bson:"projectName" validate:""`
PipelineName string `yaml:"pipelineName" json:"pipelineName" bson:"pipelineName" validate:""`
RunName string `yaml:"runName" json:"runName" bson:"runName" validate:""`
BranchName string `yaml:"branchName" json:"branchName" bson:"branchName" validate:""`
PipelineArch string `yaml:"pipelineArch" json:"pipelineArch" bson:"pipelineArch" validate:""`
TriggerKind string `yaml:"triggerKind" json:"triggerKind" bson:"triggerKind" validate:""`
StartUser string `yaml:"startUser" json:"startUser" bson:"startUser" validate:""`
AbortUser string `yaml:"abortUser" json:"abortUser" bson:"abortUser" validate:""`
Status struct {
Result string `yaml:"result" json:"result" bson:"result" validate:""`
StartTime string `yaml:"startTime" json:"startTime" bson:"startTime" validate:""`
Duration string `yaml:"duration" json:"duration" bson:"duration" validate:""`
} `yaml:"status" json:"status" bson:"status" validate:""`
}
type RunInput ¶
type RunInput struct {
PhaseID string `yaml:"phaseID" json:"phaseID" bson:"phaseID" validate:""`
Title string `yaml:"title" json:"title" bson:"title" validate:""`
Desc string `yaml:"desc" json:"desc" bson:"desc" validate:""`
IsMultiple bool `yaml:"isMultiple" json:"isMultiple" bson:"isMultiple" validate:""`
IsApiOnly bool `yaml:"isApiOnly" json:"isApiOnly" bson:"isApiOnly" validate:""`
Options []RunInputOption `yaml:"options" json:"options" bson:"options" validate:"dive"`
}
type RunInputOption ¶
type ScanCodeRepo ¶ added in v1.5.2
type ScanCodeRepo struct {
Type string `yaml:"type" json:"type" bson:"type" validate:""`
Internal struct {
Image string `yaml:"image" json:"image" bson:"image" validate:"required_with=Image ImageDB Port"`
ImageDB string `yaml:"imageDB" json:"imageDB" bson:"imageDB" validate:"required_with=Image ImageDB Port"`
Port int `yaml:"port" json:"port" bson:"port" validate:"required_with=Image ImageDB Port"`
} `yaml:"internal" json:"internal" bson:"internal" validate:""`
External struct {
ViewUrl string `yaml:"viewUrl" json:"viewUrl" bson:"viewUrl" validate:"required_with=ViewUrl Url Token"`
Url string `yaml:"url" json:"url" bson:"url" validate:"required_with=ViewUrl Url Token"`
Token string `yaml:"token" json:"token" bson:"token" validate:"required_with=ViewUrl Url Token"`
} `yaml:"external" json:"external" bson:"external" validate:""`
}
type ScanCodeRepoConfig ¶
type ScanCodeRepoConfig struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
IsFromFile bool `yaml:"isFromFile" json:"isFromFile" bson:"isFromFile" validate:""`
Kind string `yaml:"kind" json:"kind" bson:"kind" validate:"required"`
RepoName string `yaml:"repoName" json:"repoName" bson:"repoName" validate:"required"`
ViewUrl string `yaml:"viewUrl" json:"viewUrl" bson:"viewUrl" validate:"required"`
Url string `yaml:"url" json:"url" bson:"url" validate:"required"`
Insecure bool `yaml:"insecure" json:"insecure" bson:"insecure" validate:""`
Token string `yaml:"token" json:"token" bson:"token" validate:"required"`
}
type ScanCodeStepDef ¶
type ScanCodeStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
IgnoreError bool `yaml:"ignoreError" json:"ignoreError" bson:"ignoreError" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
}
type ScanImageStepDef ¶
type ScanImageStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
IgnoreError bool `yaml:"ignoreError" json:"ignoreError" bson:"ignoreError" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
GateMedium int `yaml:"gateMedium" json:"gateMedium" bson:"gateMedium" validate:""`
GateHigh int `yaml:"gateHigh" json:"gateHigh" bson:"gateHigh" validate:""`
GateCritical int `yaml:"gateCritical" json:"gateCritical" bson:"gateCritical" validate:""`
}
type SecurityContext ¶ added in v1.6.2
type SyncImageStepDef ¶
type TestApiStepDef ¶
type TestApiStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
IgnoreError bool `yaml:"ignoreError" json:"ignoreError" bson:"ignoreError" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
PassingRate int `yaml:"passingRate" json:"passingRate" bson:"passingRate" validate:""`
IgnoreExecuteModuleNames []string `yaml:"ignoreExecuteModuleNames" json:"ignoreExecuteModuleNames" bson:"ignoreExecuteModuleNames" validate:""`
}
type TestPerformanceStepDef ¶
type TestPerformanceStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
IgnoreError bool `yaml:"ignoreError" json:"ignoreError" bson:"ignoreError" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
IgnoreExecuteModuleNames []string `yaml:"ignoreExecuteModuleNames" json:"ignoreExecuteModuleNames" bson:"ignoreExecuteModuleNames" validate:""`
}
type TestWebuiStepDef ¶
type TestWebuiStepDef struct {
Enable bool `yaml:"enable" json:"enable" bson:"enable" validate:""`
IgnoreError bool `yaml:"ignoreError" json:"ignoreError" bson:"ignoreError" validate:""`
Timeout int `yaml:"timeout" json:"timeout" bson:"timeout" validate:""`
Retry int `yaml:"retry" json:"retry" bson:"retry" validate:""`
PassingRate int `yaml:"passingRate" json:"passingRate" bson:"passingRate" validate:""`
IgnoreExecuteModuleNames []string `yaml:"ignoreExecuteModuleNames" json:"ignoreExecuteModuleNames" bson:"ignoreExecuteModuleNames" validate:""`
}
type User ¶
type User struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
TenantAdmins []string `yaml:"tenantAdmins" json:"tenantAdmins" bson:"tenantAdmins" validate:""`
Username string `yaml:"username" json:"username" bson:"username" validate:""`
Name string `yaml:"name" json:"name" bson:"name" validate:""`
Mail string `yaml:"mail" json:"mail" bson:"mail" validate:""`
Mobile string `yaml:"mobile" json:"mobile" bson:"mobile" validate:""`
IsAdmin bool `yaml:"isAdmin" json:"isAdmin" bson:"isAdmin" validate:""`
IsActive bool `yaml:"isActive" json:"isActive" bson:"isActive" validate:""`
}
type UserDetail ¶
type UserDetail struct {
TenantCode string `yaml:"tenantCode" json:"tenantCode" bson:"tenantCode" validate:""`
TenantAdmins []string `yaml:"tenantAdmins" json:"tenantAdmins" bson:"tenantAdmins" validate:""`
Username string `yaml:"username" json:"username" bson:"username" validate:""`
Name string `yaml:"name" json:"name" bson:"name" validate:""`
Mail string `yaml:"mail" json:"mail" bson:"mail" validate:""`
Mobile string `yaml:"mobile" json:"mobile" bson:"mobile" validate:""`
IsAdmin bool `yaml:"isAdmin" json:"isAdmin" bson:"isAdmin" validate:""`
IsActive bool `yaml:"isActive" json:"isActive" bson:"isActive" validate:""`
AvatarUrl string `yaml:"avatarUrl" json:"avatarUrl" bson:"avatarUrl" validate:""`
UserProjects []UserProject `yaml:"projects" json:"projects" bson:"projects" validate:"dive"`
CreateTime string `yaml:"createTime" json:"createTime" bson:"createTime" validate:""`
LastLogin string `yaml:"lastLogin" json:"lastLogin" bson:"lastLogin" validate:""`
}
type UserProject ¶
type WebhookNameVale ¶ added in v1.6.5
type WebhookNameVale NameValue
type WsAdminLog ¶
type WsAdminLog struct {
ID string `yaml:"ID" json:"ID" bson:"ID" validate:""`
LogType string `yaml:"logType" json:"logType" bson:"logType" validate:""`
Content string `yaml:"content" json:"content" bson:"content" validate:""`
StartTime string `yaml:"startTime" json:"startTime" bson:"startTime" validate:""`
EndTime string `yaml:"endTime" json:"endTime" bson:"endTime" validate:""`
Duration string `yaml:"duration" json:"duration" bson:"duration" validate:""`
}
type WsRunLog ¶
type WsRunLog struct {
ID string `yaml:"ID" json:"ID" bson:"ID" validate:""`
LogType string `yaml:"logType" json:"logType" bson:"logType" validate:""`
Content string `yaml:"content" json:"content" bson:"content" validate:""`
RunName string `yaml:"runName" json:"runName" bson:"runName" validate:""`
PhaseID string `yaml:"phaseID" json:"phaseID" bson:"phaseID" validate:""`
StageID string `yaml:"stageID" json:"stageID" bson:"stageID" validate:""`
StepID string `yaml:"stepID" json:"stepID" bson:"stepID" validate:""`
CreateTime string `yaml:"createTime" json:"createTime" bson:"createTime" validate:""`
}
Click to show internal directories.
Click to hide internal directories.