cattle

package
v0.0.0-...-a9fa796 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 2 Imported by: 2

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 holds rancherClient and anything else that could be useful

func NewClient

func NewClient(cattleURL string, cattleAccessKey string, cattleSecretKey string) (*Client, error)

NewClient grabs config necessary and sets an inited client or returns an error

func (*Client) GetContainerByUUID

func (c *Client) GetContainerByUUID(uuid string) (*client.Container, error)

GetContainerByUUID grabs a Container given a UUID

func (*Client) GetServiceByUUID

func (c *Client) GetServiceByUUID(uuid string) (*client.Service, error)

GetServiceByUUID grabs a Service given a UUID

func (*Client) StartContainerByID

func (c *Client) StartContainerByID(containerID string) (*client.Container, error)

StartContainerByID starts a container given ContainerId or fails in cases its already running

func (*Client) TestConnect

func (c *Client) TestConnect() error

TestConnect ensures we can query the API

Jump to

Keyboard shortcuts

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