Documentation
¶
Index ¶
- Variables
- func GetContainers(ctx context.Context, host string, quite bool, all bool) (*[]types.Container, error)
- func GetContainersCount(host string, all bool) (int, error)
- func GetDockerStats(ctx context.Context, host string, id string, cIndex int32)
- func RemoveContainer(ctx context.Context, host string, id string) error
- func StartContainer(ctx context.Context, host string, id string) error
- func StopContainer(ctx context.Context, host string, id string) error
- type StatsData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DoneCh is used to send a DONE signal DoneCh = make(chan struct{}) // StatsCh holds the container stats StatsCh = make(chan StatsData) // DoneSignalSent some signal DoneSignalSent = true )
Functions ¶
func GetContainers ¶
func GetContainers(ctx context.Context, host string, quite bool, all bool) (*[]types.Container, error)
GetContainers returns containers running on a host
func GetContainersCount ¶
GetContainersCount returns the number of containers running on a host
func GetDockerStats ¶
GetDockerStats returns CPU usage of a container
func RemoveContainer ¶
RemoveContainer removes a container in exited or created state
func StartContainer ¶
StartContainer starts a stopped or created container
Types ¶
Click to show internal directories.
Click to hide internal directories.