client

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ContainerID       string
	NetworkID         string
	ContainerName     string
	ContainerHostName string
	ContainerIP       string
	Status            string
	ContainerLabel    map[string]string
}

type CreateOptsForContainer

type CreateOptsForContainer struct {
	ImageName         string
	NetworkName       string
	ContainerName     string
	ContainerHostName string
	ContainerLabel    map[string]string
	Mount             []mount.Mount
}

type DockerInfo

type DockerInfo struct {
	CgroupDriver    string
	CgroupVersion   string
	StorageDriver   string
	MemoryLimit     bool
	PidsLimit       bool
	CPUShares       bool
	CPUNumber       int
	SecurityOptions []string
}

type ProviderService

type ProviderService interface {
	GetServerInfo() (*DockerInfo, error)
	RunContainer(opts *CreateOptsForContainer) (string, error)
	GetContainerInfo(containerID string, networkName string) (*Container, error)
	RmContainer(containerID string) error
	PullImage(imageName string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL