Documentation ¶
Index ¶
- Constants
- func CmdBuild(targets []string, config *Config) error
- func CmdDestroy(config *Config) error
- func CmdDrop(targets []string, config *Config) error
- func CmdEtcdGet(key string, config *Config) error
- func CmdEtcdPut(key string, val string, config *Config) error
- func CmdInject(target string, cmds []string, config *Config) error
- func CmdPs(targets []string, config *Config) error
- func CmdRun(target string, runVol string, config *Config) (int, error)
- func CmdStatus(targets []string, config *Config) error
- func CmdStop(targets []string, config *Config) error
- func CmdWipe(targets []string, config *Config) error
- func NewSourceDirChecker(t time.Time) *sourceDirChecker
- type Artifact
- type BuildOpts
- type CodeVolume
- type Config
- type Container
- type Extraction
- type GenericBuild
- type GoBuild
- type TopologyEntry
Constants ¶
const ( NEVER stopPolicy = iota FRESH ALWAYS DONT startPolicy = iota RESTART CONTINUE )
const ( CONTAINERS = "containers" IPS = "ips" PORTS = "ports" )
const TIME_FORMAT = "01/02/06-03:04PM"
Variables ¶
This section is empty.
Functions ¶
func CmdBuild ¶
CmdBuild builds all the targets you supplied, or all the final results if you don't supply anything. This is the analogue of CmdRun.
func CmdDestroy ¶
CmdDestroy stops and removes all containers, and removes all images
func CmdEtcdGet ¶
CmdEtcdGet is used to retrieve a value from Etcd, given it's full key path
func CmdEtcdPut ¶
CmdEtcdPut is used to store a value in Etcd at the given it's full key path
func CmdRun ¶
CmdRun is the 'run' entry point of the program with the targets filled in and a working helper.
func NewSourceDirChecker ¶
Types ¶
type CodeVolume ¶
type Config ¶
type Config struct { DockerBuildOptions BuildOpts CodeVolumes []*CodeVolume Containers []*Container GoBuilds []*GoBuild Extractions []*Extraction GenericBuilds []*GenericBuild Topologies map[string][]*TopologyEntry // contains filtered or unexported fields }
func NewConfig ¶
func NewConfig(reader io.Reader, helper pickett_io.Helper, cli pickett_io.DockerCli, etcd pickett_io.EtcdClient) (*Config, error)
NewCofingFile creates a new instance of configuration, including all the parsing of the config file and validation checking on the items therein.
func (*Config) EntryPoints ¶
EntryPoints returns two lists, the list of buildable targets and the list of runnable topologies.