docker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreateDockerClient = errors.New("cannot create Docker client")
)

Functions

This section is empty.

Types

type ContainerRestarter

type ContainerRestarter interface {
	RestartContainer(ctx context.Context, name string) error
}

type Docker

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

func New

func New(dockerHost string) (d *Docker, err error)

func (*Docker) GetLabeled added in v0.2.0

func (d *Docker) GetLabeled(ctx context.Context, labels []string) (
	containerNames []string, err error)

func (*Docker) GetUnhealthy

func (d *Docker) GetUnhealthy(ctx context.Context) (unhealthies []UnhealthyContainer, err error)

func (*Docker) NegotiateVersion added in v0.3.0

func (d *Docker) NegotiateVersion(ctx context.Context)

func (*Docker) RestartContainer

func (d *Docker) RestartContainer(ctx context.Context, name string) (err error)

func (*Docker) StreamUnhealthy

func (d *Docker) StreamUnhealthy(ctx context.Context, unhealthies chan<- UnhealthyContainer, crashed chan<- error)

type LabeledGetter added in v0.2.0

type LabeledGetter interface {
	GetLabeled(ctx context.Context, labels []string) (
		containerNames []string, err error)
}

type UnhealthyContainer

type UnhealthyContainer struct {
	Name  string
	Image string
}

type UnhealthyGetter

type UnhealthyGetter interface {
	GetUnhealthy(ctx context.Context) (unhealthies []UnhealthyContainer, err error)
}

type UnhealthyStreamer

type UnhealthyStreamer interface {
	StreamUnhealthy(ctx context.Context, unhealthies chan<- UnhealthyContainer, crashed chan<- error)
}

Jump to

Keyboard shortcuts

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