Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerService ¶
type DockerService struct { ID ID // unique ID ADIdentifiers []string // identifiers on which templates will be matched Hosts map[string]string // network --> IP address Ports []int Pid int // Process identifier }
DockerService implements and store results from the Service interface
type Service ¶
type Service interface { GetID() ID GetADIdentifiers() ([]string, error) GetHosts() (map[string]string, error) GetPorts() ([]int, error) GetTags() ([]string, error) GetPid() (int, error) }
Service represents an application we can run a check against. It should be matched with a check template by the ConfigResolver using the ADIdentifiers field.
type ServiceListener ¶
type ServiceListener interface { Listen(newSvc, delSvc chan<- Service) Stop() }
ServiceListener monitors running services and triggers check (un)scheduling
It holds a cache of running services, listens to new/killed services and updates its cache, and the ConfigResolver with these events.
Click to show internal directories.
Click to hide internal directories.