config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 6 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"`
	APIKey    string `yaml:"api_key"`
}

type AwsS3Config

type AwsS3Config struct {
	Region             string `yaml:"region"`
	Bucket             string `yaml:"bucket"`
	CredentialsProfile string `yaml:"credentials_profile"`
}

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) 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) GetDBDataSource

func (c *Configurator) GetDBDataSource() string

func (*Configurator) GetDefaultToDenseMode

func (c *Configurator) GetDefaultToDenseMode() bool

func (*Configurator) GetExecutorConfig

func (c *Configurator) GetExecutorConfig() *ExecutorConfig

func (*Configurator) GetGRPCOverHTTPPortEnabled

func (c *Configurator) GetGRPCOverHTTPPortEnabled() bool

func (*Configurator) GetIntegrationsSlackConfig

func (c *Configurator) GetIntegrationsSlackConfig() *SlackConfig

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

type ExecutorConfig

type ExecutorConfig struct {
	RootDirectory       string `yaml:"root_directory"`
	LocalCacheDirectory string `yaml:"local_cache_directory"`
	LocalCacheSizeBytes int64  `yaml:"local_cache_size_bytes"`
	CacheTarget         string `yaml:"cache_target"`
}

type GCSCacheConfig

type GCSCacheConfig struct {
	Bucket          string `yaml:"bucket"`
	CredentialsFile string `yaml:"credentials_file"`
	ProjectID       string `yaml:"project_id"`
	TTLDays         int64  `yaml:"ttl_days"`
}

type GCSConfig

type GCSConfig struct {
	Bucket          string `yaml:"bucket"`
	CredentialsFile string `yaml:"credentials_file"`
	ProjectID       string `yaml:"project_id"`
}

type OauthProvider

type OauthProvider struct {
	IssuerURL    string `yaml:"issuer_url"`
	ClientID     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`
}

type RemoteExecutionConfig

type RemoteExecutionConfig struct {
	RemoteExecutionTargets []RemoteExecutionTarget `yaml:"remote_execution_targets"`
}

type RemoteExecutionTarget added in v1.0.5

type RemoteExecutionTarget struct {
	Target                     string            `yaml:"target"`
	Properties                 map[string]string `yaml:"properties"`
	MaxExecutionTimeoutSeconds int64             `yaml:"max_execution_timeout_seconds"`
	DisableStreaming           bool              `yaml:"disable_streaming"`
}

type SSLConfig

type SSLConfig struct {
	EnableSSL        bool     `yaml:"enable_ssl"`
	UseACME          bool     `yaml:"use_acme"`
	CertFile         string   `yaml:"cert_file"`
	KeyFile          string   `yaml:"key_file"`
	ClientCACertFile string   `yaml:"client_ca_cert_file"`
	ClientCAKeyFile  string   `yaml:"client_ca_key_file"`
	HostWhitelist    []string `yaml:"host_whitelist"`
}

type SlackConfig

type SlackConfig struct {
	WebhookURL string `yaml:"webhook_url"`
}

Jump to

Keyboard shortcuts

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