docker

package
v0.0.0-...-36345bc Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
	ContainerCreate(ctx context.Context, config *ContainerConfig, hostConfig *HostConfig, networkingConfig *NetworkingConfig, containerName string) (ContainerCreateCreatedBody, error)
	ContainerRemove(ctx context.Context, container string, options types.ContainerRemoveOptions) error
	ContainerRename(ctx context.Context, container, newContainerName string) error
	ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error
	ContainerStop(ctx context.Context, container string, timeout *time.Duration) error
	ContainerRestart(ctx context.Context, container string, timeout *time.Duration) error
	ContainerKill(ctx context.Context, container, signal string) error
	ContainersPrune(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error)
}

type Client

type Client struct {
}

func (Client) ContainerCreate

func (c Client) ContainerCreate(ctx context.Context, config *ContainerConfig, hostConfig *HostConfig, networkingConfig *NetworkingConfig, containerName string) (ContainerCreateCreatedBody, error)

func (Client) ContainerKill

func (c Client) ContainerKill(ctx context.Context, container, signal string) error

func (Client) ContainerList

func (c Client) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)

func (Client) ContainerRemove

func (c Client) ContainerRemove(ctx context.Context, container string, options types.ContainerRemoveOptions) error

func (Client) ContainerRename

func (c Client) ContainerRename(ctx context.Context, container, newContainerName string) error

func (Client) ContainerRestart

func (c Client) ContainerRestart(ctx context.Context, container string, timeout *time.Duration) error

func (Client) ContainerStart

func (c Client) ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error

func (Client) ContainerStop

func (c Client) ContainerStop(ctx context.Context, container string, timeout *time.Duration) error

func (Client) ContainersPrune

func (c Client) ContainersPrune(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error)

type ContainerConfig

type ContainerConfig any

type ContainerCreateCreatedBody

type ContainerCreateCreatedBody any

type HostConfig

type HostConfig any

type NetworkingConfig

type NetworkingConfig any

type Transport

type Transport struct {
}

Transport

Jump to

Keyboard shortcuts

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