Documentation ¶
Index ¶
- Variables
- func BackupContainer(containerID, outputPath string) (string, error)
- func CreateContainer(imageName, dbType, containerName string, externalPort int, password string, ...) (string, error)
- func DeleteContainer(containerId string, deleteVolume bool) error
- func DockerClient() (*client.Client, error)
- func InspectContainer(containerId string) (types.ContainerJSON, error)
- func PullImage(imageName string) error
- func ShellConnect(containerID string) error
- func StreamLogs(containerId string)
- type ContainerStats
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctx context.Context
Functions ¶
func BackupContainer ¶
func CreateContainer ¶
func DeleteContainer ¶
func DockerClient ¶
func InspectContainer ¶
func InspectContainer(containerId string) (types.ContainerJSON, error)
func ShellConnect ¶
func StreamLogs ¶
func StreamLogs(containerId string)
Types ¶
type ContainerStats ¶
type ContainerStats struct { CPUPercentage float64 MemoryUsage uint64 MemoryLimit uint64 StorageUsage uint64 StorageLimit uint64 }
func GetContainerStats ¶
func GetContainerStats(containerId string) (*ContainerStats, error)
Click to show internal directories.
Click to hide internal directories.