config

package
v0.0.0-...-c982c64 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Tz             string
	SitesDir       string
	DataDir        string
	MachineName    string
	DockerClientIp net.IP
	DockerDaemonIp net.IP
	UsersDir       string
}

Representation of the vagabond environment settings.

func NewEnvironment

func NewEnvironment() *Environment

Create and prepopulate a new environment based on settings

func (*Environment) Check

func (e *Environment) Check() error

Verify that environment variables are set properly

func (*Environment) GetMachine

func (e *Environment) GetMachine() *Machine

Get the docker machine instance for the environment.

func (*Environment) RequiresMachine

func (e *Environment) RequiresMachine() bool

Assert whether the environment requires docker machine to run

type Machine

type Machine struct {
	Name string
}

func NewMachine

func NewMachine(name string) *Machine

func (*Machine) Boot

func (m *Machine) Boot() *exec.Cmd

func (*Machine) BootOrDie

func (m *Machine) BootOrDie() (err error)

func (*Machine) Create

func (m *Machine) Create() *exec.Cmd

func (*Machine) Exec

func (m *Machine) Exec(cmd string) *exec.Cmd

func (*Machine) GetHostIp

func (m *Machine) GetHostIp() net.IP

func (*Machine) GetIp

func (m *Machine) GetIp() net.IP

func (*Machine) IsBooted

func (m *Machine) IsBooted() bool

func (*Machine) IsCreated

func (m *Machine) IsCreated() bool

func (*Machine) Reboot

func (m *Machine) Reboot() *exec.Cmd

func (*Machine) Scp

func (m *Machine) Scp(localFile string, remoteFile string) *exec.Cmd

Jump to

Keyboard shortcuts

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