Documentation
¶
Index ¶
- func ContainerWatchLogs(ctx context.Context, name string, writer io.Writer) error
- func GetContainer(name string) (*types.ContainerJSON, error)
- func GetEventsChannel() <-chan ContainerEvent
- func GetNetwork(networkID string) (*types.NetworkResource, error)
- func ListenEvents(cfg *model.Config) <-chan ContainerEvent
- func StartContainer(name string, cfg *model.Config) error
- func StopContainer(name string) error
- type ContainerEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerWatchLogs ¶
ContainerWatchLogs pipe logs from the container instance
func GetContainer ¶
func GetContainer(name string) (*types.ContainerJSON, error)
GetContainer return container info by name
func GetEventsChannel ¶
func GetEventsChannel() <-chan ContainerEvent
GetEventsChannel return the main channel reporting docker events
func GetNetwork ¶
func GetNetwork(networkID string) (*types.NetworkResource, error)
GetNetwork inspect a network by networkID
func ListenEvents ¶
func ListenEvents(cfg *model.Config) <-chan ContainerEvent
ListenEvents watches docker events an handle state modifications
func StartContainer ¶
StartContainer start a container
Types ¶
Click to show internal directories.
Click to hide internal directories.