Documentation ¶
Index ¶
- type BuildOptions
- type Client
- type Container
- func (c *Container) ID() string
- func (c *Container) Inspect() (*docker.Container, error)
- func (c *Container) Logs(prefix string)
- func (c *Container) LogsWith(prefix string, logger *log.Logger)
- func (c *Container) Remove(opts *RemoveOptions) error
- func (c *Container) Stop(timeout uint) error
- func (c *Container) StreamLogs(w io.Writer)
- func (c *Container) Wait() (int, error)
- type Docker
- func (dock *Docker) Build(options *BuildOptions) error
- func (dock *Docker) BuildWithLogger(options *BuildOptions, logger *log.Logger) error
- func (dock *Docker) CreateNetwork(opts docker.CreateNetworkOptions) (*docker.Network, error)
- func (dock *Docker) Images(options *ImagesOptions) ([]docker.APIImages, error)
- func (dock *Docker) Inspect(containerID string) (*docker.Container, error)
- func (dock *Docker) Networks() ([]docker.Network, error)
- func (dock *Docker) Ps(options *PsOptions) ([]docker.APIContainers, error)
- func (dock *Docker) Pull(options *PullOptions) error
- func (dock *Docker) Rm(options *RmOptions) error
- func (dock *Docker) Run(options *RunOptions) (*Container, error)
- func (dock *Docker) Start(options *StartOptions) error
- func (dock *Docker) Stop(options *StopOptions) error
- type FsouzaClient
- func (c *FsouzaClient) BuildImage(opts docker.BuildImageOptions) error
- func (c *FsouzaClient) CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)
- func (c *FsouzaClient) CreateNetwork(opts docker.CreateNetworkOptions) (*docker.Network, error)
- func (c *FsouzaClient) InspectContainer(id string) (*docker.Container, error)
- func (c *FsouzaClient) InspectImage(name string) (*docker.Image, error)
- func (c *FsouzaClient) ListContainers(opts docker.ListContainersOptions) ([]docker.APIContainers, error)
- func (c *FsouzaClient) ListImages(opts docker.ListImagesOptions) ([]docker.APIImages, error)
- func (c *FsouzaClient) ListNetworks() ([]docker.Network, error)
- func (c *FsouzaClient) Logs(opts docker.LogsOptions) error
- func (c *FsouzaClient) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error
- func (c *FsouzaClient) RemoveContainer(opts docker.RemoveContainerOptions) error
- func (c *FsouzaClient) StartContainer(id string, hostConfig *docker.HostConfig) error
- func (c *FsouzaClient) StopContainer(id string, timeout uint) error
- func (c *FsouzaClient) WaitContainer(id string) (int, error)
- type ImagesOptions
- type PsOptions
- type PullOptions
- type RemoveOptions
- type RmOptions
- type RunOptions
- type Scanner
- type StartOptions
- type StopOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOptions ¶
type Client ¶
type Client interface { ListContainers(opts docker.ListContainersOptions) ([]docker.APIContainers, error) ListImages(opts docker.ListImagesOptions) ([]docker.APIImages, error) BuildImage(opts docker.BuildImageOptions) error InspectContainer(id string) (*docker.Container, error) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error RemoveContainer(opts docker.RemoveContainerOptions) error CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error) StartContainer(id string, hostConfig *docker.HostConfig) error WaitContainer(id string) (int, error) StopContainer(id string, timeout uint) error InspectImage(name string) (*docker.Image, error) Logs(opts docker.LogsOptions) error ListNetworks() ([]docker.Network, error) CreateNetwork(docker.CreateNetworkOptions) (*docker.Network, error) }
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) Remove ¶
func (c *Container) Remove(opts *RemoveOptions) error
func (*Container) StreamLogs ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func NewDockerForTest ¶
func (*Docker) Build ¶
func (dock *Docker) Build(options *BuildOptions) error
func (*Docker) BuildWithLogger ¶
func (dock *Docker) BuildWithLogger(options *BuildOptions, logger *log.Logger) error
func (*Docker) CreateNetwork ¶
func (*Docker) Images ¶
func (dock *Docker) Images(options *ImagesOptions) ([]docker.APIImages, error)
func (*Docker) Pull ¶
func (dock *Docker) Pull(options *PullOptions) error
func (*Docker) Start ¶
func (dock *Docker) Start(options *StartOptions) error
func (*Docker) Stop ¶
func (dock *Docker) Stop(options *StopOptions) error
type FsouzaClient ¶
type FsouzaClient struct {
// contains filtered or unexported fields
}
func (*FsouzaClient) BuildImage ¶
func (c *FsouzaClient) BuildImage(opts docker.BuildImageOptions) error
func (*FsouzaClient) CreateContainer ¶
func (c *FsouzaClient) CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)
func (*FsouzaClient) CreateNetwork ¶
func (c *FsouzaClient) CreateNetwork(opts docker.CreateNetworkOptions) (*docker.Network, error)
func (*FsouzaClient) InspectContainer ¶
func (c *FsouzaClient) InspectContainer(id string) (*docker.Container, error)
func (*FsouzaClient) InspectImage ¶
func (c *FsouzaClient) InspectImage(name string) (*docker.Image, error)
func (*FsouzaClient) ListContainers ¶
func (c *FsouzaClient) ListContainers(opts docker.ListContainersOptions) ([]docker.APIContainers, error)
func (*FsouzaClient) ListImages ¶
func (c *FsouzaClient) ListImages(opts docker.ListImagesOptions) ([]docker.APIImages, error)
func (*FsouzaClient) ListNetworks ¶
func (c *FsouzaClient) ListNetworks() ([]docker.Network, error)
func (*FsouzaClient) Logs ¶
func (c *FsouzaClient) Logs(opts docker.LogsOptions) error
func (*FsouzaClient) PullImage ¶
func (c *FsouzaClient) PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error
func (*FsouzaClient) RemoveContainer ¶
func (c *FsouzaClient) RemoveContainer(opts docker.RemoveContainerOptions) error
func (*FsouzaClient) StartContainer ¶
func (c *FsouzaClient) StartContainer(id string, hostConfig *docker.HostConfig) error
func (*FsouzaClient) StopContainer ¶
func (c *FsouzaClient) StopContainer(id string, timeout uint) error
func (*FsouzaClient) WaitContainer ¶
func (c *FsouzaClient) WaitContainer(id string) (int, error)
type ImagesOptions ¶
type PullOptions ¶
type PullOptions struct {
Image string
}
type RemoveOptions ¶
type RunOptions ¶
type StartOptions ¶
type StopOptions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.