haus

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2015 License: Apache-2.0 Imports: 8 Imported by: 1

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
	Email        string
	Path         string
	Pwd          string
	Environments map[string]Environment
}

func ReadConfig

func ReadConfig(filename string) (*Config, error)

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"`
	Cpu_shares     string   `yaml:"cpu_shares,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"`
}

type DockerYml

type DockerYml struct {
	Cfg map[string]DockerCfg
}

func (*DockerYml) AddCfg

func (y *DockerYml) AddCfg(d map[string]DockerCfg)

func (*DockerYml) Cfgs

func (y *DockerYml) Cfgs() map[string]DockerCfg

func (*DockerYml) WriteYml

func (y *DockerYml) WriteYml(filename string) (string, error)

Write Yaml file

type Environment

type Environment struct {
	Name         string
	Requirements []string
	Variables    map[string]string
}

type Haus

type Haus struct {
	Config Config
}

func (*Haus) Run

func (h *Haus) Run() error

type ParsedTmpl

type ParsedTmpl struct {
	Repotsar map[string]Repo
	Docker   map[string]DockerCfg
}

type Repo

type Repo struct {
	URL    string
	Path   string
	Branch string
}

func (*Repo) CloneRepo

func (r *Repo) CloneRepo(n string) error

type RepoYml

type RepoYml struct {
	Signature Signature
	Repos     map[string]Repo
}

func (*RepoYml) AddCfg

func (y *RepoYml) AddCfg(r map[string]Repo)

func (*RepoYml) WriteYml

func (y *RepoYml) WriteYml(filename string) (string, error)

Write Yaml file

type Signature

type Signature struct {
	Name  string
	Email string
}

type Template

type Template struct {
	Path      string
	Pwd       string
	Image     string
	Name      string
	Branch    string
	Version   string
	Variables map[string]string
	Parsed    *ParsedTmpl
}

func (*Template) DockerCfgs

func (t *Template) DockerCfgs() (map[string]DockerCfg, error)

func (*Template) Parse

func (t *Template) Parse() (ParsedTmpl, error)

func (*Template) RepoTsarCfgs

func (t *Template) RepoTsarCfgs() (map[string]Repo, error)

Jump to

Keyboard shortcuts

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