docker

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package docker provides Docker client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*docker.Client
}

Client defines Docker client.

func NewClient

func NewClient(ctx context.Context, host, certPath, version string, verify bool) (*Client, error)

NewClient creates a new Docker client.

func (*Client) ContainerJSONList added in v0.0.4

func (c *Client) ContainerJSONList(ctx context.Context) ([]*types.ContainerJSON, error)

ContainerJSONList returns the list of the container information.

type ServerMock added in v0.0.5

type ServerMock interface {
	Start(t *testing.T)
	Shutdown(t *testing.T)
}

ServerMock is a mock implementation of DockerServer.

func NewMockServer added in v0.0.5

func NewMockServer(addr, version, logPath, mountSource string) ServerMock

NewMockServer creates the mock implementation of DockerServer.

Jump to

Keyboard shortcuts

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