containers

package module
v0.0.0-...-ef5cc6b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Create(args ContainerCreateArgs) (string, error)
	Start(id string) error
	Stop(id string) error
}

type ContainerCreateArgs

type ContainerCreateArgs struct {
	Image     string
	Name      string
	Port      int
	IPAddress string
	Env       []string
}

type DockerClient

type DockerClient struct {
	// contains filtered or unexported fields
}

func NewDockerClient

func NewDockerClient() (*DockerClient, error)

func (*DockerClient) Create

func (self *DockerClient) Create(args ContainerCreateArgs) (string, error)

func (*DockerClient) Start

func (self *DockerClient) Start(id string) error

func (*DockerClient) Stop

func (self *DockerClient) Stop(id string) error

Jump to

Keyboard shortcuts

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