Documentation
¶
Index ¶
- Constants
- func Defaults()
- type DockerMachine
- type DockerMachineDriver
- type Schema
- func (s *Schema) Bin(file string) string
- func (s *Schema) ConfigDir(eventID string) (finalPath string, err error)
- func (s *Schema) DmBin() string
- func (s *Schema) EvtFile(evtID string) (path string, err error)
- func (s *Schema) Evts(evtID string) (string, error)
- func (s *Schema) ExtraAccountConfigDir(eventID, name string) (finalPath string, err error)
- func (s *Schema) NodeConfigDir(eventID, nodeID string) (configDir string, err error)
- func (s *Schema) Tmp() (string, error)
- type WebSchema
Constants ¶
View Source
const ( BinDir = "bin" TmpDir = "tmp" EvtsDir = "evts" EvtDescriptorFile = "event.json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerMachine ¶
type DockerMachine struct { Version string `mapstructure:"version"` BinaryURL string `mapstructure:"binary_url"` Binary string `mapstructure:"binary"` Drivers map[string]DockerMachineDriver `mapstructure:"drivers"` Env []string `mapstructure:"env"` }
DockerMachine describes the host's docker-machine binary
type DockerMachineDriver ¶
type DockerMachineDriver struct { Version string `mapstructure:"version"` BinaryURL string `mapstructure:"binary_url"` Binary string `mapstructure:"binary"` Params []string `mapstructure:"params"` Env []string `mapstructure:"env"` }
DockerMachineDriver describes the location and environment params of any optional (non-built-in) docker-machine drivers on the host system
type Schema ¶
type Schema struct { Workspace string `mapstructure:"workspace"` DockerMachine DockerMachine `mapstructure:"docker_machine"` Web WebSchema `mapstructure:"web"` // the following are used at runtime RuntimeStartedAt time.Time `mapstructure:"-"` RuntimeVersion string `mapstructure:"-"` }
Schema describes the layout of config.yaml
func (*Schema) ConfigDir ¶ added in v1.0.1
ConfigDir returns /tmp/workspace/evts/drop-28b10d4eff415a7b0b2c/nodeconfigs
func (*Schema) EvtFile ¶ added in v1.0.1
EvtFile returns "/tmp/workspace/evts/<EVTID>/event.json", i.e. the absolute path to the event descriptor file
func (*Schema) ExtraAccountConfigDir ¶ added in v1.0.1
ExtraAccountConfigDir returns /tmp/workspace/evts/drop-28b10d4eff415a7b0b2c/nodeconfig/extra_accounts
func (*Schema) NodeConfigDir ¶ added in v1.0.1
NodeConfigDir returns /tmp/workspace/evts/drop-28b10d4eff415a7b0b2c/nodeconfig/0
Click to show internal directories.
Click to hide internal directories.