config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigPath         = ".docker-env/config.yml"
	ConfigPathOverride = ".docker-env/config.override.yml"
)

Defaults for the config

Functions

This section is empty.

Types

type Config

type Config struct {
	Path                   string
	ComposeProjectName     string   `yaml:"compose_project_name"`
	ComposeFile            string   `yaml:"compose_file"`
	ComposeFileOverride    string   `yaml:"compose_file_override"`
	ComposeProgress        string   `yaml:"compose_progress"`
	ComposeDefaultProfile  string   `yaml:"compose_default_profile"`
	ComposeSidecarProfile  string   `yaml:"compose_sidecar_profile"`
	EnvFiles               []string `yaml:"env_files"`
	TerminalDefaultService string   `yaml:"terminal_default_service"`
	TerminalDefaultCommand string   `yaml:"terminal_default_command"`
	VscodeDefaultService   string   `yaml:"vscode_default_service"`
	VscodeDefaultDir       string   `yaml:"vscode_default_dir"`
	AwsLogin               bool     `yaml:"aws_login"`
	AwsRegion              string   `yaml:"aws_region"`
	AwsRepository          string   `yaml:"aws_repository"`
	PreStartHooks          []string `yaml:"pre_start_hooks"`
	PostStartHooks         []string `yaml:"post_start_hooks"`
	PostStopHooks          []string `yaml:"post_stop_hooks"`
	RequiredVars           []string `yaml:"required_vars"`
	ShowExecutedCommands   bool     `yaml:"show_executed_commands"`
}

func NewConfig

func NewConfig() *Config

func (*Config) LoadConfig

func (cfg *Config) LoadConfig(path string) error

func (*Config) ShowConfig

func (c *Config) ShowConfig() error

Jump to

Keyboard shortcuts

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