config

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 8 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	EnableAPI bool   `yaml:"enable_api" usage:"Whether or not to enable the BuildBuddy API."`
	APIKey    string `yaml:"api_key" usage:"The default API key to use for on-prem enterprise deploys with a single organization/group."`
}

type AwsS3Config

type AwsS3Config 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."`
}

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 OauthProvider struct {
	IssuerURL    string `yaml:"issuer_url" usage:"The issuer URL of this OIDC Provider."`
	ClientID     string `yaml:"client_id" usage:"The oauth client ID."`
	ClientSecret string `yaml:"client_secret" usage:""The oauth client secret.`
}

type OrgConfig

type OrgConfig struct {
	Name   string `yaml:"name" usage:"The name of your organization, which is displayed on your organization's build history."`
	Domain string `` /* 169-byte string literal not displayed */
}

type RemoteExecutionConfig

type RemoteExecutionConfig struct {
	EnableRemoteExec bool   `yaml:"enable_remote_exec" usage:"If true, enable remote-exec. ** Enterprise only **"`
	DefaultPoolName  string `yaml:"default_pool_name" usage:"The default executor pool to use if one is not specified."`
}

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."`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL