docker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a container for a docker client

func NewClient

func NewClient() (Client, error)

NewClient returns a new Cli struct

func (*Client) EnsureImage

func (client *Client) EnsureImage(dockerHost, image string) (string, error)

EnsureImage makes sure that the image we need is present and returns the correct name

func (*Client) EnsureNetwork

func (client *Client) EnsureNetwork() error

EnsureNetwork checks to see if the stargate bridge network exists and creates it if it doesnt

func (*Client) GetNameWithVersion

func (client *Client) GetNameWithVersion(image string) (string, error)

GetNameWithVersion finds a full versioned name for an image

func (*Client) Remove

func (client *Client) Remove(container string) error

Remove stopped docker container

func (*Client) StartCassandra

func (client *Client) StartCassandra(opts *StartCassandraOptions) error

StartCassandra running docker image

func (*Client) StartService

func (client *Client) StartService(opts *StartServiceOptions) error

StartService running docker image

func (*Client) Started

func (client *Client) Started(containerID, trigger string) error

Started function waits for a docker image to start

func (*Client) Stop

func (client *Client) Stop(container string) error

Stop running docker image

type StartCassandraOptions

type StartCassandraOptions struct {
	DockerImageHost string
	ImageName       string
	ExposedPorts    []string
}

StartCassandraOptions defines the input of Client.Start

type StartServiceOptions

type StartServiceOptions struct {
	CassandraURL    string
	ExposedPorts    []string
	DockerImageHost string
	ImageName       string
}

StartServiceOptions defines the input of Client.Start

Jump to

Keyboard shortcuts

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