dockersession

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MPL-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 ContainerService

type ContainerService struct {
	ContainerID   string
	DockerSession *Session
}

func (*ContainerService) ShutDown

func (cs *ContainerService) ShutDown() error

type Session

type Session struct {
	Ctx    context.Context
	Client *client.Client
}

func NewSession

func NewSession() (*Session, error)

func (*Session) FindContainer

func (ds *Session) FindContainer(name string) (*types.Container, error)

func (*Session) RequireImage

func (ds *Session) RequireImage(ref string) error

func (*Session) StopAndRemoveContainer

func (ds *Session) StopAndRemoveContainer(id string) error

Jump to

Keyboard shortcuts

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