Documentation ¶
Index ¶
- type MobyClient
- func (mc *MobyClient) CleanImages() error
- func (mc *MobyClient) GetIP(name string) (string, error)
- func (mc *MobyClient) GetName(name string) (str string, err error)
- func (mc *MobyClient) RemoveAllContainers() error
- func (mc *MobyClient) RemoveStoppedContainers() error
- func (mc *MobyClient) StopContainers() error
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.
Click to show internal directories.
Click to hide internal directories.