Documentation
¶
Overview ¶
Package haus reads a yaml file describing docker architecture and generates from templates docker-compose and RepoTsar files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
Email string
Path string
Pwd string
Hausrepo string
Environments map[string]Environment
Variables map[string]string
}
Config represents the configurations in haus config file.
type DockerCfg ¶
type DockerCfg struct {
Build string `yaml:"build,omitempty"`
Cap_add []string `yaml:"cap_add,omitempty"`
Cap_drop []string `yaml:"cap_drop,omitempty"`
Command string `yaml:"command,omitempty"`
Dns []string `yaml:"dns,omitempty"`
Dns_search []string `yaml:"dns_search,omitempty"`
Domainname string `yaml:"domainname,omitempty"`
Entrypoint []string `yaml:"entrypoint,omitempty"`
Env_file []string `yaml:"env_file,omitempty"`
Environment []string `yaml:"environment,omitempty"`
Expose []string `yaml:"expose,omitempty"`
External_links []string `yaml:"external_links,omitempty"`
Hostname string `yaml:"hostname,omitempty"`
Image string `yaml:"image,omitempty"`
Links []string `yaml:"links,omitempty"`
Mem_limit string `yaml:"mem_limit,omitempty"`
Net string `yaml:"net,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Privileged string `yaml:"privileged,omitempty"`
Restart string `yaml:"restart,omitempty"`
Stdin_open string `yaml:"stdin_open,omitempty"`
Tty string `yaml:"tty,omitempty"`
User string `yaml:"user,omitempty"`
Volumes []string `yaml:"volumes,omitempty"`
Volumes_from []string `yaml:"volumes_from,omitempty"`
Working_dir string `yaml:"working_dir,omitempty"`
}
DockerCfg represents a single docker-compose config.
type DockerYml ¶
DockerYml represents a collection of docker-compose configs to be turned into YAML.
type Environment ¶
Environment represents a single environment from the haus config file.
type ParsedTmpl ¶
ParsedTmpl represents a collection of Repo and DockerCfgs created from haus templates.
type Repo ¶
Repo represents a single git repo definition.
func (*Repo) CreateLink ¶ added in v0.1.2
CreateLink creates symlink defined in Repo. Returns error.
type RepoYml ¶
RepoYml represents a collection of repos configs to be turned into YAML.
type Template ¶
type Template struct {
Path string
Pwd string
Image string
Name string
Branch string
Version string
Variables map[string]string
Env map[string]string
Parsed *ParsedTmpl
}
Template represents a single instance of a haus template file.
func (*Template) DockerCfgs ¶
DockerCfgs returns DockerCfgs stored in Template.
func (*Template) Parse ¶
func (t *Template) Parse() (ParsedTmpl, error)
Parse processes template files to create Repo and DockerCfgs, returns a ParsedTmpl.