Documentation ¶
Index ¶
- Variables
- func NewMounts() *mounts
- type NogDockerClient
- func (nog *NogDockerClient) CreateContainer(image string, cmd []string, m *mounts, envs []string) (string, error)
- func (nog *NogDockerClient) CreateVolume(name string) error
- func (nog *NogDockerClient) DeleteVolume(name string) error
- func (nog *NogDockerClient) EndContainer(ID string) error
- func (nog *NogDockerClient) GetVolume(name string) (*NogVolume, error)
- func (nog *NogDockerClient) ImagePortDetails(name string) (nat.PortMap, error)
- func (nog *NogDockerClient) Images() ([]NogImage, error)
- func (nog *NogDockerClient) JoinContainer(ID string) error
- func (nog *NogDockerClient) ListVolumes() ([]NogVolume, error)
- func (nog *NogDockerClient) LocalImage(tag string) (bool, error)
- func (nog *NogDockerClient) PullImage(image string) error
- func (nog *NogDockerClient) ShowLogs1(ID string) error
- func (nog *NogDockerClient) StartContainer(ID string) error
- func (nog *NogDockerClient) StopContainer(ID string) error
- func (nog *NogDockerClient) WaitForContainer(ID string) error
- type NogImage
- type NogVolume
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 ¶
Types ¶
type NogDockerClient ¶
type NogDockerClient struct { Verbose bool // contains filtered or unexported fields }
func NewDockerClient ¶
func NewDockerClient() (*NogDockerClient, error)
func (*NogDockerClient) CreateContainer ¶
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
Click to show internal directories.
Click to hide internal directories.