docker

package
v0.0.0-...-b905d37 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ImageName     string `json:"image_name"`
	ContainerName string `json:"container_name"`
	Command       string `json:"command,omitempty"`
}

type Runner

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

func NewRunner

func NewRunner(ctx context.Context) (*Runner, error)

func (*Runner) CheckRunning

func (r *Runner) CheckRunning(ctx context.Context, cont Container) ([]types.ImageSummary, error)

func (*Runner) Kill

func (r *Runner) Kill(ctx context.Context, ID string) error

func (*Runner) Pull

func (r *Runner) Pull(ctx context.Context, cont Container) error

func (*Runner) Rm

func (r *Runner) Rm(ctx context.Context, ID string) error

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, cont Container) error

Jump to

Keyboard shortcuts

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