client

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageName = "storage-1"
	VolumeName  = "volume-1"
	IGPrefix    = "Docker-Driver-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Debug bool
	Api   *dsdk.SDK
}

func NewClient

func NewClient(addr, username, password, tenant string, debug, ssl bool, driver, version string) *Client

func (Client) CreateACL

func (r Client) CreateACL(name string, random bool) error

func (Client) CreateVolume

func (r Client) CreateVolume(name string, size int, replica int, template string, maxIops int, maxBW int, placementMode string) error

func (Client) DeleteVolume

func (r Client) DeleteVolume(name, mountpoint string) error

func (Client) DetachVolume

func (r Client) DetachVolume(name string) error

func (Client) FindDeviceFsType

func (r Client) FindDeviceFsType(diskPath string) (string, error)

func (Client) GetIQNandPortals added in v1.1.1

func (r Client) GetIQNandPortals(name string) (string, []string, string, error)

func (Client) LoginVolume

func (r Client) LoginVolume(name string, destination string) (string, error)

func (Client) MountVolume

func (r Client) MountVolume(name, destination, fsType, diskPath string) error

func (Client) UnmountVolume

func (r Client) UnmountVolume(name string, destination string) error

func (Client) VolumeExist

func (r Client) VolumeExist(name string) (bool, error)

Jump to

Keyboard shortcuts

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