docker

package
v0.0.0-...-24a0e6e Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCommand

type BaseCommand interface {
	Handle(...string)
	ExtractOptionsAndParams(opts ...string) ([]string, []string)
}

Base interface for docker commands

type Client

type Client interface {
	ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
	ContainerStop(ctx context.Context, containerID string, timeout *time.Duration) error
}

type CommandParameter

type CommandParameter struct {
	Name string
}

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

func New

func New(client Client) *Docker

Create a new Docker to use

type PrintContainersCommand

type PrintContainersCommand struct {
	Docker *Docker
}

Command to print containers

func (PrintContainersCommand) ExtractOptionsAndParams

func (p PrintContainersCommand) ExtractOptionsAndParams(opts ...string) ([]string, []string)

func (PrintContainersCommand) Handle

func (p PrintContainersCommand) Handle(opts ...string)

type StopContainersCommand

type StopContainersCommand struct {
	Docker *Docker
}

Command to stop containers

func (StopContainersCommand) ExtractOptionsAndParams

func (s StopContainersCommand) ExtractOptionsAndParams(opts ...string) ([]string, []string)

func (StopContainersCommand) Handle

func (s StopContainersCommand) Handle(opts ...string)

Jump to

Keyboard shortcuts

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