Documentation ¶
Index ¶
- Constants
- func DefaultMounts() []mount.Mount
- func GenerateSubnetFromName(name string, attempt int32) string
- func NewDockerProvider() (client.ProviderService, error)
- type Provider
- func (p *Provider) DeleteImageResource(imageID string) error
- func (p *Provider) DeleteNetworkResource(id string) error
- func (p *Provider) GetContainerIDByIP(containerIP string, networkName string) (string, error)
- func (p *Provider) GetContainerInfo(containerID string, networkName string) (*client.Container, error)
- func (p *Provider) GetImageIDByName(name string) string
- func (p *Provider) GetImageResourceByID(id string) (*types.ImageInspect, error)
- func (p *Provider) GetNetworkResourceByID(id string) (*types.NetworkResource, error)
- func (p *Provider) GetServerInfo() (*client.DockerInfo, error)
- func (p *Provider) PrepareNetworkResource(networkName string) (string, error)
- func (p *Provider) PullImage(imageName string) (string, error)
- func (p *Provider) RmContainer(containerID string) error
- func (p *Provider) RunContainer(opts *client.CreateOptsForContainer) (string, error)
Constants ¶
View Source
const (
CgroupNoneDriver = "none"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultMounts ¶
func GenerateSubnetFromName ¶
func NewDockerProvider ¶
func NewDockerProvider() (client.ProviderService, error)
Types ¶
type Provider ¶
func (*Provider) DeleteImageResource ¶
func (*Provider) DeleteNetworkResource ¶
func (*Provider) GetContainerIDByIP ¶
func (*Provider) GetContainerInfo ¶
func (*Provider) GetImageIDByName ¶
func (*Provider) GetImageResourceByID ¶
func (p *Provider) GetImageResourceByID(id string) (*types.ImageInspect, error)
func (*Provider) GetNetworkResourceByID ¶
func (p *Provider) GetNetworkResourceByID(id string) (*types.NetworkResource, error)
func (*Provider) GetServerInfo ¶
func (p *Provider) GetServerInfo() (*client.DockerInfo, error)
func (*Provider) PrepareNetworkResource ¶
func (*Provider) RmContainer ¶
func (*Provider) RunContainer ¶
func (p *Provider) RunContainer(opts *client.CreateOptsForContainer) (string, error)
Click to show internal directories.
Click to hide internal directories.