driver

package
v0.0.0-...-5ce525d Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CcDriver

type CcDriver struct {
	Cc *cloudcomb.CloudComb
	// contains filtered or unexported fields
}

func NewCCDriver

func NewCCDriver(appKey, appSecret string, conc int) (*CcDriver, error)

New CloudComb driver

func (*CcDriver) CreateContainer

func (driver *CcDriver) CreateContainer(params string) (uint, error)

Create container

func (*CcDriver) CreateSecretKey

func (driver *CcDriver) CreateSecretKey(name string) (uint, string, error)

Create container

func (*CcDriver) DeleteContainer

func (driver *CcDriver) DeleteContainer(id string) error

Restart container

func (*CcDriver) DeleteSecretKey

func (driver *CcDriver) DeleteSecretKey(id string) error

Restart container

func (*CcDriver) GetContainer

func (driver *CcDriver) GetContainer(id string) (string, error)

List specified container

func (*CcDriver) GetContainerFlow

func (driver *CcDriver) GetContainerFlow(id string) (string, error)

Get specified container's flow

func (*CcDriver) GetContainers

func (driver *CcDriver) GetContainers() (string, error)

List containers

func (*CcDriver) GetContainersImages

func (driver *CcDriver) GetContainersImages() (string, error)

List containers' images

func (*CcDriver) GetSecretKey

func (driver *CcDriver) GetSecretKey(id string) (string, error)

List specified container

func (*CcDriver) GetSecretKeys

func (driver *CcDriver) GetSecretKeys() (string, error)

List containers

func (*CcDriver) RestartContainer

func (driver *CcDriver) RestartContainer(id string) error

Restart container

func (*CcDriver) TagContainer

func (driver *CcDriver) TagContainer(id string, params string) (string, error)

Tag container

func (*CcDriver) UpdateContainer

func (driver *CcDriver) UpdateContainer(id string, params string) error

Update container

Jump to

Keyboard shortcuts

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