config

package
v2.0.0-...-b8f9eda Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name string `yaml:-`

	Base_Image      string            `yaml:,omitempty`
	Update_Pups     bool              `yaml:,omitempty`
	Run_Image       string            `yaml:,omitempty`
	Boot_Command    string            `yaml:,omitempty`
	No_Boot_Command bool              `yaml:,omitempty`
	Docker_Args     string            `yaml:,omitempty`
	Templates       []string          `yaml:templates,omitempty`
	Expose          []string          `yaml:expose,omitempty`
	Params          map[string]string `yaml:params,omitempty`
	Env             map[string]string `yaml:env,omitempty`
	Labels          map[string]string `yaml:labels,omitempty`
	Volumes         []struct {
		Volume struct {
			Host  string `yaml:host`
			Guest string `yaml:guest`
		} `yaml:volume`
	} `yaml:volumes,omitempty`
	Links []struct {
		Link struct {
			Name  string `yaml:name`
			Alias string `yaml:alias`
		} `yaml:link`
	} `yaml:links,omitempty`
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig(dir string, configName string, includeTemplates bool, templatesDir string) (*Config, error)

func (*Config) BootCommand

func (config *Config) BootCommand() string

func (*Config) DockerArgs

func (config *Config) DockerArgs() []string

func (*Config) DockerHostname

func (config *Config) DockerHostname(defaultHostname string) string

func (*Config) Dockerfile

func (config *Config) Dockerfile(pupsArgs string, bakeEnv bool) string

func (*Config) EnvArray

func (config *Config) EnvArray(includeKnownSecrets bool) []string

func (*Config) RunImage

func (config *Config) RunImage() string

func (*Config) WriteYamlConfig

func (config *Config) WriteYamlConfig(dir string) error

func (*Config) Yaml

func (config *Config) Yaml() string

Jump to

Keyboard shortcuts

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