Documentation ¶
Index ¶
- func DecodeEvents(input io.Reader, ep eventProcessor) error
- func NewEventsCommand(dockerCli *command.DockerCli) *cobra.Command
- func NewInfoCommand(dockerCli *command.DockerCli) *cobra.Command
- func NewInspectCommand(dockerCli *command.DockerCli) *cobra.Command
- func NewSystemCommand(dockerCli *command.DockerCli) *cobra.Command
- func NewVersionCommand(dockerCli *command.DockerCli) *cobra.Command
- type EventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeEvents ¶
DecodeEvents decodes event from input stream
func NewEventsCommand ¶
NewEventsCommand creates a new cobra.Command for `docker events`
func NewInfoCommand ¶
NewInfoCommand creates a new cobra.Command for `docker info`
func NewInspectCommand ¶
NewInspectCommand creates a new cobra.Command for `docker inspect`
func NewSystemCommand ¶
NewSystemCommand returns a cobra command for `system` subcommands
Types ¶
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.