Documentation ¶
Index ¶
- Constants
- Variables
- func CleanSkippedList() []string
- func CollieAPIAddress() string
- func CustomDNSNotSupported() bool
- func DefaultIngressClass() string
- func DefaultRecycleDay() int
- func DindImage() string
- func DockerHosts() []string
- func EnableGitCheck() bool
- func GithubKnownHost() string
- func GithubSSHKey() string
- func HubAgentImage() string
- func HubServerAddress() string
- func JenkinsImage() string
- func KodespaceVersion() string
- func KubeServerAddr() string
- func LocalDeliveryChartPathWithRevision(project, service string, revision int64) string
- func LocalServicePath(project, service string) string
- func LocalServicePathWithRevision(project, service string, revision int64) string
- func LogLevel() int
- func MongoDatabase() string
- func MongoURI() string
- func Namespace() string
- func NsqLookupAddrs() []string
- func ObjectStorageServicePath(project, service string) string
- func OldEnvSupported() bool
- func PackagerImage() string
- func PodName() string
- func PredatorImage() string
- func ProxyHTTPAddr() string
- func ProxyHTTPSAddr() string
- func ProxySocks5Addr() string
- func ReaperBinaryFile() string
- func ReaperImage() string
- func RegistryAccessKey() string
- func RegistryAddress() string
- func RegistryNamespace() string
- func RegistrySecretKey() string
- func ResourceServerImage() string
- func S3StorageAK() string
- func S3StorageBucket() string
- func S3StorageEndpoint() string
- func S3StoragePath() string
- func S3StorageProtocol() string
- func S3StorageSK() string
- func ServiceAccountNameForUser(userID string) string
- func ServiceNameWithRevision(serviceName string, revision int64) string
- func ServiceStartTimeout() int
- func SetProxy(HTTPSAddr, HTTPAddr, Socks5Addr string)
- func UseClassicBuild() bool
- func WebHookURL() string
- type ApproveOrReject
- type CommonEnvCfgType
- type DeploySourceType
- type DistributeType
- type HookEventType
- type JobType
- type NotifyType
- type PipelineType
- type ProductAuthType
- type ProductPermission
- type ScheduleType
- type SlackNotifyType
- type StageType
- type Status
- type StepType
- type TaskStatus
- type TaskType
Constants ¶
View Source
const ( ServiceNameRegexString = "^[a-zA-Z0-9-_]+$" ConfigNameRegexString = "^[a-zA-Z0-9-]+$" ImageRegexString = "^[a-zA-Z0-9.:\\/-]+$" CVMNameRegexString = "^[a-zA-Z_]\\w+$" EnvRecyclePolicyAlways = "always" EnvRecyclePolicyTaskStatus = "success" EnvRecyclePolicyNever = "never" // 定时器的所属job类型 WorkflowCronjob = "workflow" TestingCronjob = "test" )
View Source
const ( // ProductReadPermission ... ProductReadPermission = ProductPermission("read") // ProductWritePermission ... ProductWritePermission = ProductPermission("write") )
View Source
const ( // ProductAuthUser ... ProductAuthUser = ProductAuthType("user") // ProductAuthTeam ... ProductAuthTeam = ProductAuthType("team") )
View Source
const ( HookEventPush = HookEventType("push") HookEventPr = HookEventType("pull_request") HookEventTag = HookEventType("tag") HookEventUpdated = HookEventType("ref-updated") )
View Source
const ( KeyStateNew = "new" KeyStateUnused = "unused" KeyStatePresent = "present" )
View Source
const ( Day = 7 LatestDay = 10 Date = "2006-01-02" )
View Source
const ( RegistryTypeSWR = "swr" RegistryTypeAWS = "ecr" )
View Source
const ( ImageResourceType = "image" TarResourceType = "tar" )
View Source
const ( RoleBindingNameEdit = setting.ProductName + "-edit" RoleBindingNameView = setting.ProductName + "-view" )
View Source
const (
NameSpaceRegexString = "[^a-z0-9.-]"
)
Validation constants
Variables ¶
View Source
var ( // RenderTemplateAlias ... RenderTemplateAlias = regexp.MustCompile(`{{\s?\.\w+\s?}}`) ServiceNameAlias = regexp.MustCompile(`\$Service\$`) ProductNameAlias = regexp.MustCompile(`\$Product\$`) NameSpaceRegex = regexp.MustCompile(NameSpaceRegexString) )
View Source
var ( ServiceNameRegex = regexp.MustCompile(ServiceNameRegexString) ConfigNameRegex = regexp.MustCompile(ConfigNameRegexString) ImageRegex = regexp.MustCompile(ImageRegexString) CVMNameRegex = regexp.MustCompile(CVMNameRegexString) )
Functions ¶
func CleanSkippedList ¶
func CleanSkippedList() []string
CleanIgnoredList is a list which will be ignored during environment cleanup.
func CollieAPIAddress ¶
func CollieAPIAddress() string
func CustomDNSNotSupported ¶
func CustomDNSNotSupported() bool
func DefaultIngressClass ¶
func DefaultIngressClass() string
func DockerHosts ¶
func DockerHosts() []string
func EnableGitCheck ¶
func EnableGitCheck() bool
func GithubKnownHost ¶
func GithubKnownHost() string
func GithubSSHKey ¶
func GithubSSHKey() string
func HubAgentImage ¶
func HubAgentImage() string
func HubServerAddress ¶
func HubServerAddress() string
func JenkinsImage ¶
func JenkinsImage() string
func KodespaceVersion ¶
func KodespaceVersion() string
func KubeServerAddr ¶
func KubeServerAddr() string
func LocalDeliveryChartPathWithRevision ¶ added in v1.8.0
func LocalServicePath ¶ added in v1.4.0
func LocalServicePathWithRevision ¶ added in v1.7.1
func MongoDatabase ¶
func MongoDatabase() string
func NsqLookupAddrs ¶
func NsqLookupAddrs() []string
func ObjectStorageServicePath ¶ added in v1.4.0
func OldEnvSupported ¶
func OldEnvSupported() bool
func PackagerImage ¶ added in v1.8.0
func PackagerImage() string
func PredatorImage ¶
func PredatorImage() string
func ProxyHTTPAddr ¶
func ProxyHTTPAddr() string
func ProxyHTTPSAddr ¶
func ProxyHTTPSAddr() string
func ProxySocks5Addr ¶
func ProxySocks5Addr() string
func ReaperBinaryFile ¶
func ReaperBinaryFile() string
func ReaperImage ¶
func ReaperImage() string
func RegistryAccessKey ¶
func RegistryAccessKey() string
func RegistryAddress ¶
func RegistryAddress() string
func RegistryNamespace ¶
func RegistryNamespace() string
func RegistrySecretKey ¶
func RegistrySecretKey() string
func ResourceServerImage ¶ added in v1.8.0
func ResourceServerImage() string
func S3StorageAK ¶
func S3StorageAK() string
func S3StorageBucket ¶
func S3StorageBucket() string
func S3StorageEndpoint ¶
func S3StorageEndpoint() string
func S3StorageProtocol ¶
func S3StorageProtocol() string
func S3StorageSK ¶
func S3StorageSK() string
func ServiceAccountNameForUser ¶ added in v1.7.1
func ServiceNameWithRevision ¶ added in v1.7.1
func UseClassicBuild ¶
func UseClassicBuild() bool
func WebHookURL ¶ added in v1.2.0
func WebHookURL() string
Types ¶
type ApproveOrReject ¶ added in v1.9.9
type ApproveOrReject string
const ( Approve ApproveOrReject = "approve" Reject ApproveOrReject = "reject" )
type CommonEnvCfgType ¶ added in v1.9.9
type CommonEnvCfgType string
const ( CommonEnvCfgTypeIngress CommonEnvCfgType = "Ingress" CommonEnvCfgTypeConfigMap CommonEnvCfgType = "ConfigMap" CommonEnvCfgTypeSecret CommonEnvCfgType = "Secret" CommonEnvCfgTypePvc CommonEnvCfgType = "PVC" )
type DeploySourceType ¶ added in v1.9.9
type DeploySourceType string
const ( SourceRuntime DeploySourceType = "runtime" SourceFromJob DeploySourceType = "fromjob" )
type DistributeType ¶
type DistributeType string
const ( File DistributeType = "file" Image DistributeType = "image" Chart DistributeType = "chart" )
type HookEventType ¶
type HookEventType string
type NotifyType ¶
type NotifyType int
var ( Announcement NotifyType = 1 // 公告 PipelineStatus NotifyType = 2 // 提醒 Message NotifyType = 3 // 消息 )
type PipelineType ¶
type PipelineType string
Type pipeline type
const ( // SingleType 单服务工作流 SingleType PipelineType = "single" // WorkflowType 多服务工作流 WorkflowType PipelineType = "workflow" // FreestyleType 自由编排工作流 FreestyleType PipelineType = "freestyle" // TestType 测试 TestType PipelineType = "test" // ServiceType 服务 ServiceType PipelineType = "service" // WorkflowTypeV3 WorkflowTypeV3 PipelineType = "workflow_v3" // ArtifactPackageType package artifact ArtifactType PipelineType = "artifact" // ScanningType is the type for scanning ScanningType PipelineType = "scanning" )
type ScheduleType ¶
type ScheduleType string
ScheduleType 触发模式
const ( // TimingSchedule 定时循环 TimingSchedule ScheduleType = "timing" // GapSchedule 间隔循环 GapSchedule ScheduleType = "gap" )
type SlackNotifyType ¶
type SlackNotifyType string
const ( // SlackAll SlackNotifyType = "all" SlackOnChange SlackNotifyType = "onchange" SlackOnfailure SlackNotifyType = "onfailure" )
type Status ¶
type Status string
const ( StatusDisabled Status = "disabled" StatusCreated Status = "created" StatusRunning Status = "running" StatusPassed Status = "passed" StatusSkipped Status = "skipped" StatusFailed Status = "failed" StatusTimeout Status = "timeout" StatusCancelled Status = "cancelled" StatusWaiting Status = "waiting" StatusQueued Status = "queued" StatusBlocked Status = "blocked" QueueItemPending Status = "pending" StatusChanged Status = "changed" StatusNotRun Status = "notRun" StatusPrepare Status = "prepare" StatusReject Status = "reject" )
type StepType ¶ added in v1.9.9
type StepType string
const ( StepTools StepType = "tools" StepShell StepType = "shell" StepGit StepType = "git" StepDockerBuild StepType = "docker_build" StepDeploy StepType = "deploy" StepHelmDeploy StepType = "helm_deploy" StepImageDistribute StepType = "image_distribute" StepArchive StepType = "archive" StepArchiveDistribute StepType = "archive_distribute" StepJunitReport StepType = "junit_report" StepHtmlReport StepType = "html_report" )
type TaskStatus ¶
type TaskStatus string
const ( TaskStatusRunning TaskStatus = "running" TaskStatusCompleted TaskStatus = "completed" TaskStatusReady TaskStatus = "ready" TaskStatusFailed TaskStatus = "failed" TaskStatusTimeout TaskStatus = "timeout" TaskStatusCancelled TaskStatus = "cancelled" TaskStatusPass TaskStatus = "pass" )
type TaskType ¶
type TaskType string
const ( TaskPipeline TaskType = "pipeline" TaskBuild TaskType = "buildv2" TaskBuildV3 TaskType = "buildv3" TaskJenkinsBuild TaskType = "jenkins_build" TaskArtifact TaskType = "artifact" TaskArtifactDeploy TaskType = "artifact_deploy" TaskDeploy TaskType = "deploy" TaskTestingV2 TaskType = "testingv2" TaskScanning TaskType = "scanning" TaskDistributeToS3 TaskType = "distribute2kodo" TaskReleaseImage TaskType = "release_image" TaskJira TaskType = "jira" TaskDockerBuild TaskType = "docker_build" TaskSecurity TaskType = "security" TaskResetImage TaskType = "reset_image" TaskDistribute TaskType = "distribute" TaskTrigger TaskType = "trigger" TaskExtension TaskType = "extension" TaskArtifactPackage TaskType = "artifact_package" )
Click to show internal directories.
Click to hide internal directories.