docker

package
v0.0.1-alpha2.0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonMounts map[string]string = map[string]string{
	"maven":  "/home/nog/.m2",
	"source": "/home/nog/src",
}

Functions

func NewMounts

func NewMounts() *mounts

Types

type NogDockerClient

type NogDockerClient struct {
	Verbose bool
	// contains filtered or unexported fields
}

func NewDockerClient

func NewDockerClient() (*NogDockerClient, error)

func (*NogDockerClient) CreateContainer

func (nog *NogDockerClient) CreateContainer(image string, cmd []string, m *mounts, envs []string) (string, error)

func (*NogDockerClient) CreateVolume

func (nog *NogDockerClient) CreateVolume(name string) error

func (*NogDockerClient) DeleteVolume

func (nog *NogDockerClient) DeleteVolume(name string) error

func (*NogDockerClient) EndContainer

func (nog *NogDockerClient) EndContainer(ID string) error

func (*NogDockerClient) GetVolume

func (nog *NogDockerClient) GetVolume(name string) (*NogVolume, error)

func (*NogDockerClient) ImagePortDetails

func (nog *NogDockerClient) ImagePortDetails(name string) (nat.PortMap, error)

func (*NogDockerClient) Images

func (nog *NogDockerClient) Images() ([]NogImage, error)

func (*NogDockerClient) JoinContainer

func (nog *NogDockerClient) JoinContainer(ID string) error

func (*NogDockerClient) ListVolumes

func (nog *NogDockerClient) ListVolumes() ([]NogVolume, error)

func (*NogDockerClient) LocalImage

func (nog *NogDockerClient) LocalImage(tag string) (bool, error)

func (*NogDockerClient) PullImage

func (nog *NogDockerClient) PullImage(image string) error

func (*NogDockerClient) ShowLogs1

func (nog *NogDockerClient) ShowLogs1(ID string) error

func (*NogDockerClient) StartContainer

func (nog *NogDockerClient) StartContainer(ID string) error

func (*NogDockerClient) StopContainer

func (nog *NogDockerClient) StopContainer(ID string) error

func (*NogDockerClient) WaitForContainer

func (nog *NogDockerClient) WaitForContainer(ID string) error

type NogImage

type NogImage struct {
	Name   string
	Labels map[string]string
	Tags   []string
}

type NogVolume

type NogVolume struct {
	Name   string
	Labels map[string]string
}

func (*NogVolume) CreatedByNog

func (v *NogVolume) CreatedByNog() bool

Jump to

Keyboard shortcuts

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