Documentation
¶
Index ¶
- type APIConfig
- type AwsS3Config
- type Configurator
- func (c *Configurator) GetAPIConfig() *APIConfig
- func (c *Configurator) GetAnonymousUsageEnabled() bool
- func (c *Configurator) GetAppAddUserToDomainGroup() bool
- func (c *Configurator) GetAppBuildBuddyURL() string
- func (c *Configurator) GetAppCacheAPIURL() string
- func (c *Configurator) GetAppCreateGroupPerUser() bool
- func (c *Configurator) GetAppEventsAPIURL() string
- func (c *Configurator) GetAppNoDefaultUserGroup() bool
- func (c *Configurator) GetAppRemoteExecutionAPIURL() string
- func (c *Configurator) GetAuthOauthProviders() []OauthProvider
- func (c *Configurator) GetBuildEventProxyHosts() []string
- func (c *Configurator) GetCacheDiskConfig() *DiskConfig
- func (c *Configurator) GetCacheGCSConfig() *GCSCacheConfig
- func (c *Configurator) GetCacheInMemory() bool
- func (c *Configurator) GetCacheMaxSizeBytes() int64
- func (c *Configurator) GetCacheMemcacheTargets() []string
- func (c *Configurator) GetCacheRedisTarget() string
- func (c *Configurator) GetCacheS3Config() *S3CacheConfig
- func (c *Configurator) GetDBDataSource() string
- func (c *Configurator) GetDBReadReplica() string
- func (c *Configurator) GetDefaultToDenseMode() bool
- func (c *Configurator) GetExecutorConfig() *ExecutorConfig
- func (c *Configurator) GetGRPCMaxRecvMsgSizeBytes() int
- func (c *Configurator) GetGRPCOverHTTPPortEnabled() bool
- func (c *Configurator) GetGithubConfig() *GithubConfig
- func (c *Configurator) GetIntegrationsSlackConfig() *SlackConfig
- func (c *Configurator) GetOrgConfig() *OrgConfig
- func (c *Configurator) GetRemoteExecutionConfig() *RemoteExecutionConfig
- func (c *Configurator) GetSSLConfig() *SSLConfig
- func (c *Configurator) GetStorageAWSS3Config() *AwsS3Config
- func (c *Configurator) GetStorageChunkFileSizeBytes() int
- func (c *Configurator) GetStorageDiskRootDir() string
- func (c *Configurator) GetStorageGCSConfig() *GCSConfig
- func (c *Configurator) GetStorageTTLSeconds() int
- type DiskConfig
- type ExecutorConfig
- type GCSCacheConfig
- type GCSConfig
- type GithubConfig
- type OauthProvider
- type OrgConfig
- type RemoteExecutionConfig
- type S3CacheConfig
- type SSLConfig
- type SlackConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsS3Config ¶
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
func NewConfigurator ¶
func NewConfigurator(configFilePath string) (*Configurator, error)
func (*Configurator) GetAPIConfig ¶
func (c *Configurator) GetAPIConfig() *APIConfig
func (*Configurator) GetAnonymousUsageEnabled ¶
func (c *Configurator) GetAnonymousUsageEnabled() bool
func (*Configurator) GetAppAddUserToDomainGroup ¶
func (c *Configurator) GetAppAddUserToDomainGroup() bool
func (*Configurator) GetAppBuildBuddyURL ¶
func (c *Configurator) GetAppBuildBuddyURL() string
func (*Configurator) GetAppCacheAPIURL ¶
func (c *Configurator) GetAppCacheAPIURL() string
func (*Configurator) GetAppCreateGroupPerUser ¶
func (c *Configurator) GetAppCreateGroupPerUser() bool
func (*Configurator) GetAppEventsAPIURL ¶
func (c *Configurator) GetAppEventsAPIURL() string
func (*Configurator) GetAppNoDefaultUserGroup ¶
func (c *Configurator) GetAppNoDefaultUserGroup() bool
func (*Configurator) GetAppRemoteExecutionAPIURL ¶
func (c *Configurator) GetAppRemoteExecutionAPIURL() string
func (*Configurator) GetAuthOauthProviders ¶
func (c *Configurator) GetAuthOauthProviders() []OauthProvider
func (*Configurator) GetBuildEventProxyHosts ¶
func (c *Configurator) GetBuildEventProxyHosts() []string
func (*Configurator) GetCacheDiskConfig ¶
func (c *Configurator) GetCacheDiskConfig() *DiskConfig
func (*Configurator) GetCacheGCSConfig ¶
func (c *Configurator) GetCacheGCSConfig() *GCSCacheConfig
func (*Configurator) GetCacheInMemory ¶
func (c *Configurator) GetCacheInMemory() bool
func (*Configurator) GetCacheMaxSizeBytes ¶
func (c *Configurator) GetCacheMaxSizeBytes() int64
func (*Configurator) GetCacheMemcacheTargets ¶
func (c *Configurator) GetCacheMemcacheTargets() []string
func (*Configurator) GetCacheRedisTarget ¶
func (c *Configurator) GetCacheRedisTarget() string
func (*Configurator) GetCacheS3Config ¶
func (c *Configurator) GetCacheS3Config() *S3CacheConfig
func (*Configurator) GetDBDataSource ¶
func (c *Configurator) GetDBDataSource() string
func (*Configurator) GetDBReadReplica ¶
func (c *Configurator) GetDBReadReplica() string
func (*Configurator) GetDefaultToDenseMode ¶
func (c *Configurator) GetDefaultToDenseMode() bool
func (*Configurator) GetExecutorConfig ¶
func (c *Configurator) GetExecutorConfig() *ExecutorConfig
func (*Configurator) GetGRPCMaxRecvMsgSizeBytes ¶
func (c *Configurator) GetGRPCMaxRecvMsgSizeBytes() int
func (*Configurator) GetGRPCOverHTTPPortEnabled ¶
func (c *Configurator) GetGRPCOverHTTPPortEnabled() bool
func (*Configurator) GetGithubConfig ¶
func (c *Configurator) GetGithubConfig() *GithubConfig
func (*Configurator) GetIntegrationsSlackConfig ¶
func (c *Configurator) GetIntegrationsSlackConfig() *SlackConfig
func (*Configurator) GetOrgConfig ¶
func (c *Configurator) GetOrgConfig() *OrgConfig
func (*Configurator) GetRemoteExecutionConfig ¶
func (c *Configurator) GetRemoteExecutionConfig() *RemoteExecutionConfig
func (*Configurator) GetSSLConfig ¶
func (c *Configurator) GetSSLConfig() *SSLConfig
func (*Configurator) GetStorageAWSS3Config ¶
func (c *Configurator) GetStorageAWSS3Config() *AwsS3Config
func (*Configurator) GetStorageChunkFileSizeBytes ¶
func (c *Configurator) GetStorageChunkFileSizeBytes() int
func (*Configurator) GetStorageDiskRootDir ¶
func (c *Configurator) GetStorageDiskRootDir() string
func (*Configurator) GetStorageGCSConfig ¶
func (c *Configurator) GetStorageGCSConfig() *GCSConfig
func (*Configurator) GetStorageTTLSeconds ¶
func (c *Configurator) GetStorageTTLSeconds() int
type DiskConfig ¶
type DiskConfig struct {
RootDirectory string `yaml:"root_directory" usage:"The root directory to store all blobs in, if using disk based storage."`
}
type ExecutorConfig ¶
type ExecutorConfig struct { AppTarget string `yaml:"app_target" usage:"The GRPC url of a buildbuddy app server."` RootDirectory string `yaml:"root_directory" usage:"The root directory to use for build files."` LocalCacheDirectory string `yaml:"local_cache_directory" usage:"A local on-disk cache directory."` LocalCacheSizeBytes int64 `yaml:"local_cache_size_bytes" usage:"The maximum size, in bytes, to use for the local on-disk cache"` DockerSocket string `yaml:"docker_socket" usage:"If set, run execution commands in docker using the provided socket."` }
type GCSCacheConfig ¶
type GCSCacheConfig struct { Bucket string `yaml:"bucket" usage:"The name of the GCS bucket to store cache files in."` CredentialsFile string `yaml:"credentials_file" usage:"A path to a JSON credentials file that will be used to authenticate to GCS."` ProjectID string `yaml:"project_id" usage:"The Google Cloud project ID of the project owning the above credentials and GCS bucket."` TTLDays int64 `yaml:"ttl_days" usage:"The period after which cache files should be TTLd. Disabled if 0."` }
type GCSConfig ¶
type GCSConfig struct { Bucket string `yaml:"bucket" usage:"The name of the GCS bucket to store build artifact files in."` CredentialsFile string `yaml:"credentials_file" usage:"A path to a JSON credentials file that will be used to authenticate to GCS."` ProjectID string `yaml:"project_id" usage:"The Google Cloud project ID of the project owning the above credentials and GCS bucket."` }
type GithubConfig ¶
type GithubConfig struct { ClientID string `yaml:"client_id" usage:"The client ID of your GitHub Oauth App. ** Enterprise only **"` ClientSecret string `yaml:"client_secret" usage:"The client secret of your GitHub Oauth App. ** Enterprise only **"` AccessToken string `yaml:"access_token" usage:"The GitHub access token used to post GitHub commit statuses. ** Enterprise only **"` StatusPerTestTarget bool `yaml:"status_per_test_target" usage:"If true, report status per test target. ** Enterprise only **"` }
type OauthProvider ¶
type RemoteExecutionConfig ¶
type S3CacheConfig ¶
type S3CacheConfig struct { Region string `yaml:"region" usage:"The AWS region."` Bucket string `yaml:"bucket" usage:"The AWS S3 bucket to store files in."` CredentialsProfile string `yaml:"credentials_profile" usage:"A custom credentials profile to use."` TTLDays int64 `yaml:"ttl_days" usage:"The period after which cache files should be TTLd. Disabled if 0."` }
type SSLConfig ¶
type SSLConfig struct { EnableSSL bool `yaml:"enable_ssl" usage:"Whether or not to enable SSL/TLS on gRPC connections (gRPCS)."` UseACME bool `` /* 149-byte string literal not displayed */ CertFile string `yaml:"cert_file" usage:"Path to a PEM encoded certificate file to use for TLS if not using ACME."` KeyFile string `yaml:"key_file" usage:"Path to a PEM encoded key file to use for TLS if not using ACME."` ClientCACertFile string `` /* 132-byte string literal not displayed */ ClientCAKeyFile string `` /* 135-byte string literal not displayed */ HostWhitelist []string `yaml:"host_whitelist" usage:"Cloud-Only"` }
type SlackConfig ¶
type SlackConfig struct {
WebhookURL string `yaml:"webhook_url" usage:"A Slack webhook url to post build update messages to."`
}
Click to show internal directories.
Click to hide internal directories.