goscaleio

package module
v0.0.0-...-8caf421 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

README

Goscaleio

The Goscaleio project represents API bindings that can be used to provide ScaleIO functionality into other Go applications.

Use Cases

Any application written in Go can take advantage of these bindings. Specifically, things that are involved in monitoring, management, and more specifically infrastructrue as code would find these bindings relevant.

Current State

Early build-out and pre-documentation stages. The basics around authentication and object models are there.

Usage

Logging in
client, err := goscaleio.NewClient()
if err != nil {
  log.Fatalf("err: %v", err)
}

_, err = client.Authenticate(&goscaleio.ConfigConnect{endpoint, username, password})
if err != nil {
  log.Fatalf("error authenticating: %v", err)
}

fmt.Println("Successfuly logged in to ScaleIO Gateway at", client.SIOEndpoint.String())
Reusing the authentication token

Once a client struct is created via the NewClient() function, you can replace the Token with the saved token.

client, err := goscaleio.NewClient()
if err != nil {
  log.Fatalf("error with NewClient: %s", err)
}

client.SetToken(oldToken)
Get Systems

Retrieving systems is the first step after authentication which enables you to work with other necessary methods.

All Systems
systems, err := client.GetInstance()
if err != nil {
  log.Fatalf("err: problem getting instance %v", err)
}
Find a System
system, err := client.FindSystem(systemid,"","")
if err != nil {
  log.Fatalf("err: problem getting instance %v", err)
}
Get Protection Domains

Once you have a System struct you can then get other things like Protection Domains.

protectiondomains, err := system.GetProtectionDomain()
if err != nil {
  log.Fatalf("error getting protection domains: %v", err)
}

Debugging

Two environment variables can be set to aid in debugging

Env Var Default Value
GOSCALEIO_DEBUG false
GOSCALEIO_SHOWHTTP false

Setting GOSCALEIO_DEBUG well enable logging to stdout. Setting GOSCALEIO_SHOWHTTP will log all HTTP requests and responses to stdout.

Licensing

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Support

For any issues, questions or feedback, please follow our support process

Documentation

Index

Constants

View Source
const (

	// IOCTLDevice is the default device to send queries to
	IOCTLDevice = "/dev/scini"
)

Variables

View Source
var (
	// SDCDevice is the device used to communicate with the SDC
	SDCDevice = IOCTLDevice
	// SCINIMockMode is used for testing upper layer code that attempts to call these methods
	SCINIMockMode = false
)
View Source
var ExternalTimeRecorder func(string, time.Duration)

ExternalTimeRecorder is used to track time

View Source
var FSDevDirectoryPrefix string = ""

FSDevDirectoryPrefix is for unit testing on Windows - dev is not in the same place

Functions

func DrvCfgIsSDCInstalled

func DrvCfgIsSDCInstalled() bool

DrvCfgIsSDCInstalled will check to see if the SDC kernel module is loaded

func DrvCfgQueryGUID

func DrvCfgQueryGUID() (string, error)

DrvCfgQueryGUID will return the GUID of the locally installed SDC

func DrvCfgQueryRescan

func DrvCfgQueryRescan() (string, error)

DrvCfgQueryRescan preforms a rescan

func DrvCfgQuerySystems

func DrvCfgQuerySystems() (*[]ConfiguredCluster, error)

DrvCfgQuerySystems will return the configured MDM endpoints for the locally installed SDC

func GetLink(links []*types.Link, rel string) (*types.Link, error)

GetLink returns a link

func GetLinkFromSdc

func GetLinkFromSdc(sdc *types.Sdc, rel string) (*types.Link, error)

GetLinkFromSdc returns a link created basis on relation

func GetSdcLocalGUID

func GetSdcLocalGUID() (string, error)

GetSdcLocalGUID returns GUID

func StringPtr

func StringPtr(v string) *string

func TimeSpent

func TimeSpent(functionName string, startTime time.Time)

TimeSpent is used to track time spent

Types

type BlockServiceOperationsMap

type BlockServiceOperationsMap struct {
}

BlockServiceOperationsMap defines struct for BlockServiceOperationsMap

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client defines struct for Client

func NewClient

func NewClient() (client *Client, err error)

NewClient returns a new client

func NewClientWithArgs

func NewClientWithArgs(
	endpoint string,
	version string,
	insecure,
	useCerts bool) (client *Client, err error)

NewClientWithArgs returns a new client

func (*Client) Authenticate

func (c *Client) Authenticate(configConnect *ConfigConnect) (Cluster, error)

Authenticate controls authentication to client

func (*Client) CreateTemplate

func (c *Client) CreateTemplate() *Client

func (*Client) CreateVolume

func (c *Client) CreateVolume(
	volume *types.VolumeParam,
	storagePoolName, protectionDomain string) (*types.VolumeResp, error)

CreateVolume creates a volume

func (*Client) DeleteTemplate

func (c *Client) DeleteTemplate(
	templateId string) (interface{}, error)

func (*Client) FindStoragePool

func (c *Client) FindStoragePool(
	id, name, href, protectionDomain string) (*types.StoragePool, error)

FindStoragePool returns a StoragePool

func (*Client) FindSystem

func (c *Client) FindSystem(
	instanceID, name, href string) (*System, error)

FindSystem returns a system based on ID or name

func (*Client) FindVolumeID

func (c *Client) FindVolumeID(volumename string) (string, error)

FindVolumeID returns a VolumeID

func (*Client) FromModel

func (c *Client) FromModel(
	templateParameters template.DefaultTemplate) (interface{}, error)

CreateTemplate creates a blank template

func (*Client) FromString

func (c *Client) FromString(
	templateString string) (interface{}, error)

func (*Client) GetInstance

func (c *Client) GetInstance(systemhref string) ([]*types.System, error)

GetInstance returns an instance

func (*Client) GetStoragePool

func (c *Client) GetStoragePool(
	storagepoolhref string) ([]*types.StoragePool, error)

GetStoragePool returns a storagepool

func (*Client) GetSystems

func (c *Client) GetSystems() ([]*types.System, error)

GetSystems returns systems

func (*Client) GetTemplate

func (c *Client) GetTemplate(
	templateName string) (interface{}, error)

func (*Client) GetToken

func (c *Client) GetToken() string

GetToken returns token

func (*Client) GetVolume

func (c *Client) GetVolume(
	volumehref, volumeid, ancestorvolumeid, volumename string,
	getSnapshots bool) ([]*types.Volume, error)

GetVolume returns a volume

func (*Client) SetToken

func (c *Client) SetToken(token string)

SetToken sets token

func (*Client) UpdateTemplate

func (c *Client) UpdateTemplate(
	templateString, templateID string) (interface{}, error)

type ClientPersistent

type ClientPersistent struct {
	// contains filtered or unexported fields
}

ClientPersistent defines struct for ClientPersistent

type Cluster

type Cluster struct {
}

Cluster defines struct for Cluster

type ComponentResources

type ComponentResources struct {
	Id          *string              `json:"id"`
	Guid        string               `json:"guid"`
	DisplayName string               `json:"displayName"`
	Parameters  []ResourceParameters `json:"parameters"`
}

type ConfigConnect

type ConfigConnect struct {
	Endpoint string
	Version  string
	Username string
	Password string
}

ConfigConnect defines struct for ConfigConnect

type ConfiguredCluster

type ConfiguredCluster struct {
	// SystemID is the MDM cluster system ID
	SystemID string
	// SdcID is the ID of the SDC as known to the MDM cluster
	SdcID string
}

ConfiguredCluster contains configuration information for one connected system

type Device

type Device struct {
	Device *types.Device
	// contains filtered or unexported fields
}

Device defines struct for Device

func NewDevice

func NewDevice(client *Client) *Device

NewDevice returns a new Device

func NewDeviceEx

func NewDeviceEx(client *Client, device *types.Device) *Device

NewDeviceEx returns a new Device

type FirmwareRepository

type FirmwareRepository struct {
	Id                      string   `json:"id"`
	Name                    *string  `json:"name"`
	SourceLocation          *string  `json:"sourceLocation"`
	SourceType              *string  `json:"sourceType"`
	DiskLocation            *string  `json:"diskLocation"`
	Filename                *string  `json:"filename"`
	Md5Hash                 *string  `json:"md5Hash"`
	Username                *string  `json:"username"`
	Password                *string  `json:"password"`
	DownloadStatus          *string  `json:"downloadStatus"`
	CreatedDate             *string  `json:"createdDate"`
	CreatedBy               *string  `json:"createdBy"`
	UpdatedDate             *string  `json:"updatedDate"`
	UpdatedBy               *string  `json:"updatedBy"`
	DefaultCatalog          bool     `json:"defaultCatalog"`
	Embedded                bool     `json:"embedded"`
	State                   *string  `json:"state"`
	SoftwareComponents      []string `json:"softwareComponents"`
	SoftwareBundles         []string `json:"softwareBundles"`
	Deployments             []string `json:"deployments"`
	BundleCount             int      `json:"bundleCount"`
	ComponentCount          int      `json:"componentCount"`
	UserBundleCount         int      `json:"userBundleCount"`
	Minimal                 bool     `json:"minimal"`
	DownloadProgress        int      `json:"downloadProgress"`
	ExtractProgress         int      `json:"extractProgress"`
	FileSizeInGigabytes     *string  `json:"fileSizeInGigabytes"`
	SignedKeySourceLocation *string  `json:"signedKeySourceLocation"`
	Signature               *string  `json:"signature"`
	Rcmapproved             bool     `json:"rcmapproved"`
}

firmwareRepository defines struct for firmwareRepository

type ParameterHelper

type ParameterHelper struct {
}

type ProtectionDomain

type ProtectionDomain struct {
	ProtectionDomain *types.ProtectionDomain
	// contains filtered or unexported fields
}

ProtectionDomain defines a struct for ProtectionDomain

func NewProtectionDomain

func NewProtectionDomain(client *Client) *ProtectionDomain

NewProtectionDomain returns a new ProtectionDomain

func NewProtectionDomainEx

func NewProtectionDomainEx(client *Client, pd *types.ProtectionDomain) *ProtectionDomain

NewProtectionDomainEx returns a new ProtectionDomain

func (*ProtectionDomain) CreateSds

func (pd *ProtectionDomain) CreateSds(
	name string, ipList []string) (string, error)

CreateSds creates a new Sds

func (*ProtectionDomain) CreateStoragePool

func (pd *ProtectionDomain) CreateStoragePool(name string, mediaType string) (string, error)

CreateStoragePool creates a storage pool

func (*ProtectionDomain) DeleteStoragePool

func (pd *ProtectionDomain) DeleteStoragePool(name string) error

DeleteStoragePool will delete a storage pool

func (*ProtectionDomain) FindSds

func (pd *ProtectionDomain) FindSds(
	field, value string) (*types.Sds, error)

FindSds returns a Sds

func (*ProtectionDomain) FindStoragePool

func (pd *ProtectionDomain) FindStoragePool(
	id, name, href string) (*types.StoragePool, error)

FindStoragePool returns a storagepool based on id or name

func (*ProtectionDomain) GetSds

func (pd *ProtectionDomain) GetSds() ([]types.Sds, error)

GetSds returns a Sds

func (*ProtectionDomain) GetStoragePool

func (pd *ProtectionDomain) GetStoragePool(
	storagepoolhref string) ([]*types.StoragePool, error)

GetStoragePool returns a storage pool

type ResourceParameters

type ResourceParameters struct {
	Guid                     *string     `json:"guid"`
	Id                       string      `json:"id"`
	Value                    string      `json:"value"`
	Type                     string      `json:"type"`
	DisplayName              string      `json:"displayName"`
	Required                 bool        `json:"required"`
	RequiredAtDeployment     bool        `json:"requiredAtDeployment"`
	HideFromTemplate         bool        `json:"hideFromTemplate"`
	Min                      *string     `json:"min"`
	Max                      *string     `json:"max"`
	DependencyTarget         *string     `json:"dependencyTarget"`
	DependencyValue          *string     `json:"dependencyValue"`
	Dependencies             []string    `json:"dependencies"`
	Networks                 *string     `json:"networks"`
	NetworkIpAddressList     *string     `json:"networkIpAddressList"`
	NetworkConfiguration     *string     `json:"networkConfiguration"`
	RaidConfiguration        *string     `json:"raidConfiguration"`
	Options                  []string    `json:"options"`
	ToolTip                  string      `json:"toolTip"`
	ReadOnly                 bool        `json:"readOnly"`
	Generated                bool        `json:"generated"`
	Group                    *string     `json:"group"`
	InfoIcon                 bool        `json:"infoIcon"`
	MaxLength                int         `json:"maxLength"`
	Step                     int         `json:"step"`
	OptionsSortable          bool        `json:"optionsSortable"`
	PreservedForDeployment   bool        `json:"preservedForDeployment"`
	ScaleIODiskConfiguration *string     `json:"scaleIODiskConfiguration"`
	ProtectionDomainSettings *string     `json:"protectionDomainSettings"`
	FaultSetSettings         *string     `json:"faultSetSettings"`
	Attributes               interface{} `json:"attributes"`
	VdsConfiguration         *string     `json:"vdsConfiguration"`
	NodeSelection            *string     `json:"nodeSelection"`
}

type Sdc

type Sdc struct {
	Sdc *types.Sdc
	// contains filtered or unexported fields
}

Sdc defines struct for Sdc

func NewSdc

func NewSdc(client *Client, sdc *types.Sdc) *Sdc

NewSdc returns a new Sdc

func (*Sdc) FindVolumes

func (sdc *Sdc) FindVolumes() ([]*Volume, error)

FindVolumes returns volumes

func (*Sdc) GetStatistics

func (sdc *Sdc) GetStatistics() (*types.SdcStatistics, error)

GetStatistics returns a Sdc statistcs

func (*Sdc) GetVolume

func (sdc *Sdc) GetVolume() ([]*types.Volume, error)

GetVolume returns a volume

type SdcMappedVolume

type SdcMappedVolume struct {
	MdmID     string
	VolumeID  string
	SdcDevice string
}

SdcMappedVolume defines struct for SdcMappedVolume

func GetLocalVolumeMap

func GetLocalVolumeMap() (mappedVolumes []*SdcMappedVolume, err error)

GetLocalVolumeMap will return all SdcMappedVolume entries

func GetLocalVolumeMapByRegex

func GetLocalVolumeMapByRegex(systemIDRegex string, volumeIDRegex string) (mappedVolumes []*SdcMappedVolume, err error)

GetLocalVolumeMapByRegex will return the SdcMappedVolume entries matching supplied regex values

type Sds

type Sds struct {
	Sds *types.Sds
	// contains filtered or unexported fields
}

Sds defines struct for Sds

func NewSds

func NewSds(client *Client) *Sds

NewSds returns a new Sds

func NewSdsEx

func NewSdsEx(client *Client, sds *types.Sds) *Sds

NewSdsEx returns a new SdsEx

type StoragePool

type StoragePool struct {
	StoragePool *types.StoragePool
	// contains filtered or unexported fields
}

StoragePool struct defines struct for StoragePool

func NewStoragePool

func NewStoragePool(client *Client) *StoragePool

NewStoragePool returns a new StoragePool

func NewStoragePoolEx

func NewStoragePoolEx(client *Client, pool *types.StoragePool) *StoragePool

NewStoragePoolEx returns a new StoragePoolEx

func (*StoragePool) AttachDevice

func (sp *StoragePool) AttachDevice(
	path string,
	sdsID string) (string, error)

AttachDevice attaches a device

func (*StoragePool) CreateVolume

func (sp *StoragePool) CreateVolume(
	volume *types.VolumeParam) (*types.VolumeResp, error)

CreateVolume creates a volume

func (*StoragePool) FindDevice

func (sp *StoragePool) FindDevice(
	field, value string) (*types.Device, error)

FindDevice returns a Device

func (*StoragePool) FindVolumeID

func (sp *StoragePool) FindVolumeID(volumename string) (string, error)

FindVolumeID retruns a volume ID based on name

func (*StoragePool) GetDevice

func (sp *StoragePool) GetDevice() ([]types.Device, error)

GetDevice returns a device

func (*StoragePool) GetStatistics

func (sp *StoragePool) GetStatistics() (*types.Statistics, error)

GetStatistics returns statistics

func (*StoragePool) GetVolume

func (sp *StoragePool) GetVolume(
	volumehref, volumeid, ancestorvolumeid, volumename string,
	getSnapshots bool) ([]*types.Volume, error)

GetVolume returns a volume

type System

type System struct {
	System *types.System
	// contains filtered or unexported fields
}

System defines struct for System

func NewSystem

func NewSystem(client *Client) *System

NewSystem returns a new system

func (*System) ChangeSdcName

func (s *System) ChangeSdcName(idOfSdc, name string) (*Sdc, error)

ChangeSdcName returns a Sdc after changing its name

func (*System) CreateProtectionDomain

func (s *System) CreateProtectionDomain(name string) (string, error)

CreateProtectionDomain creates a ProtectionDomain

func (*System) CreateSnapshotConsistencyGroup

func (s *System) CreateSnapshotConsistencyGroup(
	snapshotVolumesParam *types.SnapshotVolumesParam) (*types.SnapshotVolumesResp, error)

CreateSnapshotConsistencyGroup creates a snapshot consistency group

func (*System) DeleteProtectionDomain

func (s *System) DeleteProtectionDomain(name string) error

DeleteProtectionDomain will delete a protection domain

func (*System) FindProtectionDomain

func (s *System) FindProtectionDomain(
	id, name, href string) (*types.ProtectionDomain, error)

FindProtectionDomain returns a ProtectionDomain

func (*System) FindSdc

func (s *System) FindSdc(field, value string) (*Sdc, error)

FindSdc returns a Sdc

func (*System) GetProtectionDomain

func (s *System) GetProtectionDomain(
	pdhref string) ([]*types.ProtectionDomain, error)

GetProtectionDomain returns a ProtectionDomain

func (*System) GetScsiInitiator

func (s *System) GetScsiInitiator() ([]types.ScsiInitiator, error)

GetScsiInitiator returns a ScsiInitiator

func (*System) GetSdc

func (s *System) GetSdc() ([]types.Sdc, error)

GetSdc returns a Sdc

func (*System) GetSdcById

func (s *System) GetSdcById(id string) (*Sdc, error)

GetSdcById returns a Sdc searched by id

func (*System) GetStatistics

func (s *System) GetStatistics() (*types.Statistics, error)

GetStatistics returns system statistics

func (*System) GetUser

func (s *System) GetUser() ([]types.User, error)

GetUser returns user

type TemplateComponent

type TemplateComponent struct {
	Id                string               `json:"id"`
	ComponentID       string               `json:"componentID"`
	Name              string               `json:"name"`
	Type              string               `json:"type"`
	SubType           string               `json:"subType"`
	Resources         []ComponentResources `json:"resources"`
	RefId             *string              `json:"refId"`
	Cloned            bool                 `json:"cloned"`
	ClonedFromId      *string              `json:"clonedFromId"`
	ManageFirmware    bool                 `json:"manageFirmware"`
	Brownfield        bool                 `json:"brownfield"`
	Instances         int                  `json:"instances"`
	ClonedFromAsmGuid *string              `json:"clonedFromAsmGuid"`
	Ip                *string              `json:"ip"`
}

TemplateComponent defines struct for TemplateComponent

type TemplateComponentGen

type TemplateComponentGen struct {
	ID          string `json:"id"`
	ComponentID string `json:"componentID"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	SubType     string `json:"subType"`
	Resources   []struct {
		GUID        interface{} `json:"guid"`
		ID          string      `json:"id"`
		DisplayName string      `json:"displayName"`
		Parameters  []struct {
			GUID                 interface{}   `json:"guid"`
			ID                   string        `json:"id"`
			Value                string        `json:"value"`
			Type                 string        `json:"type"`
			DisplayName          string        `json:"displayName"`
			Required             bool          `json:"required"`
			RequiredAtDeployment bool          `json:"requiredAtDeployment"`
			HideFromTemplate     bool          `json:"hideFromTemplate"`
			Min                  interface{}   `json:"min"`
			Max                  interface{}   `json:"max"`
			DependencyTarget     interface{}   `json:"dependencyTarget"`
			DependencyValue      interface{}   `json:"dependencyValue"`
			Dependencies         []interface{} `json:"dependencies"`
			Networks             interface{}   `json:"networks"`
			NetworkIPAddressList interface{}   `json:"networkIpAddressList"`
			NetworkConfiguration interface{}   `json:"networkConfiguration"`
			RaidConfiguration    interface{}   `json:"raidConfiguration"`
			Options              []struct {
				ID               interface{}   `json:"id"`
				Value            string        `json:"value"`
				Name             string        `json:"name"`
				DependencyTarget interface{}   `json:"dependencyTarget"`
				DependencyValue  interface{}   `json:"dependencyValue"`
				Dependencies     []interface{} `json:"dependencies"`
				Attributes       struct {
				} `json:"attributes"`
			} `json:"options"`
			ToolTip                  string      `json:"toolTip"`
			ReadOnly                 bool        `json:"readOnly"`
			Generated                bool        `json:"generated"`
			Group                    interface{} `json:"group"`
			InfoIcon                 bool        `json:"infoIcon"`
			MaxLength                int         `json:"maxLength"`
			Step                     int         `json:"step"`
			OptionsSortable          bool        `json:"optionsSortable"`
			PreservedForDeployment   bool        `json:"preservedForDeployment"`
			ScaleIODiskConfiguration interface{} `json:"scaleIODiskConfiguration"`
			ProtectionDomainSettings interface{} `json:"protectionDomainSettings"`
			FaultSetSettings         interface{} `json:"faultSetSettings"`
			Attributes               struct {
			} `json:"attributes"`
			VdsConfiguration interface{} `json:"vdsConfiguration"`
			NodeSelection    interface{} `json:"nodeSelection"`
		} `json:"parameters"`
	} `json:"resources"`
	RefID             interface{} `json:"refId"`
	Cloned            bool        `json:"cloned"`
	ClonedFromID      interface{} `json:"clonedFromId"`
	ManageFirmware    bool        `json:"manageFirmware"`
	Brownfield        bool        `json:"brownfield"`
	Instances         int         `json:"instances"`
	ClonedFromAsmGUID interface{} `json:"clonedFromAsmGuid"`
	IP                interface{} `json:"ip"`
}

type TemplateParam

type TemplateParam struct {
	TemplateName              string                    `json:"templateName"`
	TemplateDescription       string                    `json:"templateDescription"`
	TemplateType              string                    `json:"templateType"`
	Draft                     bool                      `json:"draft"`
	Components                []TemplateComponent       `json:"components"`
	Category                  *string                   `json:"category"`
	AllUsersAllowed           bool                      `json:"allUsersAllowed"`
	AssignedUsers             *string                   `json:"assignedUsers"`
	ManageFirmware            bool                      `json:"manageFirmware"`
	UseDefaultCatalog         bool                      `json:"useDefaultCatalog"`
	FirmwareRepository        FirmwareRepository        `json:"firmwareRepository"`
	LicenseRepository         *string                   `json:"licenseRepository"`
	Configuration             *string                   `json:"configuration"`
	ServerCount               *string                   `json:"serverCount"`
	StorageCount              *string                   `json:"storageCount"`
	ClusterCount              *string                   `json:"clusterCount"`
	ServiceCount              *string                   `json:"serviceCount"`
	SwitchCount               *string                   `json:"switchCount"`
	VmCount                   *string                   `json:"vmCount"`
	SdnasCount                *string                   `json:"sdnasCount"`
	BrownfieldTemplateType    string                    `json:"brownfieldTemplateType"`
	Networks                  *string                   `json:"networks"`
	BlockServiceOperationsMap BlockServiceOperationsMap `json:"blockServiceOperationsMap"`
}

TemplateParam defines struct for Payload send to create Template

type Volume

type Volume struct {
	Volume *types.Volume
	// contains filtered or unexported fields
}

Volume defines struct for Volume

func NewVolume

func NewVolume(client *Client) *Volume

NewVolume returns new volume

func (*Volume) GetVTree

func (v *Volume) GetVTree() (*types.VTree, error)

GetVTree returns a volume's vtree

func (*Volume) GetVolumeStatistics

func (v *Volume) GetVolumeStatistics() (*types.VolumeStatistics, error)

GetVolumeStatistics returns a volume's statistics

func (*Volume) MapVolumeSdc

func (v *Volume) MapVolumeSdc(
	mapVolumeSdcParam *types.MapVolumeSdcParam) error

MapVolumeSdc maps a volume to Sdc

func (*Volume) RemoveVolume

func (v *Volume) RemoveVolume(removeMode string) error

RemoveVolume removes a volume

func (*Volume) SetMappedSdcLimits

func (v *Volume) SetMappedSdcLimits(
	setMappedSdcLimitsParam *types.SetMappedSdcLimitsParam) error

SetMappedSdcLimits sets Sdc mapped limits

func (*Volume) SetVolumeName

func (v *Volume) SetVolumeName(newName string) error

SetVolumeName sets a volume's name

func (*Volume) SetVolumeSize

func (v *Volume) SetVolumeSize(sizeInGB string) error

SetVolumeSize sets a volume's size

func (*Volume) UnmapVolumeSdc

func (v *Volume) UnmapVolumeSdc(
	unmapVolumeSdcParam *types.UnmapVolumeSdcParam) error

UnmapVolumeSdc unmaps a volume from Sdc

Directories

Path Synopsis
types
v1

Jump to

Keyboard shortcuts

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