Documentation
¶
Index ¶
- Constants
- type Client
- func (r Client) CreateACL(ctxt context.Context, name string, random bool) error
- func (r Client) CreateVolume(ctxt context.Context, name string, volOpts *VolOpts) error
- func (r Client) DeleteVolume(ctxt context.Context, name, mountpoint string) error
- func (r Client) DetachVolume(ctxt context.Context, name string) error
- func (r Client) FindDeviceFsType(ctxt context.Context, diskPath string) (string, error)
- func (r Client) GetIQNandPortals(ctxt context.Context, name string) (string, []string, string, error)
- func (r Client) GetMetadata(ctxt context.Context, name string) (*map[string]interface{}, error)
- func (r Client) GetVolume(ctxt context.Context, name string) (*dsdk.AppInstance, error)
- func (r Client) ListVolumes(ctxt context.Context) ([]string, error)
- func (r Client) LoginVolume(ctxt context.Context, name string, destination string) (string, error)
- func (r Client) MountVolume(ctxt context.Context, name, destination, fsType, diskPath string) error
- func (r Client) OnlineVolume(ctxt context.Context, name string) error
- func (r Client) PutMetadata(ctxt context.Context, name string, m *map[string]interface{}) error
- func (r Client) UnmountVolume(ctxt context.Context, name string, destination string) error
- type Config
- type VolOpts
Constants ¶
View Source
const ( StorageName = "storage-1" VolumeName = "volume-1" Prefix = "DVOLD-" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) CreateVolume ¶
func (Client) DeleteVolume ¶
func (Client) FindDeviceFsType ¶
func (Client) GetIQNandPortals ¶ added in v1.1.1
func (Client) GetMetadata ¶
func (Client) LoginVolume ¶
func (Client) MountVolume ¶
func (Client) OnlineVolume ¶ added in v1.1.3
func (Client) PutMetadata ¶
type Config ¶
type Config struct { DateraCluster string `json:"datera-cluster"` Username string `json:"username"` Password string `json:"password"` Ssl bool `json:"ssl"` Tenant string `json:"tenant,omitempty"` OsUser string `json:"os-user,omitempty"` Debug bool `json:"debug,omitempty"` Framework string `json:"framework,omitempty"` Volume *VolOpts `json:"volume,omitempty"` }
type VolOpts ¶ added in v1.1.3
type VolOpts struct { Size uint64 `json:"size,omitempty"` Replica uint64 `json:"replica,omitempty"` Template string `json:"template,omitempty"` FsType string `json:"fstype,omitempty"` MaxIops uint64 `json:"maxiops,omitempty"` MaxBW uint64 `json:"maxbw,omitempty"` PlacementMode string `json:"placement,omitempty"` Persistence string `json:"persistence,omitempty"` CloneSrc string `json:"clone-src,omitempty"` }
Click to show internal directories.
Click to hide internal directories.