contracts

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDockerClient

type IDockerClient interface {
	Execute(cmd []string) (stdout string, stderr string, err error)
	Stop(cmd []string) (stdout string, stderr string, err error)
	Run(cmd []string) (stdout string, stderr string, err error)
	ExecuteCmd(cmdArgs []string) (stdout string, stderr string, err error)
}

type IRookBlock

type IRookBlock interface {
	BlockCreate(name string, size int) (string, error)
	BlockDelete(name string) (string, error)
	BlockList() (string, error)
	BlockMap(name string, mountpath string) (string, error)
	BlockWrite(name string, mountpath string, data string, filename string, namespace string) (string, error)
	BlockRead(name string, mountpath string, filename string, namespace string) (string, error)
	BlockUnmap(name string, mountpath string) (string, error)
}

type IRookClient

type IRookClient interface {
	Status() (string, error)
	Version() (string, error)
	Node() (string, error)
}

type IRookFilesystem

type IRookFilesystem interface {
	FSCreate(name string) (string, error)
	FSDelete(name string) (string, error)
	FSList() (string, error)
	FSMount(name string, mountpath string) (string, error)
	FSWrite(name string, mountpath string, data string, filename string, namespace string) (string, error)
	FSRead(name string, mountpath string, filename string, namespace string) (string, error)
	FSUnmount(mountpath string) (string, error)
}

type IRookObject

type IRookObject interface {
	ObjectCreate() (string, error)
	ObjectBucketList() (string, error)
	ObjectConnection(uerid string) (string, error)
	ObjectCreateUser(userid string, displayname string) (string, error)
	ObjectDeleteUser(userid string) (string, error)
	ObjectGetUser(userid string) (string, error)
	ObjectListUser() (string, error)
	ObjectUpdateUser(userid string, displayname string, emailid string) (string, error)
}

type IRookPool

type IRookPool interface {
	PoolList() (string, error)
	PoolCreate() (string, error)
}

type ITransportClient

type ITransportClient interface {
	Execute(cmd []string, optional []string) (stdout string, stderr string, exitCode int)
	Create(cmd []string, optional []string) (stdout string, stderr string, exitCode int)
	Delete(cmd []string, optional []string) (stdout string, stderr string, exitCode int)
	ExecuteCmd(cmd []string) (stdout string, stderr string, err error)
	Apply(cmd []string) (stdout string, stderr string, err error)
	CreateWithStdin(stdinText string) (stdout string, stderr string, exitCode int)
}

Jump to

Keyboard shortcuts

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