Versions in this module Expand all Collapse all v0 v0.5.3 May 28, 2015 v0.5.2 May 19, 2015 Changes in this version + const LinuxCapabilitiesRetainSetName + const LinuxCapabilitiesRevokeSetName + const ResourceBlockBandwidthName + const ResourceBlockIOPSName + const ResourceCPUName + const ResourceMemoryName + const ResourceNetworkBandwidthName + var ErrBadSemVer = ACVersionError("SemVer is bad") + var ErrDefaultRequired = errors.New("default must be true") + var ErrDefaultTrue = errors.New("default must be false") + var ErrEmptyACName = ACNameError("ACName cannot be empty") + var ErrInvalidChar = ACNameError(...) + var ErrInvalidEdge = ACNameError(...) + var ErrNoACKind = ACKindError("ACKind must be set") + var ErrNoEmptyUUID = errors.New("UUID cannot be empty") + var ErrNoZeroSemVer = ACVersionError("SemVer cannot be zero") + var ErrRequestNonEmpty = errors.New("request not supported by this resource, must be empty") + var ValidACName = regexp.MustCompile("^[a-z0-9]+([-./][a-z0-9]+)*$") + var ValidOSArch = map[string][]string + func AddIsolatorValueConstructor(n ACName, i IsolatorValueConstructor) + func SanitizeACName(s string) (string, error) + 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 InvalidACKindError(kind ACKind) ACKindError + func (e ACKindError) Error() string + type ACName string + func MustACName(s string) *ACName + func NewACName(s string) (*ACName, 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) MarshalJSON() ([]byte, error) + func (n ACName) String() string + type ACNameError string + func (e ACNameError) Error() string + type ACVersionError string + func (e ACVersionError) 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 Isolators + 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 ExposedPort struct + HostPort uint + Name ACName + 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 + ValueRaw *json.RawMessage + func (i *Isolator) UnmarshalJSON(b []byte) error + func (i *Isolator) Value() IsolatorValue + type IsolatorValue interface + AssertValid func() error + UnmarshalJSON func(b []byte) error + func NewLinuxCapabilitiesRetainSet() IsolatorValue + func NewLinuxCapabilitiesRevokeSet() IsolatorValue + func NewResourceBlockBandwidth() IsolatorValue + func NewResourceBlockIOPS() IsolatorValue + func NewResourceCPU() IsolatorValue + func NewResourceMemory() IsolatorValue + func NewResourceNetworkBandwidth() IsolatorValue + type IsolatorValueConstructor func() IsolatorValue + type Isolators []Isolator + func (is *Isolators) GetByName(name ACName) *Isolator + func (is *Isolators) Unrecognized() Isolators + type Label struct + Name ACName + Value string + type Labels []Label + func LabelsFromMap(labelsMap map[ACName]string) (Labels, error) + func (l *Labels) UnmarshalJSON(data []byte) error + func (l Labels) Get(name string) (val string, ok bool) + func (l Labels) MarshalJSON() ([]byte, error) + func (l Labels) ToMap() map[ACName]string + type LinuxCapabilitiesRetainSet struct + func (l *LinuxCapabilitiesRetainSet) UnmarshalJSON(b []byte) error + func (l LinuxCapabilitiesRetainSet) AssertValid() error + func (l LinuxCapabilitiesRetainSet) Set() []LinuxCapability + type LinuxCapabilitiesRevokeSet struct + func (l *LinuxCapabilitiesRevokeSet) UnmarshalJSON(b []byte) error + func (l LinuxCapabilitiesRevokeSet) AssertValid() error + func (l LinuxCapabilitiesRevokeSet) Set() []LinuxCapability + type LinuxCapabilitiesSet interface + AssertValid func() error + Set func() []LinuxCapability + type LinuxCapability string + type MountPoint struct + Name ACName + Path string + ReadOnly bool + func MountPointFromString(mp string) (*MountPoint, error) + type Port struct + Name ACName + Port uint + Protocol string + SocketActivated bool + type Resource interface + Default func() bool + Limit func() *resource.Quantity + Request func() *resource.Quantity + type ResourceBase struct + func (r *ResourceBase) UnmarshalJSON(b []byte) error + func (r ResourceBase) AssertValid() error + func (r ResourceBase) Default() bool + func (r ResourceBase) Limit() *resource.Quantity + func (r ResourceBase) Request() *resource.Quantity + type ResourceBlockBandwidth struct + func (r ResourceBlockBandwidth) AssertValid() error + type ResourceBlockIOPS struct + func (r ResourceBlockIOPS) AssertValid() error + type ResourceCPU struct + func (r ResourceCPU) AssertValid() error + type ResourceMemory struct + func (r ResourceMemory) AssertValid() error + type ResourceNetworkBandwidth struct + func (r ResourceNetworkBandwidth) AssertValid() error + 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