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) IsDraining() bool
- func (svc *Service) IsTombstone() bool
- func (svc *Service) ListenerName() string
- func (mj *Service) MarshalJSON() ([]byte, error)
- func (mj *Service) MarshalJSONBuf(buf fflib.EncodingBuffer) error
- func (svc *Service) PortForServicePort(findPort int64, pType string) int64
- func (svc *Service) StatusString() string
- func (svc *Service) Tombstone()
- func (uj *Service) UnmarshalJSON(input []byte) error
- func (uj *Service) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
- func (svc *Service) Version() string
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func StatusString ¶
Types ¶
type Port ¶
func (*Port) MarshalJSON ¶ added in v1.3.0
func (*Port) MarshalJSONBuf ¶ added in v1.3.0
func (mj *Port) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*Port) UnmarshalJSON ¶ added in v1.3.0
func (*Port) UnmarshalJSONFFLexer ¶ added in v1.3.0
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 Decode ¶
Decode decodes the input data JSON into a *Service. If it fails, it returns a non-nil error
func ToService ¶
Format an APIContainers struct into a more compact struct we can ship over the wire in a broadcast.
func (*Service) Invalidates ¶
func (*Service) IsDraining ¶
func (*Service) IsTombstone ¶
func (*Service) ListenerName ¶ added in v1.3.0
ListenerName returns the string name this service should be identified by as a listener to Sidecar state
func (*Service) MarshalJSON ¶ added in v1.3.0
func (*Service) MarshalJSONBuf ¶ added in v1.3.0
func (mj *Service) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*Service) PortForServicePort ¶
Look up a (usually Docker) mapped Port for a service by ServicePort
func (*Service) StatusString ¶
func (*Service) UnmarshalJSON ¶ added in v1.3.0
func (*Service) UnmarshalJSONFFLexer ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.