config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defaults

func Defaults()

Defaults configure defaults for the configuration

Types

type DockerMachine

type DockerMachine struct {
	Workspace  string                         `mapstructure:"workspace"`
	SearchPath []string                       `mapstructure:"search_path"`
	Version    string                         `mapstructure:"version"`
	BinaryURL  string                         `mapstructure:"binary_url"`
	Binary     string                         `mapstructure:"binary"`
	Drivers    map[string]DockerMachineDriver `mapstructure:"drivers"`
	Env        []string                       `mapstructure:"env"`
}

DockerMachine describes the host's docker-machine binary

type DockerMachineDriver

type DockerMachineDriver struct {
	Version   string   `mapstructure:"version"`
	BinaryURL string   `mapstructure:"binary_url"`
	Binary    string   `mapstructure:"binary"`
	Params    []string `mapstructure:"params"`
	Env       []string `mapstructure:"env"`
}

DockerMachineDriver describes the location and environment params of any optional (non-built-in) docker-machine drivers on the host system

type Schema

type Schema struct {
	Workspace              string                `mapstructure:"workspace"`
	DockerMachine          DockerMachine         `mapstructure:"docker_machine"`
	DefaultPayloadLocation model.PayloadLocation `mapstructure:"default_payload_location"`
	Web                    WebSchema             `mapstructure:"web"`
	// the following are used at runtime
	RuntimeStartedAt time.Time `mapstructure:"-"`
	RuntimeVersion   string    `mapstructure:"-"`
}

Schema describes the layout of config.yaml

type WebSchema

type WebSchema struct {
	ListenAddress   string `mapstructure:"listen_address"`
	DefaultProvider string `mapstructure:"default_provider"`
	UsersDbFile     string `mapstructure:"users_db_file"`
}

WebSchema configuration for web

Jump to

Keyboard shortcuts

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