fleet

package
v0.0.0-...-b33a62e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2015 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSystemdFiles

func CreateSystemdFiles(system SystemdService, outdir string) []string

func Deploy

func Deploy(fname string, address string) error

func Dns2Path

func Dns2Path(args ...interface{}) string

func HasId

func HasId(str string, id int64) int64

func LinkExpander

func LinkExpander(l Link, id int64) string

func Lower

func Lower(args ...interface{}) string

func PortExpander

func PortExpander(args ...interface{}) string

func ReplaceId

func ReplaceId(str string, id int64) string

func VarExpander

func VarExpander(varlist []Env) string

func VolumeExpander

func VolumeExpander(args ...interface{}) string

Types

type Env

type Env struct {
	Name  string
	Value string
}
type Link struct {
	Name  string
	Alias string
}

type Port

type Port struct {
	HostPort      string
	ContainerPort string
	Protocol      string
}

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

type Volume

type Volume struct {
	LocalDir     string
	ContainerDir string
}

Jump to

Keyboard shortcuts

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