Documentation ¶
Overview ¶
https://github.com/docker/cli/blob/master/cli/command/events_utils.go
Index ¶
- type Container
- func (c *Container) EventDie(h func(Container) error) <-chan error
- func (c *Container) EventStart(h func(Container) error) <-chan error
- func (c *Container) GetRunningList() ([]*Container, error)
- func (c *Container) GetVeths(name, sandboxKey string) ([]string, error)
- func (c *Container) RemoveVeth(name string) error
- type EventHandler
- type Veth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { ID string Name string Veth string TcRate string TcCeil string // contains filtered or unexported fields }
func (*Container) GetRunningList ¶
func (*Container) RemoveVeth ¶
type EventHandler ¶
type EventHandler interface { Handle(action string, h func(eventtypes.Message)) Watch(c <-chan eventtypes.Message) }
EventHandler is abstract interface for user to customize own handle functions of each type of events
func InitEventHandler ¶
func InitEventHandler() EventHandler
InitEventHandler initializes and returns an EventHandler
Click to show internal directories.
Click to hide internal directories.