goscaleio – github.com/codedellemc/goscaleio Index | Files | Directories

package goscaleio

import "github.com/codedellemc/goscaleio"

Index

Functions

func DuplicateRequest

func DuplicateRequest(request *http.Request) (request1 *http.Request, request2 *http.Request)
func GetLink(links []*types.Link, rel string) (*types.Link, error)

func GetSdcLocalGUID

func GetSdcLocalGUID() (sdcGUID string, err error)

Types

type Client

type Client struct {
	Token       string
	SIOEndpoint url.URL
	Http        http.Client
	Insecure    string
	ShowBody    bool
	// contains filtered or unexported fields
}

func NewClient

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

func NewClientWithArgs

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

func (*Client) Authenticate

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

func (*Client) CreateVolume

func (client *Client) CreateVolume(volume *types.VolumeParam, storagePoolName string) (volumeResp *types.VolumeResp, err error)

func (*Client) FindStoragePool

func (client *Client) FindStoragePool(id, name, href string) (storagePool *types.StoragePool, err error)

func (*Client) FindSystem

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

func (*Client) FindVolumeID

func (client *Client) FindVolumeID(volumename string) (volumeID string, err error)

func (*Client) GetInstance

func (client *Client) GetInstance(systemhref string) (systems []*types.System, err error)

func (*Client) GetStoragePool

func (client *Client) GetStoragePool(storagepoolhref string) (storagePools []*types.StoragePool, err error)

func (*Client) GetVolume

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

func (*Client) NewRequest

func (c *Client) NewRequest(params map[string]string, method string, u url.URL, body io.Reader) *http.Request

type ClientPersistent

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

type Cluster

type Cluster struct {
}

type ConfigConnect

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

type Device

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

func NewDevice

func NewDevice(client *Client) *Device

func NewDeviceEx

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

type ProtectionDomain

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

func NewProtectionDomain

func NewProtectionDomain(client *Client) *ProtectionDomain

func NewProtectionDomainEx

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

func (*ProtectionDomain) CreateSds

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

func (*ProtectionDomain) CreateStoragePool

func (protectionDomain *ProtectionDomain) CreateStoragePool(name string) (string, error)

func (*ProtectionDomain) FindSds

func (protectionDomain *ProtectionDomain) FindSds(field, value string) (sds *types.Sds, err error)

func (*ProtectionDomain) FindStoragePool

func (protectionDomain *ProtectionDomain) FindStoragePool(id, name, href string) (storagePool *types.StoragePool, err error)

func (*ProtectionDomain) GetSds

func (protectionDomain *ProtectionDomain) GetSds() (sdss []types.Sds, err error)

func (*ProtectionDomain) GetStoragePool

func (protectionDomain *ProtectionDomain) GetStoragePool(storagepoolhref string) (storagePools []*types.StoragePool, err error)

type Sdc

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

func NewSdc

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

func (*Sdc) GetStatistics

func (sdc *Sdc) GetStatistics() (statistics *types.Statistics, err error)

func (*Sdc) GetVolume

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

type SdcMappedVolume

type SdcMappedVolume struct {
	MdmID     string
	VolumeID  string
	SdcDevice string
}

func GetLocalVolumeMap

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

type Sds

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

func NewSds

func NewSds(client *Client) *Sds

func NewSdsEx

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

type StoragePool

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

func NewStoragePool

func NewStoragePool(client *Client) *StoragePool

func NewStoragePoolEx

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

func (*StoragePool) AttachDevice

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

func (*StoragePool) CreateVolume

func (storagePool *StoragePool) CreateVolume(volume *types.VolumeParam) (volumeResp *types.VolumeResp, err error)

func (*StoragePool) FindDevice

func (storagePool *StoragePool) FindDevice(field, value string) (device *types.Device, err error)

func (*StoragePool) FindVolumeID

func (storagePool *StoragePool) FindVolumeID(volumename string) (volumeID string, err error)

func (*StoragePool) GetDevice

func (storagePool *StoragePool) GetDevice() (devices []types.Device, err error)

func (*StoragePool) GetStatistics

func (storagePool *StoragePool) GetStatistics() (statistics *types.Statistics, err error)

func (*StoragePool) GetVolume

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

type System

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

func NewSystem

func NewSystem(client *Client) *System

func (*System) CreateProtectionDomain

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

func (*System) CreateSnapshotConsistencyGroup

func (system *System) CreateSnapshotConsistencyGroup(snapshotVolumesParam *types.SnapshotVolumesParam) (snapshotVolumesResp *types.SnapshotVolumesResp, err error)

func (*System) FindProtectionDomain

func (system *System) FindProtectionDomain(id, name, href string) (protectionDomain *types.ProtectionDomain, err error)

func (*System) FindSdc

func (system *System) FindSdc(field, value string) (sdc *Sdc, err error)

func (*System) GetProtectionDomain

func (system *System) GetProtectionDomain(protectiondomainhref string) (protectionDomains []*types.ProtectionDomain, err error)

func (*System) GetScsiInitiator

func (system *System) GetScsiInitiator() (scsiInitiators []types.ScsiInitiator, err error)

func (*System) GetSdc

func (system *System) GetSdc() (sdcs []types.Sdc, err error)

func (*System) GetStatistics

func (system *System) GetStatistics() (statistics *types.Statistics, err error)

func (*System) GetUser

func (system *System) GetUser() (user []types.User, err error)

type Volume

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

func NewVolume

func NewVolume(client *Client) *Volume

func (*Volume) GetVTree

func (volume *Volume) GetVTree() (vtree *types.VTree, err error)

func (*Volume) MapVolumeSdc

func (volume *Volume) MapVolumeSdc(mapVolumeSdcParam *types.MapVolumeSdcParam) (err error)

func (*Volume) RemoveVolume

func (volume *Volume) RemoveVolume(removeMode string) (err error)

func (*Volume) UnmapVolumeSdc

func (volume *Volume) UnmapVolumeSdc(unmapVolumeSdcParam *types.UnmapVolumeSdcParam) (err error)

Source Files

api.go certs.go device.go instance.go protectiondomain.go scsiinitiator.go sdc.go sds.go storagepool.go system.go user.go volume.go

Directories

PathSynopsis
types
types/v1
Version
v0.1.0 (latest)
Published
Oct 27, 2017
Platform
darwin/amd64
Imports
21 packages
Last checked
1 month ago

Tools for package owners.