Documentation
¶
Index ¶
- func GetList(s mapset.Set) (res []string)
- type ContainerRequest
- type Inventory
- func (inv *Inventory) CheckRequests()
- func (i *Inventory) GetItem(key string) (out Response, err error)
- func (i *Inventory) HandleRequest(req ContainerRequest) (err error)
- func (i *Inventory) ServeRequest(req ContainerRequest) (err error)
- func (i *Inventory) SetItem(key string, item *types.ContainerJSON, ips []string) (err error)
- type Plugin
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerRequest ¶
type ContainerRequest struct { IssuedAt time.Time Source string Timeout time.Duration Name string ID string IP string Back chan Response }
func NewContainerRequest ¶
func NewContainerRequest(src string, to time.Duration) ContainerRequest
func NewIDContainerRequest ¶
func NewIDContainerRequest(src, id string) ContainerRequest
func NewIPContainerRequest ¶
func NewIPContainerRequest(src, ip string) ContainerRequest
func NewNameContainerRequest ¶
func NewNameContainerRequest(src, name string) ContainerRequest
func (ContainerRequest) Equal ¶
func (this ContainerRequest) Equal(other Response) (err error)
func (ContainerRequest) EqualCnt ¶ added in v0.3.2
func (this ContainerRequest) EqualCnt(other *types.ContainerJSON) (err error)
func (ContainerRequest) EqualIPS ¶ added in v0.3.2
func (this ContainerRequest) EqualIPS(ips []string) (err error)
func (*ContainerRequest) TimedOut ¶
func (cr *ContainerRequest) TimedOut() bool
type Inventory ¶
type Inventory struct { Version string Data map[string]Response PendingRequests []ContainerRequest // contains filtered or unexported fields }
func NewInventory ¶
func NewInventory() Inventory
func (*Inventory) CheckRequests ¶
func (inv *Inventory) CheckRequests()
CheckRequests iterates over all requests and responses if the request can be fulfilled
func (*Inventory) HandleRequest ¶
func (i *Inventory) HandleRequest(req ContainerRequest) (err error)
func (*Inventory) ServeRequest ¶
func (i *Inventory) ServeRequest(req ContainerRequest) (err error)
type Plugin ¶
type Plugin struct { *qtypes_plugin.Plugin Inventory Inventory // contains filtered or unexported fields }
func (*Plugin) AddNetworkIPs ¶ added in v0.3.2
func (p *Plugin) AddNetworkIPs(ips mapset.Set, container *types.ContainerJSON) (res []string, err error)
func (*Plugin) LookUpContainer ¶ added in v0.3.3
func (p *Plugin) LookUpContainer(cnt *types.ContainerJSON)
type Response ¶
type Response struct { Container *types.ContainerJSON Ips []string Error error }
func NewFAILResponse ¶
func NewOKResponse ¶
func NewOKResponse(cnt *types.ContainerJSON, ips []string) Response
Click to show internal directories.
Click to hide internal directories.