cli_config

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnsupportedTypeErr = errors.New("Invalid env var config setting: value is an unsupported type.")
	CouldNotParseErr   = errors.New("Invalid env var config setting: failed to parse value")
	InvalidConfigErr   = errors.New("Invalid config file")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowDevelopmentDeploys bool              `yaml:"allow_development_deploys"`
	AskVaultPass            bool              `yaml:"ask_vault_pass"`
	DatabaseApp             string            `yaml:"database_app"`
	CheckForUpdates         bool              `yaml:"check_for_updates"`
	LoadPlugins             bool              `yaml:"load_plugins"`
	Open                    map[string]string `yaml:"open"`
	VirtualenvIntegration   bool              `yaml:"virtualenv_integration"`
	Vm                      VmConfig          `yaml:"vm"`
	Server                  ServerConfig      `yaml:"server"`
}

func NewConfig

func NewConfig(defaultConfig Config) Config

func (*Config) LoadEnv

func (c *Config) LoadEnv(prefix string) error

func (*Config) LoadFile

func (c *Config) LoadFile(path string) error

type ServerConfig added in v1.17.0

type ServerConfig struct {
	Provider string `yaml:"provider"`
}

type VmConfig added in v1.10.0

type VmConfig struct {
	Manager         string    `yaml:"manager"`
	HostsResolver   string    `yaml:"hosts_resolver"`
	Images          []VmImage `yaml:"images"`
	Ubuntu          string    `yaml:"ubuntu"`
	InstanceName    string    `yaml:"instance_name"`
	ForwardHttpPort bool      `yaml:"forward_http_port"`
}

type VmImage added in v1.10.0

type VmImage struct {
	Location string `yaml:"location"`
	Arch     string `yaml:"arch"`
}

Jump to

Keyboard shortcuts

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