config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 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) 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) 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) GetDBDataSource

func (c *Configurator) GetDBDataSource() string

func (*Configurator) GetExecutorConfig

func (c *Configurator) GetExecutorConfig() *ExecutorConfig

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"`
	MaxExecutionTimeoutSeconds int64  `yaml:"max_execution_timeout_seconds"`
}

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 {
	Backends map[string]string `yaml:"backends"`
}

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

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