Documentation
¶
Index ¶
- func CreateSystemdFiles(system SystemdService, outdir string) []string
- func Deploy(fname string, address string) error
- func Dns2Path(args ...interface{}) string
- func HasId(str string, id int64) int64
- func LinkExpander(l Link, id int64) string
- func Lower(args ...interface{}) string
- func PortExpander(args ...interface{}) string
- func ReplaceId(str string, id int64) string
- func VarExpander(varlist []Env) string
- func VolumeExpander(args ...interface{}) string
- type Env
- type Link
- type Port
- type SystemdService
- type SystemdServiceList
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSystemdFiles ¶
func CreateSystemdFiles(system SystemdService, outdir string) []string
func LinkExpander ¶
func PortExpander ¶
func PortExpander(args ...interface{}) string
func VarExpander ¶
func VolumeExpander ¶
func VolumeExpander(args ...interface{}) string
Types ¶
type SystemdService ¶
type SystemdService struct { Id int64 Name string Description string Command string ImageName string Hostname string Domain string Proxy bool Iface string Conflicts []string Deps []string Ports []Port Volumes []Volume Variables []Env Links []Link Privileged bool Priority int HttpPort int Region string Memory string Instances int Global bool MachineID string MachineMetadata string }
type SystemdServiceList ¶
type SystemdServiceList struct { Services []SystemdService Instances int }
func (*SystemdServiceList) FromJSON ¶
func (q *SystemdServiceList) FromJSON(file io.Reader) (err error)
func (*SystemdServiceList) ToJSON ¶
func (s *SystemdServiceList) ToJSON(fname string) error
Click to show internal directories.
Click to hide internal directories.