{"modulePath":"github.com/gitlabhq/gitlab-runner","version":"v12.5.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package common\n\n## Constants\n\n```go\nconst (\n\tPullPolicyAlways       = \"always\"\n\tPullPolicyNever        = \"never\"\n\tPullPolicyIfNotPresent = \"if-not-present\"\n)\n```\n\n```go\nconst (\n\tTestAlpineImage       = \"alpine:3.7\"\n\tTestAlpineNoRootImage = \"registry.gitlab.com/gitlab-org/gitlab-runner/alpine-no-root:latest\"\n\tTestDockerDindImage   = \"docker:18-dind\"\n\tTestDockerGitImage    = \"docker:18-git\"\n)\n```\n\n```go\nconst AfterScriptTimeout = 5 * time.Minute\n```\n\n```go\nconst CheckInterval = 3 * time.Second\n```\n\n```go\nconst DefaultArtifactDownloadAttempts = 1\n```\n\n```go\nconst DefaultCacheRequestTimeout = 10\n```\n\n```go\nconst DefaultExecTimeout = 1800\n```\n\n```go\nconst DefaultGetSourcesAttempts = 1\n```\n\n```go\nconst DefaultMetricsServerPort = 9252\n```\n\n```go\nconst DefaultNetworkClientTimeout = 60 * time.Minute\n```\n\n```go\nconst DefaultOutputLimit = 4 * 1024 * 1024 // in bytes\n\n```\n\n```go\nconst DefaultRestoreCacheAttempts = 1\n```\n\n```go\nconst DefaultSessionTimeout = 30 * time.Minute\n```\n\n```go\nconst DefaultTimeout = 7200\n```\n\n```go\nconst DefaultTracePatchLimit = 1024 * 1024 // in bytes\n\n```\n\n```go\nconst DefaultWaitForServicesTimeout = 30\n```\n\n```go\nconst (\n\tFilesLFSFile1LFSsize = int64(2097152)\n)\n```\n\n```go\nconst ForceTraceSentInterval = 30 * time.Second\n```\n\n```go\nconst HealthCheckInterval = 3600\n```\n\n```go\nconst HealthyChecks = 3\n```\n\n```go\nconst KubernetesPollInterval = 3\n```\n\n```go\nconst KubernetesPollTimeout = 180\n```\n\n```go\nconst NotHealthyCheckInterval = 300\n```\n\n```go\nconst PreparationRetries = 3\n```\n\n```go\nconst ReloadConfigInterval = 3\n```\n\n```go\nconst ShutdownTimeout = 30\n```\n\n```go\nconst UpdateInterval = 3 * time.Second\n```\n\n```go\nconst UpdateRetryInterval = 3 * time.Second\n```\n\n```go\nconst WaitForBuildFinishTimeout = 5 * time.Minute\n```\n\n## Variables\n\n```go\nvar BRANCH = \"HEAD\"\n```\n\n```go\nvar BUILT = \"unknown\"\n```\n\n```go\nvar NAME = \"gitlab-runner\"\n```\n\n```go\nvar PreparationRetryInterval = 3 * time.Second\n```\n\n```go\nvar REVISION = \"HEAD\"\n```\n\n```go\nvar VERSION = \"development version\"\n```\n\n## Functions\n\n```go\nfunc GenerateShellScript(buildStage BuildStage, info ShellScriptInfo) (string, error)\n```\n\n```go\nfunc GetCommands() []cli.Command\n```\n\n```go\nfunc GetDefaultShell() string\n```\n\n```go\nfunc GetExecutors() []string\n```\n\n```go\nfunc GetShells() []string\n```\n\n```go\nfunc MakeBuildError(format string, args ...interface{}) error\n```\n\n```go\nfunc RegisterCommand(command cli.Command)\n```\n\n```go\nfunc RegisterCommand2(name, usage string, data Commander, flags ...cli.Flag)\n```\n\n```go\nfunc RegisterExecutor(executor string, provider ExecutorProvider)\n```\n\n```go\nfunc RegisterShell(shell Shell)\n```\n\n## Types\n\n```go\ntype AppVersionInfo struct {\n\tName         string `json:\"name\"`\n\tVersion      string `json:\"version\"`\n\tRevision     string `json:\"revision\"`\n\tBranch       string `json:\"branch\"`\n\tGOVersion    string `json:\"go_version\"`\n\tBuiltAt      string `json:\"built_at\"`\n\tOS           string `json:\"os\"`\n\tArchitecture string `json:\"architecture\"`\n}\n```\n\n```go\nvar AppVersion AppVersionInfo\n```\n\n```go\nfunc (v *AppVersionInfo) Extended() string\n```\n\n```go\nfunc (v *AppVersionInfo) Line() string\n```\n\n```go\nfunc (v *AppVersionInfo) NewMetricsCollector() *prometheus.GaugeVec\n```\nNewMetricsCollector returns a prometheus.Collector which represents current build information.\n\n```go\nfunc (v *AppVersionInfo) Printer(c *cli.Context)\n```\n\n```go\nfunc (v *AppVersionInfo) ShortLine() string\n```\n\n```go\nfunc (v *AppVersionInfo) UserAgent() string\n```\n\n```go\nfunc (v *AppVersionInfo) Variables() JobVariables\n```\n\n```go\ntype Artifact struct {\n\tName      string         `json:\"name\"`\n\tUntracked bool           `json:\"untracked\"`\n\tPaths     ArtifactPaths  `json:\"paths\"`\n\tWhen      ArtifactWhen   `json:\"when\"`\n\tType      string         `json:\"artifact_type\"`\n\tFormat    ArtifactFormat `json:\"artifact_format\"`\n\tExpireIn  string         `json:\"expire_in\"`\n}\n```\n\n```go\ntype ArtifactFormat string\n```\n\n```go\nconst (\n\tArtifactFormatDefault ArtifactFormat = \"\"\n\tArtifactFormatZip     ArtifactFormat = \"zip\"\n\tArtifactFormatGzip    ArtifactFormat = \"gzip\"\n\tArtifactFormatRaw     ArtifactFormat = \"raw\"\n)\n```\n\n```go\ntype ArtifactPaths []string\n```\n\n```go\ntype ArtifactWhen string\n```\n\n```go\nconst (\n\tArtifactWhenOnFailure ArtifactWhen = \"on_failure\"\n\tArtifactWhenOnSuccess ArtifactWhen = \"on_success\"\n\tArtifactWhenAlways    ArtifactWhen = \"always\"\n)\n```\n\n```go\nfunc (when ArtifactWhen) OnFailure() bool\n```\n\n```go\nfunc (when ArtifactWhen) OnSuccess() bool\n```\n\n```go\ntype Artifacts []Artifact\n```\n\n```go\ntype ArtifactsOptions struct {\n\tBaseName string\n\tExpireIn string\n\tFormat   ArtifactFormat\n\tType     string\n}\n```\n\n```go\ntype Build struct {\n\tJobResponse `yaml:\",inline\"`\n\n\tSystemInterrupt  chan os.Signal `json:\"-\" yaml:\"-\"`\n\tRootDir          string         `json:\"-\" yaml:\"-\"`\n\tBuildDir         string         `json:\"-\" yaml:\"-\"`\n\tCacheDir         string         `json:\"-\" yaml:\"-\"`\n\tHostname         string         `json:\"-\" yaml:\"-\"`\n\tRunner           *RunnerConfig  `json:\"runner\"`\n\tExecutorData     ExecutorData\n\tExecutorFeatures FeaturesInfo `json:\"-\" yaml:\"-\"`\n\n\t// Unique ID for all running builds on this runner\n\tRunnerID int `json:\"runner_id\"`\n\n\t// Unique ID for all running builds on this runner and this project\n\tProjectRunnerID int `json:\"project_runner_id\"`\n\n\tCurrentStage BuildStage\n\tCurrentState BuildRuntimeState\n\n\tSession *session.Session\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBuild(jobData JobResponse, runnerConfig *RunnerConfig, systemInterrupt chan os.Signal, executorData ExecutorData) (*Build, error)\n```\n\n```go\nfunc (b *Build) CurrentExecutorStage() ExecutorStage\n```\n\n```go\nfunc (b *Build) Duration() time.Duration\n```\n\n```go\nfunc (b *Build) FullProjectDir() string\n```\n\n```go\nfunc (b *Build) GetAllVariables() JobVariables\n```\n\n```go\nfunc (b *Build) GetBuildTimeout() time.Duration\n```\n\n```go\nfunc (b *Build) GetCITLSVariables() JobVariables\n```\n\n```go\nfunc (b *Build) GetCacheRequestTimeout() int\n```\n\n```go\nfunc (b *Build) GetDefaultFeatureFlagsVariables() JobVariables\n```\n\n```go\nfunc (b *Build) GetDefaultVariables() JobVariables\n```\n\n```go\nfunc (b *Build) GetDockerAuthConfig() string\n```\n\n```go\nfunc (b *Build) GetDownloadArtifactsAttempts() int\n```\n\n```go\nfunc (b *Build) GetGetSourcesAttempts() int\n```\n\n```go\nfunc (b *Build) GetGitCheckout() bool\n```\n\n```go\nfunc (b *Build) GetGitCleanFlags() []string\n```\n\n```go\nfunc (b *Build) GetGitStrategy() GitStrategy\n```\n\n```go\nfunc (b *Build) GetGitTLSVariables() JobVariables\n```\n\n```go\nfunc (b *Build) GetRemoteURL() string\n```\nGetRemoteURL checks if the default clone URL is overwritten by the runner configuration option: 'CloneURL'. If it is, we use that to create the clone URL.\n\n```go\nfunc (b *Build) GetRestoreCacheAttempts() int\n```\n\n```go\nfunc (b *Build) GetSharedEnvVariable() JobVariable\n```\n\n```go\nfunc (b *Build) GetSubmoduleStrategy() SubmoduleStrategy\n```\n\n```go\nfunc (b *Build) GetTLSVariables(caFile, certFile, keyFile string) JobVariables\n```\n\n```go\nfunc (b *Build) IsDebugTraceEnabled() bool\n```\n\n```go\nfunc (b *Build) IsFeatureFlagOn(name string) bool\n```\n\n```go\nfunc (b *Build) IsLFSSmudgeDisabled() bool\n```\n\n```go\nfunc (b *Build) IsSharedEnv() bool\n```\n\n```go\nfunc (b *Build) Log() *logrus.Entry\n```\n\n```go\nfunc (b *Build) ProjectSlug() (string, error)\n```\n\n```go\nfunc (b *Build) ProjectUniqueDir(sharedDir bool) string\n```\n\n```go\nfunc (b *Build) ProjectUniqueName() string\n```\n\n```go\nfunc (b *Build) Run(globalConfig *Config, trace JobTrace) (err error)\n```\n\n```go\nfunc (b *Build) StartBuild(rootDir, cacheDir string, customBuildDirEnabled, sharedDir bool) error\n```\n\n```go\nfunc (b *Build) String() string\n```\n\n```go\nfunc (b *Build) TmpProjectDir() string\n```\n\n```go\ntype BuildError struct {\n\tInner         error\n\tFailureReason JobFailureReason\n}\n```\n\n```go\nfunc (b *BuildError) Error() string\n```\n\n```go\ntype BuildLogger struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBuildLogger(log JobTrace, entry *logrus.Entry) BuildLogger\n```\n\n```go\nfunc (e *BuildLogger) Debugln(args ...interface{})\n```\n\n```go\nfunc (e *BuildLogger) Errorln(args ...interface{})\n```\n\n```go\nfunc (e *BuildLogger) Infoln(args ...interface{})\n```\n\n```go\nfunc (e *BuildLogger) Println(args ...interface{})\n```\n\n```go\nfunc (e *BuildLogger) SendRawLog(args ...interface{})\n```\n\n```go\nfunc (e *BuildLogger) SoftErrorln(args ...interface{})\n```\n\n```go\nfunc (e *BuildLogger) Warningln(args ...interface{})\n```\n\n```go\nfunc (e *BuildLogger) WithFields(fields logrus.Fields) BuildLogger\n```\n\n```go\nfunc (e *BuildLogger) WriterLevel(level logrus.Level) *io.PipeWriter\n```\n\n```go\ntype BuildRuntimeState string\n```\n\n```go\nconst (\n\tBuildRunStatePending      BuildRuntimeState = \"pending\"\n\tBuildRunRuntimeRunning    BuildRuntimeState = \"running\"\n\tBuildRunRuntimeFinished   BuildRuntimeState = \"finished\"\n\tBuildRunRuntimeCanceled   BuildRuntimeState = \"canceled\"\n\tBuildRunRuntimeTerminated BuildRuntimeState = \"terminated\"\n\tBuildRunRuntimeTimedout   BuildRuntimeState = \"timedout\"\n)\n```\n\n```go\ntype BuildStage string\n```\n\n```go\nconst (\n\tBuildStagePrepareExecutor          BuildStage = \"prepare_executor\"\n\tBuildStagePrepare                  BuildStage = \"prepare_script\"\n\tBuildStageGetSources               BuildStage = \"get_sources\"\n\tBuildStageRestoreCache             BuildStage = \"restore_cache\"\n\tBuildStageDownloadArtifacts        BuildStage = \"download_artifacts\"\n\tBuildStageUserScript               BuildStage = \"build_script\"\n\tBuildStageAfterScript              BuildStage = \"after_script\"\n\tBuildStageArchiveCache             BuildStage = \"archive_cache\"\n\tBuildStageUploadOnSuccessArtifacts BuildStage = \"upload_artifacts_on_success\"\n\tBuildStageUploadOnFailureArtifacts BuildStage = \"upload_artifacts_on_failure\"\n)\n```\n\n```go\ntype Cache struct {\n\tKey       string        `json:\"key\"`\n\tUntracked bool          `json:\"untracked\"`\n\tPolicy    CachePolicy   `json:\"policy\"`\n\tPaths     ArtifactPaths `json:\"paths\"`\n}\n```\n\n```go\nfunc (c Cache) CheckPolicy(wanted CachePolicy) (bool, error)\n```\n\n```go\ntype CacheConfig struct {\n\tType   string `toml:\"Type,omitempty\" long:\"type\" env:\"CACHE_TYPE\" description:\"Select caching method\"`\n\tPath   string `toml:\"Path,omitempty\" long:\"path\" env:\"CACHE_PATH\" description:\"Name of the path to prepend to the cache URL\"`\n\tShared bool   `toml:\"Shared,omitempty\" long:\"shared\" env:\"CACHE_SHARED\" description:\"Enable cache sharing between runners.\"`\n\n\tS3  *CacheS3Config  `toml:\"s3,omitempty\" json:\"s3\" namespace:\"s3\"`\n\tGCS *CacheGCSConfig `toml:\"gcs,omitempty\" json:\"gcs\" namespace:\"gcs\"`\n}\n```\n\n```go\nfunc (c *CacheConfig) GetPath() string\n```\n\n```go\nfunc (c *CacheConfig) GetShared() bool\n```\n\n```go\ntype CacheGCSConfig struct {\n\tCacheGCSCredentials\n\tCredentialsFile string `toml:\"CredentialsFile,omitempty\" long:\"credentials-file\" env:\"GOOGLE_APPLICATION_CREDENTIALS\" description:\"File with GCP credentials, containing AccessID and PrivateKey\"`\n\tBucketName      string `toml:\"BucketName,omitempty\" long:\"bucket-name\" env:\"CACHE_GCS_BUCKET_NAME\" description:\"Name of the bucket where cache will be stored\"`\n}\n```\n\n```go\ntype CacheGCSCredentials struct {\n\tAccessID   string `toml:\"AccessID,omitempty\" long:\"access-id\" env:\"CACHE_GCS_ACCESS_ID\" description:\"ID of GCP Service Account used to access the storage\"`\n\tPrivateKey string `toml:\"PrivateKey,omitempty\" long:\"private-key\" env:\"CACHE_GCS_PRIVATE_KEY\" description:\"Private key used to sign GCS requests\"`\n}\n```\n\n```go\ntype CachePolicy string\n```\n\n```go\nconst (\n\tCachePolicyUndefined CachePolicy = \"\"\n\tCachePolicyPullPush  CachePolicy = \"pull-push\"\n\tCachePolicyPull      CachePolicy = \"pull\"\n\tCachePolicyPush      CachePolicy = \"push\"\n)\n```\n\n```go\ntype CacheS3Config struct {\n\tServerAddress  string `toml:\"ServerAddress,omitempty\" long:\"server-address\" env:\"CACHE_S3_SERVER_ADDRESS\" description:\"A host:port to the used S3-compatible server\"`\n\tAccessKey      string `toml:\"AccessKey,omitempty\" long:\"access-key\" env:\"CACHE_S3_ACCESS_KEY\" description:\"S3 Access Key\"`\n\tSecretKey      string `toml:\"SecretKey,omitempty\" long:\"secret-key\" env:\"CACHE_S3_SECRET_KEY\" description:\"S3 Secret Key\"`\n\tBucketName     string `toml:\"BucketName,omitempty\" long:\"bucket-name\" env:\"CACHE_S3_BUCKET_NAME\" description:\"Name of the bucket where cache will be stored\"`\n\tBucketLocation string `toml:\"BucketLocation,omitempty\" long:\"bucket-location\" env:\"CACHE_S3_BUCKET_LOCATION\" description:\"Name of S3 region\"`\n\tInsecure       bool   `toml:\"Insecure,omitempty\" long:\"insecure\" env:\"CACHE_S3_INSECURE\" description:\"Use insecure mode (without https)\"`\n}\n```\n\n```go\nfunc (c *CacheS3Config) ShouldUseIAMCredentials() bool\n```\n\n```go\ntype Caches []Cache\n```\n\n```go\ntype Commander interface {\n\tExecute(c *cli.Context)\n}\n```\n\n```go\ntype Config struct {\n\tListenAddress string        `toml:\"listen_address,omitempty\" json:\"listen_address\"`\n\tSessionServer SessionServer `toml:\"session_server,omitempty\" json:\"session_server\"`\n\n\tConcurrent    int             `toml:\"concurrent\" json:\"concurrent\"`\n\tCheckInterval int             `toml:\"check_interval\" json:\"check_interval\" description:\"Define active checking interval of jobs\"`\n\tLogLevel      *string         `toml:\"log_level\" json:\"log_level\" description:\"Define log level (one of: panic, fatal, error, warning, info, debug)\"`\n\tLogFormat     *string         `toml:\"log_format\" json:\"log_format\" description:\"Define log format (one of: runner, text, json)\"`\n\tUser          string          `toml:\"user,omitempty\" json:\"user\"`\n\tRunners       []*RunnerConfig `toml:\"runners\" json:\"runners\"`\n\tSentryDSN     *string         `toml:\"sentry_dsn\"`\n\tModTime       time.Time       `toml:\"-\"`\n\tLoaded        bool            `toml:\"-\"`\n}\n```\n\n```go\nfunc NewConfig() *Config\n```\n\n```go\nfunc (c *Config) GetCheckInterval() time.Duration\n```\n\n```go\nfunc (c *Config) LoadConfig(configFile string) error\n```\n\n```go\nfunc (c *Config) SaveConfig(configFile string) error\n```\n\n```go\nfunc (c *Config) StatConfig(configFile string) error\n```\n\n```go\ntype Credentials struct {\n\tType     string `json:\"type\"`\n\tURL      string `json:\"url\"`\n\tUsername string `json:\"username\"`\n\tPassword string `json:\"password\"`\n}\n```\n\n```go\ntype CustomBuildDir struct {\n\tEnabled bool `toml:\"enabled,omitempty\" json:\"enabled\" long:\"enabled\" env:\"CUSTOM_BUILD_DIR_ENABLED\" description:\"Enable job specific build directories\"`\n}\n```\n\n```go\ntype CustomConfig struct {\n\tConfigExec        string   `toml:\"config_exec,omitempty\" json:\"config_exec\" long:\"config-exec\" env:\"CUSTOM_CONFIG_EXEC\" description:\"Executable that allows to inject configuration values to the executor\"`\n\tConfigArgs        []string `toml:\"config_args,omitempty\" json:\"config_args\" long:\"config-args\" description:\"Arguments for the config executable\"`\n\tConfigExecTimeout *int     `toml:\"config_exec_timeout,omitempty\" json:\"config_exec_timeout\" long:\"config-exec-timeout\" env:\"CUSTOM_CONFIG_EXEC_TIMEOUT\" description:\"Timeout for the config executable (in seconds)\"`\n\n\tPrepareExec        string   `toml:\"prepare_exec,omitempty\" json:\"prepare_exec\" long:\"prepare-exec\" env:\"CUSTOM_PREPARE_EXEC\" description:\"Executable that prepares executor\"`\n\tPrepareArgs        []string `toml:\"prepare_args,omitempty\" json:\"prepare_args\" long:\"prepare-args\" description:\"Arguments for the prepare executable\"`\n\tPrepareExecTimeout *int     `toml:\"prepare_exec_timeout,omitempty\" json:\"prepare_exec_timeout\" long:\"prepare-exec-timeout\" env:\"CUSTOM_PREPARE_EXEC_TIMEOUT\" description:\"Timeout for the prepare executable (in seconds)\"`\n\n\tRunExec string   `toml:\"run_exec\" json:\"run_exec\" long:\"run-exec\" env:\"CUSTOM_RUN_EXEC\" description:\"Executable that runs the job script in executor\"`\n\tRunArgs []string `toml:\"run_args,omitempty\" json:\"run_args\" long:\"run-args\" description:\"Arguments for the run executable\"`\n\n\tCleanupExec        string   `toml:\"cleanup_exec,omitempty\" json:\"cleanup_exec\" long:\"cleanup-exec\" env:\"CUSTOM_CLEANUP_EXEC\" description:\"Executable that cleanups after executor run\"`\n\tCleanupArgs        []string `toml:\"cleanup_args,omitempty\" json:\"cleanup_args\" long:\"cleanup-args\" description:\"Arguments for the cleanup executable\"`\n\tCleanupExecTimeout *int     `toml:\"cleanup_exec_timeout,omitempty\" json:\"cleanup_exec_timeout\" long:\"cleanup-exec-timeout\" env:\"CUSTOM_CLEANUP_EXEC_TIMEOUT\" description:\"Timeout for the cleanup executable (in seconds)\"`\n\n\tGracefulKillTimeout *int `toml:\"graceful_kill_timeout,omitempty\" json:\"graceful_kill_timeout\" long:\"graceful-kill-timeout\" env:\"CUSTOM_GRACEFUL_KILL_TIMEOUT\" description:\"Graceful timeout for scripts execution after SIGTERM is sent to the process (in seconds). This limits the time given for scripts to perform the cleanup before exiting\"`\n\tForceKillTimeout    *int `toml:\"force_kill_timeout,omitempty\" json:\"force_kill_timeout\" long:\"force-kill-timeout\" env:\"CUSTOM_FORCE_KILL_TIMEOUT\" description:\"Force timeout for scripts execution (in seconds). Counted from the force kill call; if process will be not terminated, Runner will abandon process termination and log an error\"`\n}\n```\n\n```go\ntype Dependencies []Dependency\n```\n\n```go\ntype Dependency struct {\n\tID            int                     `json:\"id\"`\n\tToken         string                  `json:\"token\"`\n\tName          string                  `json:\"name\"`\n\tArtifactsFile DependencyArtifactsFile `json:\"artifacts_file\"`\n}\n```\n\n```go\ntype DependencyArtifactsFile struct {\n\tFilename string `json:\"filename\"`\n\tSize     int64  `json:\"size\"`\n}\n```\n\n```go\ntype DockerConfig struct {\n\tdocker_helpers.DockerCredentials\n\tHostname                   string            `toml:\"hostname,omitempty\" json:\"hostname\" long:\"hostname\" env:\"DOCKER_HOSTNAME\" description:\"Custom container hostname\"`\n\tImage                      string            `toml:\"image\" json:\"image\" long:\"image\" env:\"DOCKER_IMAGE\" description:\"Docker image to be used\"`\n\tRuntime                    string            `toml:\"runtime,omitempty\" json:\"runtime\" long:\"runtime\" env:\"DOCKER_RUNTIME\" description:\"Docker runtime to be used\"`\n\tMemory                     string            `toml:\"memory,omitempty\" json:\"memory\" long:\"memory\" env:\"DOCKER_MEMORY\" description:\"Memory limit (format: \u003cnumber\u003e[\u003cunit\u003e]). Unit can be one of b, k, m, or g. Minimum is 4M.\"`\n\tMemorySwap                 string            `toml:\"memory_swap,omitempty\" json:\"memory_swap\" long:\"memory-swap\" env:\"DOCKER_MEMORY_SWAP\" description:\"Total memory limit (memory + swap, format: \u003cnumber\u003e[\u003cunit\u003e]). Unit can be one of b, k, m, or g.\"`\n\tMemoryReservation          string            `toml:\"memory_reservation,omitempty\" json:\"memory_reservation\" long:\"memory-reservation\" env:\"DOCKER_MEMORY_RESERVATION\" description:\"Memory soft limit (format: \u003cnumber\u003e[\u003cunit\u003e]). Unit can be one of b, k, m, or g.\"`\n\tCPUSetCPUs                 string            `toml:\"cpuset_cpus,omitempty\" json:\"cpuset_cpus\" long:\"cpuset-cpus\" env:\"DOCKER_CPUSET_CPUS\" description:\"String value containing the cgroups CpusetCpus to use\"`\n\tCPUS                       string            `toml:\"cpus,omitempty\" json:\"cpus\" long:\"cpus\" env:\"DOCKER_CPUS\" description:\"Number of CPUs\"`\n\tDNS                        []string          `toml:\"dns,omitempty\" json:\"dns\" long:\"dns\" env:\"DOCKER_DNS\" description:\"A list of DNS servers for the container to use\"`\n\tDNSSearch                  []string          `toml:\"dns_search,omitempty\" json:\"dns_search\" long:\"dns-search\" env:\"DOCKER_DNS_SEARCH\" description:\"A list of DNS search domains\"`\n\tPrivileged                 bool              `toml:\"privileged,omitzero\" json:\"privileged\" long:\"privileged\" env:\"DOCKER_PRIVILEGED\" description:\"Give extended privileges to container\"`\n\tDisableEntrypointOverwrite bool              `toml:\"disable_entrypoint_overwrite,omitzero\" json:\"disable_entrypoint_overwrite\" long:\"disable-entrypoint-overwrite\" env:\"DOCKER_DISABLE_ENTRYPOINT_OVERWRITE\" description:\"Disable the possibility for a container to overwrite the default image entrypoint\"`\n\tUsernsMode                 string            `toml:\"userns_mode,omitempty\" json:\"userns_mode\" long:\"userns\" env:\"DOCKER_USERNS_MODE\" description:\"User namespace to use\"`\n\tCapAdd                     []string          `toml:\"cap_add\" json:\"cap_add\" long:\"cap-add\" env:\"DOCKER_CAP_ADD\" description:\"Add Linux capabilities\"`\n\tCapDrop                    []string          `toml:\"cap_drop\" json:\"cap_drop\" long:\"cap-drop\" env:\"DOCKER_CAP_DROP\" description:\"Drop Linux capabilities\"`\n\tOomKillDisable             bool              `toml:\"oom_kill_disable,omitzero\" json:\"oom_kill_disable\" long:\"oom-kill-disable\" env:\"DOCKER_OOM_KILL_DISABLE\" description:\"Do not kill processes in a container if an out-of-memory (OOM) error occurs\"`\n\tSecurityOpt                []string          `toml:\"security_opt\" json:\"security_opt\" long:\"security-opt\" env:\"DOCKER_SECURITY_OPT\" description:\"Security Options\"`\n\tDevices                    []string          `toml:\"devices\" json:\"devices\" long:\"devices\" env:\"DOCKER_DEVICES\" description:\"Add a host device to the container\"`\n\tDisableCache               bool              `toml:\"disable_cache,omitzero\" json:\"disable_cache\" long:\"disable-cache\" env:\"DOCKER_DISABLE_CACHE\" description:\"Disable all container caching\"`\n\tVolumes                    []string          `toml:\"volumes,omitempty\" json:\"volumes\" long:\"volumes\" env:\"DOCKER_VOLUMES\" description:\"Bind-mount a volume and create it if it doesn't exist prior to mounting. Can be specified multiple times once per mountpoint, e.g. --docker-volumes 'test0:/test0' --docker-volumes 'test1:/test1'\"`\n\tVolumeDriver               string            `toml:\"volume_driver,omitempty\" json:\"volume_driver\" long:\"volume-driver\" env:\"DOCKER_VOLUME_DRIVER\" description:\"Volume driver to be used\"`\n\tCacheDir                   string            `toml:\"cache_dir,omitempty\" json:\"cache_dir\" long:\"cache-dir\" env:\"DOCKER_CACHE_DIR\" description:\"Directory where to store caches\"`\n\tExtraHosts                 []string          `toml:\"extra_hosts,omitempty\" json:\"extra_hosts\" long:\"extra-hosts\" env:\"DOCKER_EXTRA_HOSTS\" description:\"Add a custom host-to-IP mapping\"`\n\tVolumesFrom                []string          `toml:\"volumes_from,omitempty\" json:\"volumes_from\" long:\"volumes-from\" env:\"DOCKER_VOLUMES_FROM\" description:\"A list of volumes to inherit from another container\"`\n\tNetworkMode                string            `toml:\"network_mode,omitempty\" json:\"network_mode\" long:\"network-mode\" env:\"DOCKER_NETWORK_MODE\" description:\"Add container to a custom network\"`\n\tLinks                      []string          `toml:\"links,omitempty\" json:\"links\" long:\"links\" env:\"DOCKER_LINKS\" description:\"Add link to another container\"`\n\tServices                   []string          `toml:\"services,omitempty\" json:\"services\" long:\"services\" env:\"DOCKER_SERVICES\" description:\"Add service that is started with container\"`\n\tWaitForServicesTimeout     int               `toml:\"wait_for_services_timeout,omitzero\" json:\"wait_for_services_timeout\" long:\"wait-for-services-timeout\" env:\"DOCKER_WAIT_FOR_SERVICES_TIMEOUT\" description:\"How long to wait for service startup\"`\n\tAllowedImages              []string          `toml:\"allowed_images,omitempty\" json:\"allowed_images\" long:\"allowed-images\" env:\"DOCKER_ALLOWED_IMAGES\" description:\"Whitelist allowed images\"`\n\tAllowedServices            []string          `toml:\"allowed_services,omitempty\" json:\"allowed_services\" long:\"allowed-services\" env:\"DOCKER_ALLOWED_SERVICES\" description:\"Whitelist allowed services\"`\n\tPullPolicy                 DockerPullPolicy  `toml:\"pull_policy,omitempty\" json:\"pull_policy\" long:\"pull-policy\" env:\"DOCKER_PULL_POLICY\" description:\"Image pull policy: never, if-not-present, always\"`\n\tShmSize                    int64             `toml:\"shm_size,omitempty\" json:\"shm_size\" long:\"shm-size\" env:\"DOCKER_SHM_SIZE\" description:\"Shared memory size for docker images (in bytes)\"`\n\tTmpfs                      map[string]string `toml:\"tmpfs,omitempty\" json:\"tmpfs\" long:\"tmpfs\" env:\"DOCKER_TMPFS\" description:\"A toml table/json object with the format key=values. When set this will mount the specified path in the key as a tmpfs volume in the main container, using the options specified as key. For the supported options, see the documentation for the unix 'mount' command\"`\n\tServicesTmpfs              map[string]string `toml:\"services_tmpfs,omitempty\" json:\"services_tmpfs\" long:\"services-tmpfs\" env:\"DOCKER_SERVICES_TMPFS\" description:\"A toml table/json object with the format key=values. When set this will mount the specified path in the key as a tmpfs volume in all the service containers, using the options specified as key. For the supported options, see the documentation for the unix 'mount' command\"`\n\tSysCtls                    DockerSysCtls     `toml:\"sysctls,omitempty\" json:\"sysctls\" long:\"sysctls\" env:\"DOCKER_SYSCTLS\" description:\"Sysctl options, a toml table/json object of key=value. Value is expected to be a string.\"`\n\tHelperImage                string            `toml:\"helper_image,omitempty\" json:\"helper_image\" long:\"helper-image\" env:\"DOCKER_HELPER_IMAGE\" description:\"[ADVANCED] Override the default helper image used to clone repos and upload artifacts\"`\n}\n```\n\n```go\nfunc (c *DockerConfig) GetMemory() int64\n```\n\n```go\nfunc (c *DockerConfig) GetMemoryReservation() int64\n```\n\n```go\nfunc (c *DockerConfig) GetMemorySwap() int64\n```\n\n```go\nfunc (c *DockerConfig) GetNanoCPUs() (int64, error)\n```\n\n```go\nfunc (c *DockerConfig) GetOomKillDisable() *bool\n```\n\n```go\ntype DockerMachine struct {\n\tIdleCount      int      `long:\"idle-nodes\" env:\"MACHINE_IDLE_COUNT\" description:\"Maximum idle machines\"`\n\tIdleTime       int      `toml:\"IdleTime,omitzero\" long:\"idle-time\" env:\"MACHINE_IDLE_TIME\" description:\"Minimum time after node can be destroyed\"`\n\tMaxBuilds      int      `toml:\"MaxBuilds,omitzero\" long:\"max-builds\" env:\"MACHINE_MAX_BUILDS\" description:\"Maximum number of builds processed by machine\"`\n\tMachineDriver  string   `long:\"machine-driver\" env:\"MACHINE_DRIVER\" description:\"The driver to use when creating machine\"`\n\tMachineName    string   `long:\"machine-name\" env:\"MACHINE_NAME\" description:\"The template for machine name (needs to include %s)\"`\n\tMachineOptions []string `long:\"machine-options\" env:\"MACHINE_OPTIONS\" description:\"Additional machine creation options\"`\n\n\tOffPeakPeriods   []string `long:\"off-peak-periods\" env:\"MACHINE_OFF_PEAK_PERIODS\" description:\"Time periods when the scheduler is in the OffPeak mode\"`\n\tOffPeakTimezone  string   `long:\"off-peak-timezone\" env:\"MACHINE_OFF_PEAK_TIMEZONE\" description:\"Timezone for the OffPeak periods (defaults to Local)\"`\n\tOffPeakIdleCount int      `long:\"off-peak-idle-count\" env:\"MACHINE_OFF_PEAK_IDLE_COUNT\" description:\"Maximum idle machines when the scheduler is in the OffPeak mode\"`\n\tOffPeakIdleTime  int      `long:\"off-peak-idle-time\" env:\"MACHINE_OFF_PEAK_IDLE_TIME\" description:\"Minimum time after machine can be destroyed when the scheduler is in the OffPeak mode\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *DockerMachine) CompileOffPeakPeriods() (err error)\n```\n\n```go\nfunc (c *DockerMachine) GetIdleCount() int\n```\n\n```go\nfunc (c *DockerMachine) GetIdleTime() int\n```\n\n```go\ntype DockerPullPolicy string\n```\n\n```go\nfunc (p DockerPullPolicy) Get() (DockerPullPolicy, error)\n```\nGet returns one of the predefined values or returns an error if the value can't match the predefined\n\n```go\ntype DockerSysCtls map[string]string\n```\n\n```go\ntype DownloadState int\n```\n\n```go\nconst (\n\tDownloadSucceeded DownloadState = iota\n\tDownloadForbidden\n\tDownloadFailed\n\tDownloadNotFound\n)\n```\n\n```go\ntype Executor interface {\n\tShell() *ShellScriptInfo\n\tPrepare(options ExecutorPrepareOptions) error\n\tRun(cmd ExecutorCommand) error\n\tFinish(err error)\n\tCleanup()\n\tGetCurrentStage() ExecutorStage\n\tSetCurrentStage(stage ExecutorStage)\n}\n```\n\n```go\nfunc NewExecutor(executor string) Executor\n```\n\n```go\ntype ExecutorCommand struct {\n\tScript     string\n\tStage      BuildStage\n\tPredefined bool\n\tContext    context.Context\n}\n```\n\n```go\ntype ExecutorData interface{}\n```\n\n```go\ntype ExecutorPrepareOptions struct {\n\tConfig  *RunnerConfig\n\tBuild   *Build\n\tTrace   JobTrace\n\tUser    string\n\tContext context.Context\n}\n```\n\n```go\ntype ExecutorProvider interface {\n\tCanCreate() bool\n\tCreate() Executor\n\tAcquire(config *RunnerConfig) (ExecutorData, error)\n\tRelease(config *RunnerConfig, data ExecutorData)\n\tGetFeatures(features *FeaturesInfo) error\n\tGetDefaultShell() string\n}\n```\n\n```go\nfunc GetExecutor(executor string) ExecutorProvider\n```\n\n```go\nfunc GetExecutorProviders() (providers []ExecutorProvider)\n```\n\n```go\ntype ExecutorStage string\n```\n\n```go\nconst (\n\tExecutorStageCreated ExecutorStage = \"created\"\n\tExecutorStagePrepare ExecutorStage = \"prepare\"\n\tExecutorStageFinish  ExecutorStage = \"finish\"\n\tExecutorStageCleanup ExecutorStage = \"cleanup\"\n)\n```\n\n```go\ntype FailuresCollector interface {\n\tRecordFailure(reason JobFailureReason, runnerDescription string)\n}\n```\n\n```go\ntype FeaturesInfo struct {\n\tVariables               bool `json:\"variables\"`\n\tImage                   bool `json:\"image\"`\n\tServices                bool `json:\"services\"`\n\tArtifacts               bool `json:\"artifacts\"`\n\tCache                   bool `json:\"cache\"`\n\tShared                  bool `json:\"shared\"`\n\tUploadMultipleArtifacts bool `json:\"upload_multiple_artifacts\"`\n\tUploadRawArtifacts      bool `json:\"upload_raw_artifacts\"`\n\tSession                 bool `json:\"session\"`\n\tTerminal                bool `json:\"terminal\"`\n\tRefspecs                bool `json:\"refspecs\"`\n\tMasking                 bool `json:\"masking\"`\n\tProxy                   bool `json:\"proxy\"`\n}\n```\n\n```go\ntype GitInfo struct {\n\tRepoURL   string         `json:\"repo_url\"`\n\tRef       string         `json:\"ref\"`\n\tSha       string         `json:\"sha\"`\n\tBeforeSha string         `json:\"before_sha\"`\n\tRefType   GitInfoRefType `json:\"ref_type\"`\n\tRefspecs  []string       `json:\"refspecs\"`\n\tDepth     int            `json:\"depth\"`\n}\n```\n\n```go\nfunc GetGitInfo(url string) GitInfo\n```\n\n```go\nfunc GetLFSGitInfo(url string) GitInfo\n```\n\n```go\nfunc GetSubmoduleLFSGitInfo(url string) GitInfo\n```\n\n```go\ntype GitInfoRefType string\n```\n\n```go\nconst (\n\tRefTypeBranch GitInfoRefType = \"branch\"\n\tRefTypeTag    GitInfoRefType = \"tag\"\n)\n```\n\n```go\ntype GitStrategy int\n```\n\n```go\nconst (\n\tGitClone GitStrategy = iota\n\tGitFetch\n\tGitNone\n)\n```\n\n```go\ntype GitlabFeatures struct {\n\tTraceSections bool `json:\"trace_sections\"`\n}\n```\n\n```go\ntype Image struct {\n\tName       string   `json:\"name\"`\n\tAlias      string   `json:\"alias,omitempty\"`\n\tCommand    []string `json:\"command,omitempty\"`\n\tEntrypoint []string `json:\"entrypoint,omitempty\"`\n\tPorts      []Port   `json:\"ports,omitempty\"`\n}\n```\n\n```go\ntype JobCredentials struct {\n\tID          int    `long:\"id\" env:\"CI_JOB_ID\" description:\"The build ID to upload artifacts for\"`\n\tToken       string `long:\"token\" env:\"CI_JOB_TOKEN\" required:\"true\" description:\"Build token\"`\n\tURL         string `long:\"url\" env:\"CI_SERVER_URL\" required:\"true\" description:\"GitLab CI URL\"`\n\tTLSCAFile   string `long:\"tls-ca-file\" env:\"CI_SERVER_TLS_CA_FILE\" description:\"File containing the certificates to verify the peer when using HTTPS\"`\n\tTLSCertFile string `long:\"tls-cert-file\" env:\"CI_SERVER_TLS_CERT_FILE\" description:\"File containing certificate for TLS client auth with runner when using HTTPS\"`\n\tTLSKeyFile  string `long:\"tls-key-file\" env:\"CI_SERVER_TLS_KEY_FILE\" description:\"File containing private key for TLS client auth with runner when using HTTPS\"`\n}\n```\n\n```go\nfunc (j *JobCredentials) GetTLSCAFile() string\n```\n\n```go\nfunc (j *JobCredentials) GetTLSCertFile() string\n```\n\n```go\nfunc (j *JobCredentials) GetTLSKeyFile() string\n```\n\n```go\nfunc (j *JobCredentials) GetToken() string\n```\n\n```go\nfunc (j *JobCredentials) GetURL() string\n```\n\n```go\ntype JobFailureReason string\n```\n\n```go\nconst (\n\tNoneFailure         JobFailureReason = \"\"\n\tScriptFailure       JobFailureReason = \"script_failure\"\n\tRunnerSystemFailure JobFailureReason = \"runner_system_failure\"\n\tJobExecutionTimeout JobFailureReason = \"job_execution_timeout\"\n)\n```\n\n```go\ntype JobInfo struct {\n\tName        string `json:\"name\"`\n\tStage       string `json:\"stage\"`\n\tProjectID   int    `json:\"project_id\"`\n\tProjectName string `json:\"project_name\"`\n}\n```\n\n```go\ntype JobRequest struct {\n\tInfo       VersionInfo  `json:\"info,omitempty\"`\n\tToken      string       `json:\"token,omitempty\"`\n\tLastUpdate string       `json:\"last_update,omitempty\"`\n\tSession    *SessionInfo `json:\"session,omitempty\"`\n}\n```\n\n```go\ntype JobResponse struct {\n\tID            int            `json:\"id\"`\n\tToken         string         `json:\"token\"`\n\tAllowGitFetch bool           `json:\"allow_git_fetch\"`\n\tJobInfo       JobInfo        `json:\"job_info\"`\n\tGitInfo       GitInfo        `json:\"git_info\"`\n\tRunnerInfo    RunnerInfo     `json:\"runner_info\"`\n\tVariables     JobVariables   `json:\"variables\"`\n\tSteps         Steps          `json:\"steps\"`\n\tImage         Image          `json:\"image\"`\n\tServices      Services       `json:\"services\"`\n\tArtifacts     Artifacts      `json:\"artifacts\"`\n\tCache         Caches         `json:\"cache\"`\n\tCredentials   []Credentials  `json:\"credentials\"`\n\tDependencies  Dependencies   `json:\"dependencies\"`\n\tFeatures      GitlabFeatures `json:\"features\"`\n\n\tTLSCAChain  string `json:\"-\"`\n\tTLSAuthCert string `json:\"-\"`\n\tTLSAuthKey  string `json:\"-\"`\n}\n```\n\n```go\nfunc GetFailedBuild() (JobResponse, error)\n```\n\n```go\nfunc GetLocalBuildResponse(commands ...string) (JobResponse, error)\n```\n\n```go\nfunc GetLongRunningBuild() (JobResponse, error)\n```\n\n```go\nfunc GetMultilineBashBuild() (JobResponse, error)\n```\n\n```go\nfunc GetMultilineBashBuildCmd() (JobResponse, error)\n```\n\n```go\nfunc GetMultilineBashBuildPowerShell() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteBrokenTLSBuild() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteBuildResponse(commands ...string) (JobResponse, error)\n```\n\n```go\nfunc GetRemoteFailedBuild() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteGitLabComTLSBuild() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteLongRunningBuild() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteSuccessfulBuild() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteSuccessfulBuildWithAfterScript() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteSuccessfulBuildWithDumpedVariables() (JobResponse, error)\n```\n\n```go\nfunc GetRemoteSuccessfulLFSBuild() (JobResponse, error)\n```\n\n```go\nfunc GetSuccessfulBuild() (JobResponse, error)\n```\n\n```go\nfunc (j *JobResponse) RepoCleanURL() string\n```\n\n```go\ntype JobState string\n```\n\n```go\nconst (\n\tPending JobState = \"pending\"\n\tRunning JobState = \"running\"\n\tFailed  JobState = \"failed\"\n\tSuccess JobState = \"success\"\n)\n```\n\n```go\ntype JobTrace interface {\n\tio.Writer\n\tSuccess()\n\tFail(err error, failureReason JobFailureReason)\n\tSetCancelFunc(cancelFunc context.CancelFunc)\n\tSetFailuresCollector(fc FailuresCollector)\n\tSetMasked(values []string)\n\tIsStdout() bool\n}\n```\n\n```go\ntype JobVariable struct {\n\tKey      string `json:\"key\"`\n\tValue    string `json:\"value\"`\n\tPublic   bool   `json:\"public\"`\n\tInternal bool   `json:\"-\"`\n\tFile     bool   `json:\"file\"`\n\tMasked   bool   `json:\"masked\"`\n}\n```\n\n```go\nfunc ParseVariable(text string) (variable JobVariable, err error)\n```\n\n```go\nfunc (b JobVariable) String() string\n```\n\n```go\ntype JobVariables []JobVariable\n```\n\n```go\nfunc (b JobVariables) Expand() (variables JobVariables)\n```\n\n```go\nfunc (b JobVariables) ExpandValue(value string) string\n```\n\n```go\nfunc (b JobVariables) Get(key string) string\n```\n\n```go\nfunc (b JobVariables) Masked() (masked []string)\n```\n\n```go\nfunc (b JobVariables) PublicOrInternal() (variables JobVariables)\n```\n\n```go\nfunc (b JobVariables) StringList() (variables []string)\n```\n\n```go\ntype KubernetesConfig struct {\n\tHost                           string                       `toml:\"host\" json:\"host\" long:\"host\" env:\"KUBERNETES_HOST\" description:\"Optional Kubernetes master host URL (auto-discovery attempted if not specified)\"`\n\tCertFile                       string                       `toml:\"cert_file,omitempty\" json:\"cert_file\" long:\"cert-file\" env:\"KUBERNETES_CERT_FILE\" description:\"Optional Kubernetes master auth certificate\"`\n\tKeyFile                        string                       `toml:\"key_file,omitempty\" json:\"key_file\" long:\"key-file\" env:\"KUBERNETES_KEY_FILE\" description:\"Optional Kubernetes master auth private key\"`\n\tCAFile                         string                       `toml:\"ca_file,omitempty\" json:\"ca_file\" long:\"ca-file\" env:\"KUBERNETES_CA_FILE\" description:\"Optional Kubernetes master auth ca certificate\"`\n\tBearerTokenOverwriteAllowed    bool                         `toml:\"bearer_token_overwrite_allowed\" json:\"bearer_token_overwrite_allowed\" long:\"bearer_token_overwrite_allowed\" env:\"KUBERNETES_BEARER_TOKEN_OVERWRITE_ALLOWED\" description:\"Bool to authorize builds to specify their own bearer token for creation.\"`\n\tBearerToken                    string                       `toml:\"bearer_token,omitempty\" json:\"bearer_token\" long:\"bearer_token\" env:\"KUBERNETES_BEARER_TOKEN\" description:\"Optional Kubernetes service account token used to start build pods.\"`\n\tImage                          string                       `toml:\"image\" json:\"image\" long:\"image\" env:\"KUBERNETES_IMAGE\" description:\"Default docker image to use for builds when none is specified\"`\n\tNamespace                      string                       `toml:\"namespace\" json:\"namespace\" long:\"namespace\" env:\"KUBERNETES_NAMESPACE\" description:\"Namespace to run Kubernetes jobs in\"`\n\tNamespaceOverwriteAllowed      string                       `toml:\"namespace_overwrite_allowed\" json:\"namespace_overwrite_allowed\" long:\"namespace_overwrite_allowed\" env:\"KUBERNETES_NAMESPACE_OVERWRITE_ALLOWED\" description:\"Regex to validate 'KUBERNETES_NAMESPACE_OVERWRITE' value\"`\n\tPrivileged                     bool                         `toml:\"privileged,omitzero\" json:\"privileged\" long:\"privileged\" env:\"KUBERNETES_PRIVILEGED\" description:\"Run all containers with the privileged flag enabled\"`\n\tCPULimit                       string                       `toml:\"cpu_limit,omitempty\" json:\"cpu_limit\" long:\"cpu-limit\" env:\"KUBERNETES_CPU_LIMIT\" description:\"The CPU allocation given to build containers\"`\n\tMemoryLimit                    string                       `toml:\"memory_limit,omitempty\" json:\"memory_limit\" long:\"memory-limit\" env:\"KUBERNETES_MEMORY_LIMIT\" description:\"The amount of memory allocated to build containers\"`\n\tServiceCPULimit                string                       `toml:\"service_cpu_limit,omitempty\" json:\"service_cpu_limit\" long:\"service-cpu-limit\" env:\"KUBERNETES_SERVICE_CPU_LIMIT\" description:\"The CPU allocation given to build service containers\"`\n\tServiceMemoryLimit             string                       `toml:\"service_memory_limit,omitempty\" json:\"service_memory_limit\" long:\"service-memory-limit\" env:\"KUBERNETES_SERVICE_MEMORY_LIMIT\" description:\"The amount of memory allocated to build service containers\"`\n\tHelperCPULimit                 string                       `toml:\"helper_cpu_limit,omitempty\" json:\"helper_cpu_limit\" long:\"helper-cpu-limit\" env:\"KUBERNETES_HELPER_CPU_LIMIT\" description:\"The CPU allocation given to build helper containers\"`\n\tHelperMemoryLimit              string                       `toml:\"helper_memory_limit,omitempty\" json:\"helper_memory_limit\" long:\"helper-memory-limit\" env:\"KUBERNETES_HELPER_MEMORY_LIMIT\" description:\"The amount of memory allocated to build helper containers\"`\n\tCPURequest                     string                       `toml:\"cpu_request,omitempty\" json:\"cpu_request\" long:\"cpu-request\" env:\"KUBERNETES_CPU_REQUEST\" description:\"The CPU allocation requested for build containers\"`\n\tMemoryRequest                  string                       `toml:\"memory_request,omitempty\" json:\"memory_request\" long:\"memory-request\" env:\"KUBERNETES_MEMORY_REQUEST\" description:\"The amount of memory requested from build containers\"`\n\tServiceCPURequest              string                       `toml:\"service_cpu_request,omitempty\" json:\"service_cpu_request\" long:\"service-cpu-request\" env:\"KUBERNETES_SERVICE_CPU_REQUEST\" description:\"The CPU allocation requested for build service containers\"`\n\tServiceMemoryRequest           string                       `toml:\"service_memory_request,omitempty\" json:\"service_memory_request\" long:\"service-memory-request\" env:\"KUBERNETES_SERVICE_MEMORY_REQUEST\" description:\"The amount of memory requested for build service containers\"`\n\tHelperCPURequest               string                       `toml:\"helper_cpu_request,omitempty\" json:\"helper_cpu_request\" long:\"helper-cpu-request\" env:\"KUBERNETES_HELPER_CPU_REQUEST\" description:\"The CPU allocation requested for build helper containers\"`\n\tHelperMemoryRequest            string                       `toml:\"helper_memory_request,omitempty\" json:\"helper_memory_request\" long:\"helper-memory-request\" env:\"KUBERNETES_HELPER_MEMORY_REQUEST\" description:\"The amount of memory requested for build helper containers\"`\n\tPullPolicy                     KubernetesPullPolicy         `toml:\"pull_policy,omitempty\" json:\"pull_policy\" long:\"pull-policy\" env:\"KUBERNETES_PULL_POLICY\" description:\"Policy for if/when to pull a container image (never, if-not-present, always). The cluster default will be used if not set\"`\n\tNodeSelector                   map[string]string            `toml:\"node_selector,omitempty\" json:\"node_selector\" long:\"node-selector\" env:\"KUBERNETES_NODE_SELECTOR\" description:\"A toml table/json object of key=value. Value is expected to be a string. When set this will create pods on k8s nodes that match all the key=value pairs.\"`\n\tNodeTolerations                map[string]string            `toml:\"node_tolerations,omitempty\" json:\"node_tolerations\" long:\"node-tolerations\" env:\"KUBERNETES_NODE_TOLERATIONS\" description:\"A toml table/json object of key=value:effect. Value and effect are expected to be strings. When set, pods will tolerate the given taints. Only one toleration is supported through environment variable configuration.\"`\n\tImagePullSecrets               []string                     `toml:\"image_pull_secrets,omitempty\" json:\"image_pull_secrets\" long:\"image-pull-secrets\" env:\"KUBERNETES_IMAGE_PULL_SECRETS\" description:\"A list of image pull secrets that are used for pulling docker image\"`\n\tHelperImage                    string                       `toml:\"helper_image,omitempty\" json:\"helper_image\" long:\"helper-image\" env:\"KUBERNETES_HELPER_IMAGE\" description:\"[ADVANCED] Override the default helper image used to clone repos and upload artifacts\"`\n\tTerminationGracePeriodSeconds  int64                        `toml:\"terminationGracePeriodSeconds,omitzero\" json:\"terminationGracePeriodSeconds\" long:\"terminationGracePeriodSeconds\" env:\"KUBERNETES_TERMINATIONGRACEPERIODSECONDS\" description:\"Duration after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal.\"`\n\tPollInterval                   int                          `toml:\"poll_interval,omitzero\" json:\"poll_interval\" long:\"poll-interval\" env:\"KUBERNETES_POLL_INTERVAL\" description:\"How frequently, in seconds, the runner will poll the Kubernetes pod it has just created to check its status\"`\n\tPollTimeout                    int                          `toml:\"poll_timeout,omitzero\" json:\"poll_timeout\" long:\"poll-timeout\" env:\"KUBERNETES_POLL_TIMEOUT\" description:\"The total amount of time, in seconds, that needs to pass before the runner will timeout attempting to connect to the pod it has just created (useful for queueing more builds that the cluster can handle at a time)\"`\n\tPodLabels                      map[string]string            `toml:\"pod_labels,omitempty\" json:\"pod_labels\" long:\"pod-labels\" description:\"A toml table/json object of key-value. Value is expected to be a string. When set, this will create pods with the given pod labels. Environment variables will be substituted for values here.\"`\n\tServiceAccount                 string                       `toml:\"service_account,omitempty\" json:\"service_account\" long:\"service-account\" env:\"KUBERNETES_SERVICE_ACCOUNT\" description:\"Executor pods will use this Service Account to talk to kubernetes API\"`\n\tServiceAccountOverwriteAllowed string                       `toml:\"service_account_overwrite_allowed\" json:\"service_account_overwrite_allowed\" long:\"service_account_overwrite_allowed\" env:\"KUBERNETES_SERVICE_ACCOUNT_OVERWRITE_ALLOWED\" description:\"Regex to validate 'KUBERNETES_SERVICE_ACCOUNT' value\"`\n\tPodAnnotations                 map[string]string            `toml:\"pod_annotations,omitempty\" json:\"pod_annotations\" long:\"pod-annotations\" description:\"A toml table/json object of key-value. Value is expected to be a string. When set, this will create pods with the given annotations. Can be overwritten in build with KUBERNETES_POD_ANNOTATION_* variables\"`\n\tPodAnnotationsOverwriteAllowed string                       `toml:\"pod_annotations_overwrite_allowed\" json:\"pod_annotations_overwrite_allowed\" long:\"pod_annotations_overwrite_allowed\" env:\"KUBERNETES_POD_ANNOTATIONS_OVERWRITE_ALLOWED\" description:\"Regex to validate 'KUBERNETES_POD_ANNOTATIONS_*' values\"`\n\tPodSecurityContext             KubernetesPodSecurityContext `toml:\"pod_security_context,omitempty\" namespace:\"pod-security-context\" description:\"A security context attached to each build pod\"`\n\tVolumes                        KubernetesVolumes            `toml:\"volumes\"`\n\tServices                       []Service                    `toml:\"services,omitempty\" json:\"services\" long:\"services\" description:\"Add service that is started with container\"`\n}\n```\n\n```go\nfunc (c *KubernetesConfig) GetNodeTolerations() []api.Toleration\n```\n\n```go\nfunc (c *KubernetesConfig) GetPodSecurityContext() *api.PodSecurityContext\n```\n\n```go\nfunc (c *KubernetesConfig) GetPollAttempts() int\n```\n\n```go\nfunc (c *KubernetesConfig) GetPollInterval() int\n```\n\n```go\ntype KubernetesConfigMap struct {\n\tName      string            `toml:\"name\" json:\"name\" description:\"The name of the volume and ConfigMap to use\"`\n\tMountPath string            `toml:\"mount_path\" description:\"Path where volume should be mounted inside of container\"`\n\tReadOnly  bool              `toml:\"read_only,omitempty\" description:\"If this volume should be mounted read only\"`\n\tItems     map[string]string `toml:\"items,omitempty\" description:\"Key-to-path mapping for keys from the config map that should be used.\"`\n}\n```\n\n```go\ntype KubernetesEmptyDir struct {\n\tName      string `toml:\"name\" json:\"name\" description:\"The name of the volume and EmptyDir to use\"`\n\tMountPath string `toml:\"mount_path\" description:\"Path where volume should be mounted inside of container\"`\n\tMedium    string `toml:\"medium,omitempty\" description:\"Set to 'Memory' to have a tmpfs\"`\n}\n```\n\n```go\ntype KubernetesHostPath struct {\n\tName      string `toml:\"name\" json:\"name\" description:\"The name of the volume\"`\n\tMountPath string `toml:\"mount_path\" description:\"Path where volume should be mounted inside of container\"`\n\tReadOnly  bool   `toml:\"read_only,omitempty\" description:\"If this volume should be mounted read only\"`\n\tHostPath  string `toml:\"host_path,omitempty\" description:\"Path from the host that should be mounted as a volume\"`\n}\n```\n\n```go\ntype KubernetesPVC struct {\n\tName      string `toml:\"name\" json:\"name\" description:\"The name of the volume and PVC to use\"`\n\tMountPath string `toml:\"mount_path\" description:\"Path where volume should be mounted inside of container\"`\n\tReadOnly  bool   `toml:\"read_only,omitempty\" description:\"If this volume should be mounted read only\"`\n}\n```\n\n```go\ntype KubernetesPodSecurityContext struct {\n\tFSGroup            *int64  `toml:\"fs_group,omitempty\" long:\"fs-group\" env:\"KUBERNETES_POD_SECURITY_CONTEXT_FS_GROUP\" description:\"A special supplemental group that applies to all containers in a pod\"`\n\tRunAsGroup         *int64  `toml:\"run_as_group,omitempty\" long:\"run-as-group\" env:\"KUBERNETES_POD_SECURITY_CONTEXT_RUN_AS_GROUP\" description:\"The GID to run the entrypoint of the container process\"`\n\tRunAsNonRoot       *bool   `toml:\"run_as_non_root,omitempty\" long:\"run-as-non-root\" env:\"KUBERNETES_POD_SECURITY_CONTEXT_RUN_AS_NON_ROOT\" description:\"Indicates that the container must run as a non-root user\"`\n\tRunAsUser          *int64  `toml:\"run_as_user,omitempty\" long:\"run-as-user\" env:\"KUBERNETES_POD_SECURITY_CONTEXT_RUN_AS_USER\" description:\"The UID to run the entrypoint of the container process\"`\n\tSupplementalGroups []int64 `toml:\"supplemental_groups,omitempty\" long:\"supplemental-groups\" description:\"A list of groups applied to the first process run in each container, in addition to the container's primary GID\"`\n}\n```\n\n```go\ntype KubernetesPullPolicy string\n```\n\n```go\nfunc (p KubernetesPullPolicy) Get() (KubernetesPullPolicy, error)\n```\nGet returns one of the predefined values in kubernetes notation or returns an error if the value can't match the predefined\n\n```go\ntype KubernetesSecret struct {\n\tName      string            `toml:\"name\" json:\"name\" description:\"The name of the volume and Secret to use\"`\n\tMountPath string            `toml:\"mount_path\" description:\"Path where volume should be mounted inside of container\"`\n\tReadOnly  bool              `toml:\"read_only,omitempty\" description:\"If this volume should be mounted read only\"`\n\tItems     map[string]string `toml:\"items,omitempty\" description:\"Key-to-path mapping for keys from the secret that should be used.\"`\n}\n```\n\n```go\ntype KubernetesVolumes struct {\n\tHostPaths  []KubernetesHostPath  `toml:\"host_path\" description:\"The host paths which will be mounted\"`\n\tPVCs       []KubernetesPVC       `toml:\"pvc\" description:\"The persistent volume claims that will be mounted\"`\n\tConfigMaps []KubernetesConfigMap `toml:\"config_map\" description:\"The config maps which will be mounted as volumes\"`\n\tSecrets    []KubernetesSecret    `toml:\"secret\" description:\"The secret maps which will be mounted\"`\n\tEmptyDirs  []KubernetesEmptyDir  `toml:\"empty_dir\" description:\"The empty dirs which will be mounted\"`\n}\n```\n\n```go\ntype MockCommander struct {\n\tmock.Mock\n}\n```\nMockCommander is an autogenerated mock type for the Commander type\n\n```go\nfunc (_m *MockCommander) Execute(c *cli.Context)\n```\nExecute provides a mock function with given fields: c\n\n```go\ntype MockExecutor struct {\n\tmock.Mock\n}\n```\nMockExecutor is an autogenerated mock type for the Executor type\n\n```go\nfunc (_m *MockExecutor) Cleanup()\n```\nCleanup provides a mock function with given fields:\n\n```go\nfunc (_m *MockExecutor) Finish(err error)\n```\nFinish provides a mock function with given fields: err\n\n```go\nfunc (_m *MockExecutor) GetCurrentStage() ExecutorStage\n```\nGetCurrentStage provides a mock function with given fields:\n\n```go\nfunc (_m *MockExecutor) Prepare(options ExecutorPrepareOptions) error\n```\nPrepare provides a mock function with given fields: options\n\n```go\nfunc (_m *MockExecutor) Run(cmd ExecutorCommand) error\n```\nRun provides a mock function with given fields: cmd\n\n```go\nfunc (_m *MockExecutor) SetCurrentStage(stage ExecutorStage)\n```\nSetCurrentStage provides a mock function with given fields: stage\n\n```go\nfunc (_m *MockExecutor) Shell() *ShellScriptInfo\n```\nShell provides a mock function with given fields:\n\n```go\ntype MockExecutorData struct {\n\tmock.Mock\n}\n```\nMockExecutorData is an autogenerated mock type for the ExecutorData type\n\n```go\ntype MockExecutorProvider struct {\n\tmock.Mock\n}\n```\nMockExecutorProvider is an autogenerated mock type for the ExecutorProvider type\n\n```go\nfunc (_m *MockExecutorProvider) Acquire(config *RunnerConfig) (ExecutorData, error)\n```\nAcquire provides a mock function with given fields: config\n\n```go\nfunc (_m *MockExecutorProvider) CanCreate() bool\n```\nCanCreate provides a mock function with given fields:\n\n```go\nfunc (_m *MockExecutorProvider) Create() Executor\n```\nCreate provides a mock function with given fields:\n\n```go\nfunc (_m *MockExecutorProvider) GetDefaultShell() string\n```\nGetDefaultShell provides a mock function with given fields:\n\n```go\nfunc (_m *MockExecutorProvider) GetFeatures(features *FeaturesInfo) error\n```\nGetFeatures provides a mock function with given fields: features\n\n```go\nfunc (_m *MockExecutorProvider) Release(config *RunnerConfig, data ExecutorData)\n```\nRelease provides a mock function with given fields: config, data\n\n```go\ntype MockFailuresCollector struct {\n\tmock.Mock\n}\n```\nMockFailuresCollector is an autogenerated mock type for the FailuresCollector type\n\n```go\nfunc (_m *MockFailuresCollector) RecordFailure(reason JobFailureReason, runnerDescription string)\n```\nRecordFailure provides a mock function with given fields: reason, runnerDescription\n\n```go\ntype MockJobTrace struct {\n\tmock.Mock\n}\n```\nMockJobTrace is an autogenerated mock type for the JobTrace type\n\n```go\nfunc (_m *MockJobTrace) Fail(err error, failureReason JobFailureReason)\n```\nFail provides a mock function with given fields: err, failureReason\n\n```go\nfunc (_m *MockJobTrace) IsStdout() bool\n```\nIsStdout provides a mock function with given fields:\n\n```go\nfunc (_m *MockJobTrace) SetCancelFunc(cancelFunc context.CancelFunc)\n```\nSetCancelFunc provides a mock function with given fields: cancelFunc\n\n```go\nfunc (_m *MockJobTrace) SetFailuresCollector(fc FailuresCollector)\n```\nSetFailuresCollector provides a mock function with given fields: fc\n\n```go\nfunc (_m *MockJobTrace) SetMasked(values []string)\n```\nSetMasked provides a mock function with given fields: values\n\n```go\nfunc (_m *MockJobTrace) Success()\n```\nSuccess provides a mock function with given fields:\n\n```go\nfunc (_m *MockJobTrace) Write(p []byte) (int, error)\n```\nWrite provides a mock function with given fields: p\n\n```go\ntype MockNetwork struct {\n\tmock.Mock\n}\n```\nMockNetwork is an autogenerated mock type for the Network type\n\n```go\nfunc (_m *MockNetwork) DownloadArtifacts(config JobCredentials, artifactsFile string) DownloadState\n```\nDownloadArtifacts provides a mock function with given fields: config, artifactsFile\n\n```go\nfunc (_m *MockNetwork) PatchTrace(config RunnerConfig, jobCredentials *JobCredentials, content []byte, startOffset int) (int, UpdateState)\n```\nPatchTrace provides a mock function with given fields: config, jobCredentials, content, startOffset\n\n```go\nfunc (_m *MockNetwork) ProcessJob(config RunnerConfig, buildCredentials *JobCredentials) (JobTrace, error)\n```\nProcessJob provides a mock function with given fields: config, buildCredentials\n\n```go\nfunc (_m *MockNetwork) RegisterRunner(config RunnerCredentials, parameters RegisterRunnerParameters) *RegisterRunnerResponse\n```\nRegisterRunner provides a mock function with given fields: config, parameters\n\n```go\nfunc (_m *MockNetwork) RequestJob(config RunnerConfig, sessionInfo *SessionInfo) (*JobResponse, bool)\n```\nRequestJob provides a mock function with given fields: config, sessionInfo\n\n```go\nfunc (_m *MockNetwork) UnregisterRunner(config RunnerCredentials) bool\n```\nUnregisterRunner provides a mock function with given fields: config\n\n```go\nfunc (_m *MockNetwork) UpdateJob(config RunnerConfig, jobCredentials *JobCredentials, jobInfo UpdateJobInfo) UpdateState\n```\nUpdateJob provides a mock function with given fields: config, jobCredentials, jobInfo\n\n```go\nfunc (_m *MockNetwork) UploadRawArtifacts(config JobCredentials, reader io.Reader, options ArtifactsOptions) UploadState\n```\nUploadRawArtifacts provides a mock function with given fields: config, reader, options\n\n```go\nfunc (_m *MockNetwork) VerifyRunner(config RunnerCredentials) bool\n```\nVerifyRunner provides a mock function with given fields: config\n\n```go\ntype MockShell struct {\n\tmock.Mock\n}\n```\nMockShell is an autogenerated mock type for the Shell type\n\n```go\nfunc (_m *MockShell) GenerateScript(buildStage BuildStage, info ShellScriptInfo) (string, error)\n```\nGenerateScript provides a mock function with given fields: buildStage, info\n\n```go\nfunc (_m *MockShell) GetConfiguration(info ShellScriptInfo) (*ShellConfiguration, error)\n```\nGetConfiguration provides a mock function with given fields: info\n\n```go\nfunc (_m *MockShell) GetFeatures(features *FeaturesInfo)\n```\nGetFeatures provides a mock function with given fields: features\n\n```go\nfunc (_m *MockShell) GetName() string\n```\nGetName provides a mock function with given fields:\n\n```go\nfunc (_m *MockShell) IsDefault() bool\n```\nIsDefault provides a mock function with given fields:\n\n```go\ntype Network interface {\n\tRegisterRunner(config RunnerCredentials, parameters RegisterRunnerParameters) *RegisterRunnerResponse\n\tVerifyRunner(config RunnerCredentials) bool\n\tUnregisterRunner(config RunnerCredentials) bool\n\tRequestJob(config RunnerConfig, sessionInfo *SessionInfo) (*JobResponse, bool)\n\tUpdateJob(config RunnerConfig, jobCredentials *JobCredentials, jobInfo UpdateJobInfo) UpdateState\n\tPatchTrace(config RunnerConfig, jobCredentials *JobCredentials, content []byte, startOffset int) (int, UpdateState)\n\tDownloadArtifacts(config JobCredentials, artifactsFile string) DownloadState\n\tUploadRawArtifacts(config JobCredentials, reader io.Reader, options ArtifactsOptions) UploadState\n\tProcessJob(config RunnerConfig, buildCredentials *JobCredentials) (JobTrace, error)\n}\n```\n\n```go\ntype ParallelsConfig struct {\n\tBaseName         string `toml:\"base_name\" json:\"base_name\" long:\"base-name\" env:\"PARALLELS_BASE_NAME\" description:\"VM name to be used\"`\n\tTemplateName     string `toml:\"template_name,omitempty\" json:\"template_name\" long:\"template-name\" env:\"PARALLELS_TEMPLATE_NAME\" description:\"VM template to be created\"`\n\tDisableSnapshots bool   `toml:\"disable_snapshots,omitzero\" json:\"disable_snapshots\" long:\"disable-snapshots\" env:\"PARALLELS_DISABLE_SNAPSHOTS\" description:\"Disable snapshoting to speedup VM creation\"`\n\tTimeServer       string `toml:\"time_server,omitempty\" json:\"time_server\" long:\"time-server\" env:\"PARALLELS_TIME_SERVER\" description:\"Timeserver to sync the guests time from. Defaults to time.apple.com\"`\n}\n```\n\n```go\ntype Port struct {\n\tNumber   int    `json:\"number,omitempty\"`\n\tProtocol string `json:\"protocol,omitempty\"`\n\tName     string `json:\"name,omitempty\"`\n}\n```\n\n```go\ntype RegisterRunnerParameters struct {\n\tDescription    string `json:\"description,omitempty\"`\n\tTags           string `json:\"tag_list,omitempty\"`\n\tRunUntagged    bool   `json:\"run_untagged\"`\n\tLocked         bool   `json:\"locked\"`\n\tAccessLevel    string `json:\"access_level,omitempty\"`\n\tMaximumTimeout int    `json:\"maximum_timeout,omitempty\"`\n\tActive         bool   `json:\"active\"`\n}\n```\n\n```go\ntype RegisterRunnerRequest struct {\n\tRegisterRunnerParameters\n\tInfo  VersionInfo `json:\"info,omitempty\"`\n\tToken string      `json:\"token,omitempty\"`\n}\n```\n\n```go\ntype RegisterRunnerResponse struct {\n\tToken string `json:\"token,omitempty\"`\n}\n```\n\n```go\ntype RunnerConfig struct {\n\tName               string `toml:\"name\" json:\"name\" short:\"name\" long:\"description\" env:\"RUNNER_NAME\" description:\"Runner name\"`\n\tLimit              int    `toml:\"limit,omitzero\" json:\"limit\" long:\"limit\" env:\"RUNNER_LIMIT\" description:\"Maximum number of builds processed by this runner\"`\n\tOutputLimit        int    `toml:\"output_limit,omitzero\" long:\"output-limit\" env:\"RUNNER_OUTPUT_LIMIT\" description:\"Maximum build trace size in kilobytes\"`\n\tRequestConcurrency int    `toml:\"request_concurrency,omitzero\" long:\"request-concurrency\" env:\"RUNNER_REQUEST_CONCURRENCY\" description:\"Maximum concurrency for job requests\"`\n\n\tRunnerCredentials\n\tRunnerSettings\n}\n```\n\n```go\nfunc (c *RunnerConfig) DeepCopy() (*RunnerConfig, error)\n```\nDeepCopy attempts to make a deep clone of the object\n\n```go\nfunc (c *RunnerConfig) GetRequestConcurrency() int\n```\n\n```go\nfunc (c *RunnerConfig) GetVariables() JobVariables\n```\n\n```go\nfunc (c *RunnerConfig) String() string\n```\n\n```go\ntype RunnerCredentials struct {\n\tURL         string `toml:\"url\" json:\"url\" short:\"u\" long:\"url\" env:\"CI_SERVER_URL\" required:\"true\" description:\"Runner URL\"`\n\tToken       string `toml:\"token\" json:\"token\" short:\"t\" long:\"token\" env:\"CI_SERVER_TOKEN\" required:\"true\" description:\"Runner token\"`\n\tTLSCAFile   string `toml:\"tls-ca-file,omitempty\" json:\"tls-ca-file\" long:\"tls-ca-file\" env:\"CI_SERVER_TLS_CA_FILE\" description:\"File containing the certificates to verify the peer when using HTTPS\"`\n\tTLSCertFile string `toml:\"tls-cert-file,omitempty\" json:\"tls-cert-file\" long:\"tls-cert-file\" env:\"CI_SERVER_TLS_CERT_FILE\" description:\"File containing certificate for TLS client auth when using HTTPS\"`\n\tTLSKeyFile  string `toml:\"tls-key-file,omitempty\" json:\"tls-key-file\" long:\"tls-key-file\" env:\"CI_SERVER_TLS_KEY_FILE\" description:\"File containing private key for TLS client auth when using HTTPS\"`\n}\n```\n\n```go\nfunc (c *RunnerCredentials) GetTLSCAFile() string\n```\n\n```go\nfunc (c *RunnerCredentials) GetTLSCertFile() string\n```\n\n```go\nfunc (c *RunnerCredentials) GetTLSKeyFile() string\n```\n\n```go\nfunc (c *RunnerCredentials) GetToken() string\n```\n\n```go\nfunc (c *RunnerCredentials) GetURL() string\n```\n\n```go\nfunc (c *RunnerCredentials) Log() *logrus.Entry\n```\n\n```go\nfunc (c *RunnerCredentials) SameAs(other *RunnerCredentials) bool\n```\n\n```go\nfunc (c *RunnerCredentials) ShortDescription() string\n```\n\n```go\nfunc (c *RunnerCredentials) UniqueID() string\n```\n\n```go\ntype RunnerInfo struct {\n\tTimeout int `json:\"timeout\"`\n}\n```\n\n```go\ntype RunnerSettings struct {\n\tExecutor  string `toml:\"executor\" json:\"executor\" long:\"executor\" env:\"RUNNER_EXECUTOR\" required:\"true\" description:\"Select executor, eg. shell, docker, etc.\"`\n\tBuildsDir string `toml:\"builds_dir,omitempty\" json:\"builds_dir\" long:\"builds-dir\" env:\"RUNNER_BUILDS_DIR\" description:\"Directory where builds are stored\"`\n\tCacheDir  string `toml:\"cache_dir,omitempty\" json:\"cache_dir\" long:\"cache-dir\" env:\"RUNNER_CACHE_DIR\" description:\"Directory where build cache is stored\"`\n\tCloneURL  string `toml:\"clone_url,omitempty\" json:\"clone_url\" long:\"clone-url\" env:\"CLONE_URL\" description:\"Overwrite the default URL used to clone or fetch the git ref\"`\n\n\tEnvironment     []string `toml:\"environment,omitempty\" json:\"environment\" long:\"env\" env:\"RUNNER_ENV\" description:\"Custom environment variables injected to build environment\"`\n\tPreCloneScript  string   `toml:\"pre_clone_script,omitempty\" json:\"pre_clone_script\" long:\"pre-clone-script\" env:\"RUNNER_PRE_CLONE_SCRIPT\" description:\"Runner-specific command script executed before code is pulled\"`\n\tPreBuildScript  string   `toml:\"pre_build_script,omitempty\" json:\"pre_build_script\" long:\"pre-build-script\" env:\"RUNNER_PRE_BUILD_SCRIPT\" description:\"Runner-specific command script executed after code is pulled, just before build executes\"`\n\tPostBuildScript string   `toml:\"post_build_script,omitempty\" json:\"post_build_script\" long:\"post-build-script\" env:\"RUNNER_POST_BUILD_SCRIPT\" description:\"Runner-specific command script executed after code is pulled and just after build executes\"`\n\n\tDebugTraceDisabled bool `toml:\"debug_trace_disabled,omitempty\" json:\"debug_trace_disabled\" long:\"debug-trace-disabled\" env:\"RUNNER_DEBUG_TRACE_DISABLED\" description:\"When set to true Runner will disable the possibility of using the CI_DEBUG_TRACE feature\"`\n\n\tShell string `toml:\"shell,omitempty\" json:\"shell\" long:\"shell\" env:\"RUNNER_SHELL\" description:\"Select bash, cmd or powershell\"`\n\n\tCustomBuildDir *CustomBuildDir   `toml:\"custom_build_dir,omitempty\" json:\"custom_build_dir\" group:\"custom build dir configuration\" namespace:\"custom_build_dir\"`\n\tSSH            *ssh.Config       `toml:\"ssh,omitempty\" json:\"ssh\" group:\"ssh executor\" namespace:\"ssh\"`\n\tDocker         *DockerConfig     `toml:\"docker,omitempty\" json:\"docker\" group:\"docker executor\" namespace:\"docker\"`\n\tParallels      *ParallelsConfig  `toml:\"parallels,omitempty\" json:\"parallels\" group:\"parallels executor\" namespace:\"parallels\"`\n\tVirtualBox     *VirtualBoxConfig `toml:\"virtualbox,omitempty\" json:\"virtualbox\" group:\"virtualbox executor\" namespace:\"virtualbox\"`\n\tCache          *CacheConfig      `toml:\"cache,omitempty\" json:\"cache\" group:\"cache configuration\" namespace:\"cache\"`\n\tMachine        *DockerMachine    `toml:\"machine,omitempty\" json:\"machine\" group:\"docker machine provider\" namespace:\"machine\"`\n\tKubernetes     *KubernetesConfig `toml:\"kubernetes,omitempty\" json:\"kubernetes\" group:\"kubernetes executor\" namespace:\"kubernetes\"`\n\tCustom         *CustomConfig     `toml:\"custom,omitempty\" json:\"custom\" group:\"custom executor\" namespace:\"custom\"`\n}\n```\n\n```go\ntype Service struct {\n\tName string `toml:\"name\" long:\"name\" description:\"The image path for the service\"`\n}\n```\n\n```go\ntype Services []Image\n```\n\n```go\ntype SessionInfo struct {\n\tURL           string `json:\"url,omitempty\"`\n\tCertificate   string `json:\"certificate,omitempty\"`\n\tAuthorization string `json:\"authorization,omitempty\"`\n}\n```\n\n```go\ntype SessionServer struct {\n\tListenAddress    string `toml:\"listen_address,omitempty\" json:\"listen_address\" description:\"Address that the runner will communicate directly with\"`\n\tAdvertiseAddress string `toml:\"advertise_address,omitempty\" json:\"advertise_address\" description:\"Address the runner will expose to the world to connect to the session server\"`\n\tSessionTimeout   int    `toml:\"session_timeout,omitempty\" json:\"session_timeout\" description:\"How long a terminal session can be active after a build completes, in seconds\"`\n}\n```\n\n```go\nfunc (c *SessionServer) GetSessionTimeout() time.Duration\n```\n\n```go\ntype Shell interface {\n\tGetName() string\n\tGetFeatures(features *FeaturesInfo)\n\tIsDefault() bool\n\n\tGetConfiguration(info ShellScriptInfo) (*ShellConfiguration, error)\n\tGenerateScript(buildStage BuildStage, info ShellScriptInfo) (string, error)\n}\n```\n\n```go\nfunc GetShell(shell string) Shell\n```\n\n```go\ntype ShellConfiguration struct {\n\tEnvironment   []string\n\tDockerCommand []string\n\tCommand       string\n\tArguments     []string\n\tPassFile      bool\n\tExtension     string\n}\n```\n\n```go\nfunc GetShellConfiguration(info ShellScriptInfo) (*ShellConfiguration, error)\n```\n\n```go\nfunc (s *ShellConfiguration) GetCommandWithArguments() []string\n```\n\n```go\nfunc (s *ShellConfiguration) String() string\n```\n\n```go\ntype ShellScriptInfo struct {\n\tShell           string\n\tBuild           *Build\n\tType            ShellType\n\tUser            string\n\tRunnerCommand   string\n\tPreCloneScript  string\n\tPreBuildScript  string\n\tPostBuildScript string\n}\n```\n\n```go\ntype ShellType int\n```\n\n```go\nconst (\n\tNormalShell ShellType = iota\n\tLoginShell\n)\n```\n\n```go\ntype Step struct {\n\tName         StepName   `json:\"name\"`\n\tScript       StepScript `json:\"script\"`\n\tTimeout      int        `json:\"timeout\"`\n\tWhen         StepWhen   `json:\"when\"`\n\tAllowFailure bool       `json:\"allow_failure\"`\n}\n```\n\n```go\ntype StepName string\n```\n\n```go\nconst (\n\tStepNameScript      StepName = \"script\"\n\tStepNameAfterScript StepName = \"after_script\"\n)\n```\n\n```go\ntype StepScript []string\n```\n\n```go\ntype StepWhen string\n```\n\n```go\nconst (\n\tStepWhenOnFailure StepWhen = \"on_failure\"\n\tStepWhenOnSuccess StepWhen = \"on_success\"\n\tStepWhenAlways    StepWhen = \"always\"\n)\n```\n\n```go\ntype Steps []Step\n```\n\n```go\ntype SubmoduleStrategy int\n```\n\n```go\nconst (\n\tSubmoduleInvalid SubmoduleStrategy = iota\n\tSubmoduleNone\n\tSubmoduleNormal\n\tSubmoduleRecursive\n)\n```\n\n```go\ntype Trace struct {\n\tWriter     io.Writer\n\tCancelFunc context.CancelFunc\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *Trace) Fail(err error, failureReason JobFailureReason)\n```\n\n```go\nfunc (s *Trace) IsStdout() bool\n```\n\n```go\nfunc (s *Trace) SetCancelFunc(cancelFunc context.CancelFunc)\n```\n\n```go\nfunc (s *Trace) SetFailuresCollector(fc FailuresCollector)\n```\n\n```go\nfunc (s *Trace) SetMasked(values []string)\n```\n\n```go\nfunc (s *Trace) Success()\n```\n\n```go\nfunc (s *Trace) Write(p []byte) (n int, err error)\n```\n\n```go\ntype UnregisterRunnerRequest struct {\n\tToken string `json:\"token,omitempty\"`\n}\n```\n\n```go\ntype UpdateJobInfo struct {\n\tID            int\n\tState         JobState\n\tFailureReason JobFailureReason\n}\n```\n\n```go\ntype UpdateJobRequest struct {\n\tInfo          VersionInfo      `json:\"info,omitempty\"`\n\tToken         string           `json:\"token,omitempty\"`\n\tState         JobState         `json:\"state,omitempty\"`\n\tFailureReason JobFailureReason `json:\"failure_reason,omitempty\"`\n}\n```\n\n```go\ntype UpdateState int\n```\n\n```go\nconst (\n\tUpdateSucceeded UpdateState = iota\n\tUpdateNotFound\n\tUpdateAbort\n\tUpdateFailed\n\tUpdateRangeMismatch\n)\n```\n\n```go\ntype UploadState int\n```\n\n```go\nconst (\n\tUploadSucceeded UploadState = iota\n\tUploadTooLarge\n\tUploadForbidden\n\tUploadFailed\n)\n```\n\n```go\ntype VerifyRunnerRequest struct {\n\tToken string `json:\"token,omitempty\"`\n}\n```\n\n```go\ntype VersionInfo struct {\n\tName         string       `json:\"name,omitempty\"`\n\tVersion      string       `json:\"version,omitempty\"`\n\tRevision     string       `json:\"revision,omitempty\"`\n\tPlatform     string       `json:\"platform,omitempty\"`\n\tArchitecture string       `json:\"architecture,omitempty\"`\n\tExecutor     string       `json:\"executor,omitempty\"`\n\tShell        string       `json:\"shell,omitempty\"`\n\tFeatures     FeaturesInfo `json:\"features\"`\n}\n```\n\n```go\ntype VirtualBoxConfig struct {\n\tBaseName         string `toml:\"base_name\" json:\"base_name\" long:\"base-name\" env:\"VIRTUALBOX_BASE_NAME\" description:\"VM name to be used\"`\n\tBaseSnapshot     string `toml:\"base_snapshot,omitempty\" json:\"base_snapshot\" long:\"base-snapshot\" env:\"VIRTUALBOX_BASE_SNAPSHOT\" description:\"Name or UUID of a specific VM snapshot to clone\"`\n\tDisableSnapshots bool   `toml:\"disable_snapshots,omitzero\" json:\"disable_snapshots\" long:\"disable-snapshots\" env:\"VIRTUALBOX_DISABLE_SNAPSHOTS\" description:\"Disable snapshoting to speedup VM creation\"`\n}\n```\n\n","path":"github.com/gitlabhq/gitlab-runner/common","name":"common","synopsis":"","isRedistributable":true}
