dockeriface

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dockeriface contains an interface for go-dockerclient matching the subset used by the agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	AddEventListener(listener chan<- *docker.APIEvents) error
	CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)
	ImportImage(opts docker.ImportImageOptions) error
	InspectContainer(id string) (*docker.Container, error)
	InspectContainerWithContext(id string, ctx context.Context) (*docker.Container, error)
	InspectImage(name string) (*docker.Image, error)
	ListContainers(opts docker.ListContainersOptions) ([]docker.APIContainers, error)
	Ping() error
	PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error
	RemoveContainer(opts docker.RemoveContainerOptions) error
	RemoveEventListener(listener chan *docker.APIEvents) error
	StartContainer(id string, hostConfig *docker.HostConfig) error
	StartContainerWithContext(id string, hostConfig *docker.HostConfig, ctx context.Context) error
	StopContainer(id string, timeout uint) error
	StopContainerWithContext(id string, timeout uint, ctx context.Context) error
	CreateVolume(opts docker.CreateVolumeOptions) (*docker.Volume, error)
	InspectVolume(name string) (*docker.Volume, error)
	RemoveVolume(name string) error
	ListPlugins(ctx context.Context) ([]docker.PluginDetail, error)
	Stats(opts docker.StatsOptions) error
	VersionWithContext(context.Context) (*docker.Env, error)
	RemoveImage(imageName string) error
	LoadImage(opts docker.LoadImageOptions) error
}

Client is an interface specifying the subset of github.com/fsouza/go-dockerclient.Client that the agent uses.

Directories

Path Synopsis
Package mock_dockeriface is a generated GoMock package.
Package mock_dockeriface is a generated GoMock package.

Jump to

Keyboard shortcuts

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