Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ATCCommand ¶
type ATCCommand struct { RunCommand RunCommand `command:"run"` Migration Migration `command:"migrate"` }
func (*ATCCommand) WireDynamicFlags ¶
func (cmd *ATCCommand) WireDynamicFlags(commandFlags *flags.Command)
type Migration ¶
type Migration struct { Postgres flag.PostgresConfig `group:"PostgreSQL Configuration" namespace:"postgres"` EncryptionKey flag.Cipher `` /* 134-byte string literal not displayed */ CurrentDBVersion bool `long:"current-db-version" description:"Print the current database version and exit"` SupportedDBVersion bool `long:"supported-db-version" description:"Print the max supported database version and exit"` MigrateDBToVersion int `long:"migrate-db-to-version" description:"Migrate to the specified database version and exit"` }
type RunCommand ¶
type RunCommand struct { Logger flag.Lager BindIP flag.IP `long:"bind-ip" default:"0.0.0.0" description:"IP address on which to listen for web traffic."` BindPort uint16 `long:"bind-port" default:"8080" description:"Port on which to listen for HTTP traffic."` TLSBindPort uint16 `long:"tls-bind-port" description:"Port on which to listen for HTTPS traffic."` TLSCert flag.File `long:"tls-cert" description:"File containing an SSL certificate."` TLSKey flag.File `long:"tls-key" description:"File containing an RSA private key, used to encrypt HTTPS traffic."` LetsEncrypt struct { Enable bool `long:"enable-lets-encrypt" description:"Automatically configure TLS certificates via Let's Encrypt/ACME."` ACMEURL flag.URL `` /* 138-byte string literal not displayed */ } `group:"Let's Encrypt Configuration"` ExternalURL flag.URL `long:"external-url" description:"URL used to reach any ATC from the outside world."` Postgres flag.PostgresConfig `group:"PostgreSQL Configuration" namespace:"postgres"` ConcurrentRequestLimits map[wrappa.LimitedRoute]int `` /* 129-byte string literal not displayed */ APIMaxOpenConnections int `long:"api-max-conns" description:"The maximum number of open connections for the api connection pool." default:"10"` BackendMaxOpenConnections int `long:"backend-max-conns" description:"The maximum number of open connections for the backend connection pool." default:"50"` CredentialManagement creds.CredentialManagementConfig `group:"Credential Management"` CredentialManagers creds.Managers EncryptionKey flag.Cipher `` /* 134-byte string literal not displayed */ OldEncryptionKey flag.Cipher `` /* 208-byte string literal not displayed */ DebugBindIP flag.IP `long:"debug-bind-ip" default:"127.0.0.1" description:"IP address on which to listen for the pprof debugger endpoints."` DebugBindPort uint16 `long:"debug-bind-port" default:"8079" description:"Port on which to listen for the pprof debugger endpoints."` InterceptIdleTimeout time.Duration `` /* 128-byte string literal not displayed */ EnableGlobalResources bool `` /* 134-byte string literal not displayed */ ComponentRunnerInterval time.Duration `` /* 138-byte string literal not displayed */ LidarScannerInterval time.Duration `` /* 147-byte string literal not displayed */ LidarCheckerInterval time.Duration `long:"lidar-checker-interval" default:"10s" description:"Interval on which the resource checker runs any scheduled checks"` GlobalResourceCheckTimeout time.Duration `long:"global-resource-check-timeout" default:"1h" description:"Time limit on checking for new versions of resources."` ResourceCheckingInterval time.Duration `long:"resource-checking-interval" default:"1m" description:"Interval on which to check for new versions of resources."` ResourceWithWebhookCheckingInterval time.Duration `` /* 156-byte string literal not displayed */ MaxChecksPerSecond int `` /* 253-byte string literal not displayed */ ContainerPlacementStrategy string `` /* 242-byte string literal not displayed */ MaxActiveTasksPerWorker int `` /* 205-byte string literal not displayed */ BaggageclaimResponseHeaderTimeout time.Duration `` /* 133-byte string literal not displayed */ StreamingArtifactsCompression string `` /* 141-byte string literal not displayed */ GardenRequestTimeout time.Duration `` /* 129-byte string literal not displayed */ CLIArtifactsDir flag.Dir `long:"cli-artifacts-dir" description:"Directory containing downloadable CLI binaries."` Metrics struct { HostName string `long:"metrics-host-name" description:"Host string to attach to emitted metrics."` Attributes map[string]string `` /* 147-byte string literal not displayed */ BufferSize uint32 `long:"metrics-buffer-size" default:"1000" description:"The size of the buffer used in emitting event metrics."` CaptureErrorMetrics bool `long:"capture-error-metrics" description:"Enable capturing of error log metrics"` } `group:"Metrics & Diagnostics"` Tracing tracing.Config `group:"Tracing" namespace:"tracing"` PolicyCheckers struct { Filter policy.Filter } `group:"Policy Checking"` Server struct { XFrameOptions string `long:"x-frame-options" default:"deny" description:"The value to set for X-Frame-Options."` ClusterName string `long:"cluster-name" description:"A name for this Concourse cluster, to be displayed on the dashboard page."` ClientID string `long:"client-id" default:"concourse-web" description:"Client ID to use for login flow"` ClientSecret string `long:"client-secret" required:"true" description:"Client secret to use for login flow"` } `group:"Web Server"` LogDBQueries bool `long:"log-db-queries" description:"Log database queries."` LogClusterName bool `long:"log-cluster-name" description:"Log cluster name."` GC struct { Interval time.Duration `long:"interval" default:"30s" description:"Interval on which to perform garbage collection."` OneOffBuildGracePeriod time.Duration `long:"one-off-grace-period" default:"5m" description:"Period after which one-off build containers will be garbage-collected."` MissingGracePeriod time.Duration `` /* 156-byte string literal not displayed */ HijackGracePeriod time.Duration `long:"hijack-grace-period" default:"5m" description:"Period after which hijacked containers will be garbage collected"` FailedGracePeriod time.Duration `long:"failed-grace-period" default:"120h" description:"Period after which failed containers will be garbage collected"` CheckRecyclePeriod time.Duration `long:"check-recycle-period" default:"1m" description:"Period after which to reap checks that are completed."` } `group:"Garbage Collection" namespace:"gc"` BuildTrackerInterval time.Duration `long:"build-tracker-interval" default:"10s" description:"Interval on which to run build tracking."` TelemetryOptIn bool `long:"telemetry-opt-in" hidden:"true" description:"Enable anonymous concourse version reporting."` DefaultBuildLogsToRetain uint64 `long:"default-build-logs-to-retain" description:"Default build logs to retain, 0 means all"` MaxBuildLogsToRetain uint64 `` /* 138-byte string literal not displayed */ DefaultDaysToRetainBuildLogs uint64 `long:"default-days-to-retain-build-logs" description:"Default days to retain build logs. 0 means unlimited"` MaxDaysToRetainBuildLogs uint64 `` /* 148-byte string literal not displayed */ JobSchedulingMaxInFlight uint64 `long:"job-scheduling-max-in-flight" default:"32" description:"Maximum number of jobs to be scheduling at the same time"` DefaultCpuLimit *int `long:"default-task-cpu-limit" description:"Default max number of cpu shares per task, 0 means unlimited"` DefaultMemoryLimit *string `long:"default-task-memory-limit" description:"Default maximum memory per task, 0 means unlimited"` Auditor struct { EnableBuildAuditLog bool `long:"enable-build-auditing" description:"Enable auditing for all api requests connected to builds."` EnableContainerAuditLog bool `long:"enable-container-auditing" description:"Enable auditing for all api requests connected to containers."` EnableJobAuditLog bool `long:"enable-job-auditing" description:"Enable auditing for all api requests connected to jobs."` EnablePipelineAuditLog bool `long:"enable-pipeline-auditing" description:"Enable auditing for all api requests connected to pipelines."` EnableResourceAuditLog bool `long:"enable-resource-auditing" description:"Enable auditing for all api requests connected to resources."` EnableSystemAuditLog bool `long:"enable-system-auditing" description:"Enable auditing for all api requests connected to system transactions."` EnableTeamAuditLog bool `long:"enable-team-auditing" description:"Enable auditing for all api requests connected to teams."` EnableWorkerAuditLog bool `long:"enable-worker-auditing" description:"Enable auditing for all api requests connected to workers."` EnableVolumeAuditLog bool `long:"enable-volume-auditing" description:"Enable auditing for all api requests connected to volumes."` } Syslog struct { Hostname string `` /* 142-byte string literal not displayed */ Address string `long:"syslog-address" description:"Remote syslog server address with port (Example: 0.0.0.0:514)."` Transport string `long:"syslog-transport" description:"Transport protocol for syslog messages (Currently supporting tcp, udp & tls)."` DrainInterval time.Duration `` /* 192-byte string literal not displayed */ CACerts []string `` /* 128-byte string literal not displayed */ } ` group:"Syslog Drainer Configuration"` Auth struct { AuthFlags skycmd.AuthFlags MainTeamFlags skycmd.AuthTeamFlags `group:"Authentication (Main Team)" namespace:"main-team"` } `group:"Authentication"` EnableRedactSecrets bool `long:"enable-redact-secrets" description:"Enable redacting secrets in build logs."` ConfigRBAC flag.File `long:"config-rbac" description:"Customize RBAC role-action mapping."` SystemClaimKey string `long:"system-claim-key" default:"aud" description:"The token claim key to use when matching system-claim-values"` SystemClaimValues []string `` /* 137-byte string literal not displayed */ EnableBuildRerunWhenWorkerDisappears bool `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RunCommand) DefaultURL ¶
func (cmd *RunCommand) DefaultURL() flag.URL
func (*RunCommand) Execute ¶
func (cmd *RunCommand) Execute(args []string) error
func (*RunCommand) Runner ¶
func (cmd *RunCommand) Runner(positionalArguments []string) (ifrit.Runner, error)
func (*RunCommand) WireDynamicFlags ¶
func (cmd *RunCommand) WireDynamicFlags(commandFlags *flags.Command)
Click to show internal directories.
Click to hide internal directories.