client

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 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, volOpts *VolOpts) 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) OnlineVolume added in v1.1.3

func (r Client) OnlineVolume(name 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)

type VolOpts added in v1.1.3

type VolOpts struct {
	Size          uint64
	Replica       uint64
	Template      string
	FsType        string
	MaxIops       uint64
	MaxBW         uint64
	PlacementMode string
	Persistence   string
	CloneSrc      string
}

Jump to

Keyboard shortcuts

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