Documentation ¶
Index ¶
- type ContainerEngine
- type ContainerFileMount
- type DockerEngine
- func (de *DockerEngine) BuildImage(ctx context.Context, imgName string, buildContext io.Reader) error
- func (de *DockerEngine) CreateNetwork(ctx context.Context, name string) (NetworkId, string, error)
- func (de *DockerEngine) FetchImage(ctx context.Context, imgName string) error
- func (de *DockerEngine) GetImagePorts(ctx context.Context, tag string) ([]uint16, error)
- func (de *DockerEngine) RemoveContainer(ctx context.Context, id string) error
- func (de *DockerEngine) RemoveImage(ctx context.Context, imgName string) error
- func (de *DockerEngine) RemoveNetwork(ctx context.Context, id string) error
- func (de *DockerEngine) RunContainer(ctx context.Context, name, tag string, params RunContainerParams) (string, error)
- func (de *DockerEngine) Terminate()
- type DockerEngineParams
- type MockedEngine
- func (me *MockedEngine) BuildImage(ctx context.Context, imgName string, buildContext io.Reader) error
- func (me *MockedEngine) CreateNetwork(ctx context.Context, name string) (NetworkId, string, error)
- func (me *MockedEngine) FetchImage(ctx context.Context, imgName string) error
- func (me *MockedEngine) GetImagePorts(ctx context.Context, imgName string) ([]uint16, error)
- func (me *MockedEngine) RemoveContainer(ctx context.Context, id string) error
- func (me *MockedEngine) RemoveImage(ctx context.Context, imgName string) error
- func (me *MockedEngine) RemoveNetwork(ctx context.Context, id string) error
- func (me *MockedEngine) RunContainer(ctx context.Context, name, tag string, params RunContainerParams) (string, error)
- func (me *MockedEngine) Terminate()
- type NetworkId
- type RunContainerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerEngine ¶
type ContainerEngine interface { CreateNetwork(ctx context.Context, name string) (NetworkId, string, error) BuildImage(ctx context.Context, imgName string, buildContext io.Reader) error GetImagePorts(ctx context.Context, imgName string) ([]uint16, error) RemoveImage(ctx context.Context, imgName string) error RunContainer(ctx context.Context, name, tag string, params RunContainerParams) (string, error) // Stop and remove RemoveContainer(ctx context.Context, id string) error RemoveNetwork(ctx context.Context, id string) error FetchImage(ctx context.Context, imgName string) error Terminate() }
type ContainerFileMount ¶
type DockerEngine ¶
type DockerEngine struct {
// contains filtered or unexported fields
}
func NewDockerEngine ¶
func NewDockerEngine(params DockerEngineParams) (*DockerEngine, error)
func (*DockerEngine) BuildImage ¶
func (*DockerEngine) CreateNetwork ¶
func (*DockerEngine) FetchImage ¶
func (de *DockerEngine) FetchImage(ctx context.Context, imgName string) error
func (*DockerEngine) GetImagePorts ¶
func (*DockerEngine) RemoveContainer ¶
func (de *DockerEngine) RemoveContainer(ctx context.Context, id string) error
func (*DockerEngine) RemoveImage ¶
func (de *DockerEngine) RemoveImage(ctx context.Context, imgName string) error
func (*DockerEngine) RemoveNetwork ¶
func (de *DockerEngine) RemoveNetwork(ctx context.Context, id string) error
func (*DockerEngine) RunContainer ¶
func (de *DockerEngine) RunContainer(ctx context.Context, name, tag string, params RunContainerParams) (string, error)
func (*DockerEngine) Terminate ¶
func (de *DockerEngine) Terminate()
type DockerEngineParams ¶
type DockerEngineParams struct { }
type MockedEngine ¶
func (*MockedEngine) BuildImage ¶
func (*MockedEngine) CreateNetwork ¶
func (*MockedEngine) FetchImage ¶
func (me *MockedEngine) FetchImage(ctx context.Context, imgName string) error
func (*MockedEngine) GetImagePorts ¶
func (*MockedEngine) RemoveContainer ¶
func (me *MockedEngine) RemoveContainer(ctx context.Context, id string) error
func (*MockedEngine) RemoveImage ¶
func (me *MockedEngine) RemoveImage(ctx context.Context, imgName string) error
func (*MockedEngine) RemoveNetwork ¶
func (me *MockedEngine) RemoveNetwork(ctx context.Context, id string) error
func (*MockedEngine) RunContainer ¶
func (me *MockedEngine) RunContainer(ctx context.Context, name, tag string, params RunContainerParams) (string, error)
func (*MockedEngine) Terminate ¶
func (me *MockedEngine) Terminate()
Click to show internal directories.
Click to hide internal directories.