Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingRequired indicates a required field or value is missing. ErrMissingRequired = errors.New("missing required field") // ErrInvalidValue indicates a field has an invalid value. ErrInvalidValue = errors.New("invalid value") )
Functions ¶
Types ¶
type Application ¶
type Application struct {
Root string `yaml:"root" validate:"required"`
Files []string `yaml:"files"`
Profiles []string `yaml:"profiles"`
EnvFile []string `yaml:"env-file"`
Environment *Environment `yaml:"environment"`
Secrets *Secrets `yaml:"secrets"`
Project *Project `yaml:"project"`
EnvInline []string `yaml:"-"`
SopsSecrets []string `yaml:"-"`
}
type Config ¶
type Config struct {
Docker DockerConfig `yaml:"docker"`
Sops *SopsConfig `yaml:"sops"`
Secrets *Secrets `yaml:"secrets"`
Environment *Environment `yaml:"environment"`
Applications map[string]Application `yaml:"applications" validate:"dive"`
Networks map[string]TopLevelResourceSpec `yaml:"networks"`
Volumes map[string]TopLevelResourceSpec `yaml:"volumes"`
Filesets map[string]FilesetSpec `yaml:"filesets"`
BaseDir string `yaml:"-"`
}
Config is the root desired-state structure parsed from YAML.
type DockerConfig ¶
type Environment ¶
Environment holds environment file references
type FilesetSpec ¶
type FilesetSpec struct {
Source string `yaml:"source"`
TargetVolume string `yaml:"target_volume"`
TargetPath string `yaml:"target_path"`
RestartServices []string `yaml:"restart_services"`
Exclude []string `yaml:"exclude"`
SourceAbs string `yaml:"-"`
}
FilesetSpec defines a local directory to sync into a docker volume at a target path.
type SopsAgeConfig ¶
type SopsAgeConfig struct {
KeyFile string `yaml:"key_file"`
}
type SopsConfig ¶
type SopsConfig struct {
Age *SopsAgeConfig `yaml:"age"`
Recipients []string `yaml:"recipients"`
}
SopsConfig configures SOPS provider(s)
type TopLevelResourceSpec ¶
type TopLevelResourceSpec struct{}
TopLevelResourceSpec mirrors YAML for volumes/networks.
Click to show internal directories.
Click to hide internal directories.