config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0, MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvTestgroundHomeDir = "TESTGROUND_HOME"

	DefaultListenAddr = "localhost:8042"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	AccessKeyID     string `toml:"access_key_id"`
	SecretAccessKey string `toml:"secret_access_key"`
	Region          string `toml:"region"`
}

type ClientConfig

type ClientConfig struct {
	Endpoint string `toml:"endpoint"`
}

type CoalescedConfig

type CoalescedConfig []map[string]interface{}

func (CoalescedConfig) Append

func (c CoalescedConfig) Append(in map[string]interface{}) CoalescedConfig

func (CoalescedConfig) CoalesceIntoType

func (c CoalescedConfig) CoalesceIntoType(typ reflect.Type) (interface{}, error)

type ConfigMap

type ConfigMap map[string]interface{}

type DaemonConfig

type DaemonConfig struct {
	Listen string `toml:"listen"`
}

type Directories

type Directories struct {
	// contains filtered or unexported fields
}

func (Directories) Home

func (d Directories) Home() string

func (Directories) Outputs

func (d Directories) Outputs() string

func (Directories) Plans

func (d Directories) Plans() string

func (Directories) SDKs

func (d Directories) SDKs() string

func (Directories) Work

func (d Directories) Work() string

type DockerHubConfig

type DockerHubConfig struct {
	Repo        string `toml:"repo"`
	Username    string `toml:"username"`
	AccessToken string `toml:"access_token"`
}

type EnvConfig

type EnvConfig struct {
	AWS       AWSConfig            `toml:"aws"`
	DockerHub DockerHubConfig      `toml:"dockerhub"`
	Builders  map[string]ConfigMap `toml:"builders"`
	Runners   map[string]ConfigMap `toml:"runners"`
	Daemon    DaemonConfig         `toml:"daemon"`
	Client    ClientConfig         `toml:"client"`
	// contains filtered or unexported fields
}

EnvConfig contains the environment configuration. It is populated by coalescing values from these sources, in descending order of precedence:

  1. environment variables.
  2. env.toml.
  3. default fallbacks.

func (EnvConfig) Dirs

func (e EnvConfig) Dirs() Directories

func (*EnvConfig) Load

func (e *EnvConfig) Load() error

Jump to

Keyboard shortcuts

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