Documentation
¶
Index ¶
- type ContainerEventData
- type Docker
- func (d *Docker) ContainerCreateAndStart(imageName, user, containerName, restart, ip string, ...) (string, []string, error)
- func (d *Docker) ContainerEvents(eve chan<- ContainerEventData) ContainerEventData
- func (d *Docker) ContainerRunning(containerName string) (bool, string)
- func (d *Docker) Enabled() bool
- func (d *Docker) ImageExists(imageName string) bool
- func (d *Docker) Init(networkId, networkSubnet string, networkGateway string) error
- func (d *Docker) NetworkCreate(id, subnet string) (string, string, error)
- func (d *Docker) PullImage(imageName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerEventData ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) ContainerCreateAndStart ¶
func (d *Docker) ContainerCreateAndStart(imageName, user, containerName, restart, ip string, ports, volumes, environment, commands []string) (string, []string, error)
create a docker container and directly start it
func (*Docker) ContainerEvents ¶
func (d *Docker) ContainerEvents(eve chan<- ContainerEventData) ContainerEventData
func (*Docker) ContainerRunning ¶
checks if a container is running return bool --> true: container is running, false container is stopped return *string --> "": container not found, id of the cointainer if it was found
func (*Docker) ImageExists ¶
function that checks if an image exists
func (*Docker) NetworkCreate ¶
Click to show internal directories.
Click to hide internal directories.