interfaces

package
v0.0.0-...-f273de4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MobyClient

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

MobyClient is a client and wrapper around the docker api client

func NewMobyClient

func NewMobyClient(quiet bool, logfile string) (mobyClient *MobyClient, err error)

NewMobyClient returns a pointer to a new MobyClient

func (*MobyClient) CleanImages

func (mc *MobyClient) CleanImages() error

CleanImages removes all untagged docker images

func (*MobyClient) GetIP

func (mc *MobyClient) GetIP(name string) (string, error)

GetIP returns the IP address of a given container

func (*MobyClient) GetName

func (mc *MobyClient) GetName(name string) (str string, err error)

GetName returns a sequentially numbered available container name. For example, if web-001 exists, GetName "web" would return web-002

func (*MobyClient) RemoveAllContainers

func (mc *MobyClient) RemoveAllContainers() error

RemoveAllContainers removes all existing containers. Use with caution!

func (*MobyClient) RemoveStoppedContainers

func (mc *MobyClient) RemoveStoppedContainers() error

RemoveStoppedContainers removes all containers with the stopped or exited status

func (*MobyClient) StopContainers

func (mc *MobyClient) StopContainers() error

StopContainers stops all running containers.

Jump to

Keyboard shortcuts

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