Versions in this module Expand all Collapse all v0 v0.3.0 Feb 5, 2015 Changes in this version + var ErrBadSemVer = ACVersionError("SemVer is bad") + var ErrNoACKind = ACKindError("ACKind must be set") + var ErrNoEmptyUUID = errors.New("UUID cannot be empty") + var ErrNoZeroSemVer = ACVersionError("SemVer cannot be zero") + var ValidOSArch = map[string][]string + func ShortHash(hash string) string + type ACKind string + func (a *ACKind) UnmarshalJSON(data []byte) error + func (a ACKind) MarshalJSON() ([]byte, error) + func (a ACKind) String() string + type ACKindError string + func (e ACKindError) Error() string + type ACName string + func NewACName(s string) (*ACName, error) + func (n *ACName) MarshalJSON() ([]byte, error) + func (n *ACName) Set(s string) error + func (n *ACName) UnmarshalJSON(data []byte) error + func (n ACName) Empty() bool + func (n ACName) Equals(o ACName) bool + func (n ACName) String() string + type ACNameError string + func (e ACNameError) Error() string + type ACVersionError string + func (e ACVersionError) Error() string + type AMStartedOnError string + func (e AMStartedOnError) Error() string + type Annotation struct + Name ACName + Value string + type Annotations []Annotation + func (a *Annotations) Set(name ACName, value string) + func (a *Annotations) UnmarshalJSON(data []byte) error + func (a Annotations) Get(name string) (val string, ok bool) + func (a Annotations) MarshalJSON() ([]byte, error) + type App struct + Environment Environment + EventHandlers []EventHandler + Exec Exec + Group string + Isolators []Isolator + MountPoints []MountPoint + Ports []Port + User string + WorkingDirectory string + func (a *App) UnmarshalJSON(data []byte) error + func (a App) MarshalJSON() ([]byte, error) + type Date time.Time + func NewDate(s string) (*Date, error) + func (d *Date) UnmarshalJSON(data []byte) error + func (d Date) MarshalJSON() ([]byte, error) + func (d Date) String() string + type Dependencies []Dependency + type Dependency struct + App ACName + ImageID *Hash + Labels Labels + func (d *Dependency) UnmarshalJSON(data []byte) error + func (d Dependency) MarshalJSON() ([]byte, error) + type Environment []EnvironmentVariable + func (e *Environment) Set(name string, value string) + func (e *Environment) UnmarshalJSON(data []byte) error + func (e Environment) Get(name string) (value string, ok bool) + func (e Environment) MarshalJSON() ([]byte, error) + type EnvironmentVariable struct + Name string + Value string + type EventHandler struct + Exec Exec + Name string + func (e *EventHandler) UnmarshalJSON(data []byte) error + func (e EventHandler) MarshalJSON() ([]byte, error) + type Exec []string + func (e *Exec) UnmarshalJSON(data []byte) error + func (e Exec) MarshalJSON() ([]byte, error) + type Hash struct + Val string + func NewHash(s string) (*Hash, error) + func NewHashSHA512(b []byte) *Hash + func (h *Hash) Set(s string) error + func (h *Hash) UnmarshalJSON(data []byte) error + func (h Hash) Empty() bool + func (h Hash) MarshalJSON() ([]byte, error) + func (h Hash) String() string + type Isolator struct + Name ACName + Val string + type Label struct + Name ACName + Value string + type Labels []Label + func (l *Labels) UnmarshalJSON(data []byte) error + func (l Labels) Get(name string) (val string, ok bool) + func (l Labels) MarshalJSON() ([]byte, error) + type MountPoint struct + Name ACName + Path string + ReadOnly bool + type Port struct + Name ACName + Port uint + Protocol string + SocketActivated bool + type SemVer semver.Version + func NewSemVer(s string) (*SemVer, error) + func (sv *SemVer) UnmarshalJSON(data []byte) error + func (sv SemVer) Empty() bool + func (sv SemVer) MarshalJSON() ([]byte, error) + func (sv SemVer) String() string + type URL url.URL + func NewURL(s string) (*URL, error) + func (u *URL) UnmarshalJSON(data []byte) error + func (u URL) MarshalJSON() ([]byte, error) + func (u URL) String() string + type UUID [16]byte + func NewUUID(s string) (*UUID, error) + func (u *UUID) Set(s string) error + func (u *UUID) UnmarshalJSON(data []byte) error + func (u UUID) Empty() bool + func (u UUID) MarshalJSON() ([]byte, error) + func (u UUID) String() string + type Volume struct + Kind string + Name ACName + ReadOnly bool + Source string + func VolumeFromString(vp string) (*Volume, error) + func (v *Volume) UnmarshalJSON(data []byte) error + func (v Volume) MarshalJSON() ([]byte, error) + func (v Volume) String() string