Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogLevelDebug = "debug" LogLevelInfo = "info" LogLevelError = "error" LogLevelFatal = "fatal" )
Variables ¶
View Source
var Version = "0.0.0-dev"
overridden via linker flags
View Source
var WorkerVersion = ""
overridden via linker flags
Functions ¶
This section is empty.
Types ¶
type ATCCommand ¶
type ATCCommand struct { Logger LagerFlag Authentication atc.AuthFlags `group:"Authentication"` // populated by main.go as providers inject their flags dynamically ProviderAuth map[string]provider.AuthConfig BindIP IPFlag `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 FileFlag `long:"tls-cert" description:"File containing an SSL certificate."` TLSKey FileFlag `long:"tls-key" description:"File containing an RSA private key, used to encrypt HTTPS traffic."` ExternalURL URLFlag `long:"external-url" default:"http://127.0.0.1:8080" description:"URL used to reach any ATC from the outside world."` PeerURL URLFlag `long:"peer-url" default:"http://127.0.0.1:8080" description:"URL used to reach this ATC from other ATCs in the cluster."` OAuthBaseURL URLFlag `long:"oauth-base-url" description:"URL used as the base of OAuth redirect URIs. If not specified, the external URL is used."` AuthDuration time.Duration `` /* 135-byte string literal not displayed */ EncryptionKey string `` /* 140-byte string literal not displayed */ Postgres PostgresConfig `group:"PostgreSQL Configuration" namespace:"postgres"` DebugBindIP IPFlag `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."` SessionSigningKey FileFlag `long:"session-signing-key" description:"File containing an RSA private key, used to sign session tokens."` ResourceCheckingInterval time.Duration `long:"resource-checking-interval" default:"1m" description:"Interval on which to check for new versions of resources."` OldResourceGracePeriod time.Duration `` /* 150-byte string literal not displayed */ ResourceCacheCleanupInterval time.Duration `long:"resource-cache-cleanup-interval" default:"30s" description:"Interval on which to cleanup old caches of resources."` CLIArtifactsDir DirFlag `long:"cli-artifacts-dir" description:"Directory containing downloadable CLI binaries."` Developer struct { Noop bool `short:"n" long:"noop" description:"Don't actually do any automatic scheduling or checking."` } `group:"Developer Options"` AllowSelfSignedCertificates bool `long:"allow-self-signed-certificates" description:"Allow self signed certificates."` Worker struct { GardenURL URLFlag `long:"garden-url" description:"A Garden API endpoint to register as a worker."` BaggageclaimURL URLFlag `long:"baggageclaim-url" description:"A Baggageclaim API endpoint to register with the worker."` ResourceTypes map[string]string `` /* 139-byte string literal not displayed */ } `group:"Static Worker (optional)" namespace:"worker"` Metrics struct { HostName string `long:"metrics-host-name" description:"Host string to attach to emitted metrics."` Attributes map[string]string `` /* 149-byte string literal not displayed */ YellerAPIKey string `long:"yeller-api-key" description:"Yeller API key. If specified, all errors logged will be emitted."` YellerEnvironment string `long:"yeller-environment" description:"Environment to tag on all Yeller events emitted."` } `group:"Metrics & Diagnostics"` Server struct { XFrameOptions string `long:"x-frame-options" description:"The value to set for X-Frame-Options. If omitted, the header is not set."` } `group:"Web Server"` LogDBQueries bool `long:"log-db-queries" description:"Log database queries."` GCInterval time.Duration `long:"gc-interval" default:"30s" description:"Interval on which to perform garbage collection."` BuildTrackerInterval time.Duration `long:"build-tracker-interval" default:"10s" description:"Interval on which to run build tracking."` }
func (*ATCCommand) Execute ¶
func (cmd *ATCCommand) Execute(args []string) error
func (*ATCCommand) WireDynamicFlags ¶
func (cmd *ATCCommand) WireDynamicFlags(commandFlags *flags.Command)
type LagerFlag ¶
type LagerFlag struct {
LogLevel string `` /* 134-byte string literal not displayed */
}
type PostgresConfig ¶
type PostgresConfig struct { DataSource string `long:"data-source" description:"PostgreSQL connection string. (Deprecated; set the following flags instead.)"` Host string `long:"host" description:"The host to connect to." default:"127.0.0.1"` Port uint16 `long:"port" description:"The port to connect to." default:"5432"` Socket string `long:"socket" description:"Path to a UNIX domain socket to connect to."` User string `long:"user" description:"The user to sign in as."` Password string `long:"password" description:"The user's password."` SSLMode string `` /* 151-byte string literal not displayed */ CACert FileFlag `long:"ca-cert" description:"CA cert file location, to verify when connecting with SSL."` ClientCert FileFlag `long:"client-cert" description:"Client cert file location."` ClientKey FileFlag `long:"client-key" description:"Client key file location."` ConnectTimeout time.Duration `long:"connect-timeout" description:"Dialing timeout. (0 means wait indefinitely)" default:"5m"` Database string `long:"database" description:"The name of the database to use." default:"atc"` }
func (PostgresConfig) ConnectionString ¶
func (config PostgresConfig) ConnectionString() string
Click to show internal directories.
Click to hide internal directories.