Documentation ¶
Index ¶
- Constants
- func StatusString(status int) string
- type Port
- type Service
- func (svc Service) Encode() ([]byte, error)
- func (svc *Service) Format() string
- func (svc *Service) Invalidates(otherSvc *Service) bool
- func (svc *Service) IsAlive() bool
- func (svc *Service) IsTombstone() bool
- func (svc *Service) PortForServicePort(findPort int64, pType string) int64
- func (svc *Service) StatusString() string
- func (svc *Service) Tombstone()
Constants ¶
View Source
const ( ALIVE = iota TOMBSTONE = iota UNHEALTHY = iota UNKNOWN = iota )
Variables ¶
This section is empty.
Functions ¶
func StatusString ¶
Types ¶
type Service ¶
type Service struct { ID string Name string Image string Created time.Time Hostname string Ports []Port Updated time.Time ProxyMode string Status int }
func ToService ¶
func ToService(container *docker.APIContainers) Service
Format an APIContainers struct into a more compact struct we can ship over the wire in a broadcast.
func (*Service) Invalidates ¶
func (*Service) IsTombstone ¶
func (*Service) PortForServicePort ¶
Look up a (usually Docker) mapped Port for a service by ServicePort
func (*Service) StatusString ¶
Click to show internal directories.
Click to hide internal directories.