github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/harness/yaml/const.go (about) 1 // Copyright 2022 Harness, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package yaml 16 17 type WhenStatus string 18 19 const ( 20 WhenStatusNone WhenStatus = "None" 21 WhenStatusAll = "All" 22 WhenStatusFailure = "Failure" 23 WhenStatusSuccess = "Success" 24 ) 25 26 type StageType string 27 28 const ( 29 StageTypeNone StageType = "None" 30 StageTypeApproval = "Approval" 31 StageTypeCI = "CI" 32 StageTypeDeployment = "Deployment" 33 StageTypeFeatureFlag = "FeatureFlag" 34 ) 35 36 type InfraType string 37 38 const ( 39 InfraTypeNone InfraType = "None" 40 InfraTypeKubernetesDirect = "KubernetesDirect" 41 InfraTypeUseFromStage = "UseFromStage" 42 InfraTypeVM = "VM" 43 ) 44 45 type StepType string 46 47 const ( 48 StepTypeNone StepType = "None" 49 50 // Continuous Integration 51 StepTypeAction = "Action" 52 StepTypeArtifactoryUpdload = "ArtifactoryUpload" 53 StepTypeBarrier = "Barrier" 54 StepTypeBackground = "Background" 55 StepTypeBitrise = "Bitrise" 56 StepTypeBuildAndPushDockerRegistry = "BuildAndPushDockerRegistry" 57 StepTypeBuildAndPushECR = "BuildAndPushECR" 58 StepTypeBuildAndPushGCR = "BuildAndPushGCR" 59 StepTypeFlagConfiguration = "FlagConfiguration" 60 StepTypeGCSUpload = "GCSUpload" 61 StepTypeHarnessApproval = "HarnessApproval" 62 StepTypePlugin = "Plugin" 63 StepTypeRestoreCacheGCS = "RestoreCacheGCS" 64 StepTypeRestoreCacheS3 = "RestoreCacheS3" 65 StepTypeRun = "Run" 66 StepTypeRunTests = "RunTests" 67 StepTypeS3Upload = "S3Upload" 68 StepTypeSaveCacheGCS = "SaveCacheGCS" 69 StepTypeSaveCacheS3 = "SaveCacheS3" 70 71 // Feature Flags 72 StepTypeHTTP = "Http" 73 StepTypeJiraApproval = "JiraApproval" 74 StepTypeJiraCreate = "JiraCreate" 75 StepTypeJiraUpdate = "JiraUpdate" 76 StepTypeServiceNowApproval = "ServiceNowApproval" 77 StepTypeShellScript = "ShellScript" 78 79 // Approval 80 StepTypeVerify = "Verify" 81 ) 82 83 type Shell string 84 85 const ( 86 ShellNone Shell = "None" 87 ShellBash = "Bash" 88 ShellPosix = "Shell" 89 ShellPowershell = "Powershell" 90 ) 91 92 type ImagePullPolicy string 93 94 const ( 95 ImagePullNone ImagePullPolicy = "None" 96 ImagePullAlways = "Always" 97 ImagePullIfNotPresent = "IfNotPresent" 98 ImagePullNever = "Never" 99 )