Documentation ¶
Index ¶
- Constants
- func MakeSolidFireName(name string) string
- type SANStorageDriver
- func (d *SANStorageDriver) AddMissingVolumesToVag(vagID int64, vols []int64) error
- func (d *SANStorageDriver) Create(name string, sizeBytes uint64, opts map[string]string) error
- func (d *SANStorageDriver) CreateClone(name, sourceName, snapshotName string, opts map[string]string) error
- func (d *SANStorageDriver) CreateFollowup(volConfig *storage.VolumeConfig) error
- func (d *SANStorageDriver) CreatePrepare(volConfig *storage.VolumeConfig) bool
- func (d *SANStorageDriver) Destroy(name string) error
- func (d *SANStorageDriver) Get(name string) error
- func (d *SANStorageDriver) GetExternalConfig() interface{}
- func (d *SANStorageDriver) GetInternalVolumeName(name string) string
- func (d *SANStorageDriver) GetProtocol() tridentconfig.Protocol
- func (d *SANStorageDriver) GetStorageBackendSpecs(backend *storage.Backend) error
- func (d *SANStorageDriver) GetUpdateType(driverOrig storage.Driver) *roaring.Bitmap
- func (d *SANStorageDriver) GetVolume(name string) (api.Volume, error)
- func (d *SANStorageDriver) GetVolumeExternal(name string) (*storage.VolumeExternal, error)
- func (d *SANStorageDriver) GetVolumeExternalWrappers(channel chan *storage.VolumeExternalWrapper)
- func (d *SANStorageDriver) GetVolumeOpts(volConfig *storage.VolumeConfig, pool *storage.Pool, ...) (map[string]string, error)
- func (d *SANStorageDriver) Initialize(context tridentconfig.DriverContext, configJSON string, ...) error
- func (d *SANStorageDriver) Initialized() bool
- func (d SANStorageDriver) Name() string
- func (d *SANStorageDriver) Publish(name string, publishInfo *utils.VolumePublishInfo) error
- func (d *SANStorageDriver) Resize(name string, sizeBytes uint64) error
- func (d *SANStorageDriver) SnapshotList(name string) ([]storage.Snapshot, error)
- func (d *SANStorageDriver) StoreConfig(b *storage.PersistentStorageBackendConfig)
- func (d *SANStorageDriver) Terminate()
- func (d *SANStorageDriver) VerifyVags(vags []int64) ([]int64, error)
- type StorageDriverConfigExternal
- type Telemetry
Constants ¶
const MinimumVolumeSizeBytes = 1000000000 // 1 GB
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SANStorageDriver ¶
type SANStorageDriver struct { Config drivers.SolidfireStorageDriverConfig Client *api.Client AccountID int64 AccessGroups []int64 LegacyNamePrefix string InitiatorIFace string // contains filtered or unexported fields }
SANStorageDriver is for iSCSI storage provisioning
func (*SANStorageDriver) AddMissingVolumesToVag ¶
func (d *SANStorageDriver) AddMissingVolumesToVag(vagID int64, vols []int64) error
AddMissingVolumesToVag adds volume ID's in the provided list that aren't already a member of the specified VAG
func (*SANStorageDriver) CreateClone ¶
func (d *SANStorageDriver) CreateClone(name, sourceName, snapshotName string, opts map[string]string) error
Create a volume clone
func (*SANStorageDriver) CreateFollowup ¶
func (d *SANStorageDriver) CreateFollowup(volConfig *storage.VolumeConfig) error
func (*SANStorageDriver) CreatePrepare ¶
func (d *SANStorageDriver) CreatePrepare(volConfig *storage.VolumeConfig) bool
func (*SANStorageDriver) Destroy ¶
func (d *SANStorageDriver) Destroy(name string) error
Destroy the requested docker volume
func (*SANStorageDriver) Get ¶
func (d *SANStorageDriver) Get(name string) error
Get tests for the existence of a volume
func (*SANStorageDriver) GetExternalConfig ¶
func (d *SANStorageDriver) GetExternalConfig() interface{}
func (*SANStorageDriver) GetInternalVolumeName ¶
func (d *SANStorageDriver) GetInternalVolumeName(name string) string
func (*SANStorageDriver) GetProtocol ¶
func (d *SANStorageDriver) GetProtocol() tridentconfig.Protocol
func (*SANStorageDriver) GetStorageBackendSpecs ¶
func (d *SANStorageDriver) GetStorageBackendSpecs(backend *storage.Backend) error
GetStorageBackendSpecs retrieves storage backend capabilities
func (*SANStorageDriver) GetUpdateType ¶
func (d *SANStorageDriver) GetUpdateType(driverOrig storage.Driver) *roaring.Bitmap
GetUpdateType returns a bitmap populated with updates to the driver
func (*SANStorageDriver) GetVolume ¶
func (d *SANStorageDriver) GetVolume(name string) (api.Volume, error)
func (*SANStorageDriver) GetVolumeExternal ¶
func (d *SANStorageDriver) GetVolumeExternal(name string) (*storage.VolumeExternal, error)
GetVolumeExternal queries the storage backend for all relevant info about a single container volume managed by this driver and returns a VolumeExternal representation of the volume.
func (*SANStorageDriver) GetVolumeExternalWrappers ¶
func (d *SANStorageDriver) GetVolumeExternalWrappers( channel chan *storage.VolumeExternalWrapper)
GetVolumeExternalWrappers queries the storage backend for all relevant info about container volumes managed by this driver. It then writes a VolumeExternal representation of each volume to the supplied channel, closing the channel when finished.
func (*SANStorageDriver) GetVolumeOpts ¶
func (*SANStorageDriver) Initialize ¶
func (d *SANStorageDriver) Initialize( context tridentconfig.DriverContext, configJSON string, commonConfig *drivers.CommonStorageDriverConfig, ) error
Initialize from the provided config
func (*SANStorageDriver) Initialized ¶
func (d *SANStorageDriver) Initialized() bool
func (SANStorageDriver) Name ¶
func (d SANStorageDriver) Name() string
Name is for returning the name of this driver
func (*SANStorageDriver) Publish ¶
func (d *SANStorageDriver) Publish(name string, publishInfo *utils.VolumePublishInfo) error
Publish the volume to the host specified in publishInfo. This method may or may not be running on the host where the volume will be mounted, so it should limit itself to updating access rules, initiator groups, etc. that require some host identity (but not locality) as well as storage controller API access.
func (*SANStorageDriver) Resize ¶
func (d *SANStorageDriver) Resize(name string, sizeBytes uint64) error
Resize expands the volume size.
func (*SANStorageDriver) SnapshotList ¶
func (d *SANStorageDriver) SnapshotList(name string) ([]storage.Snapshot, error)
SnapshotList returns the list of snapshots associated with the named volume
func (*SANStorageDriver) StoreConfig ¶
func (d *SANStorageDriver) StoreConfig( b *storage.PersistentStorageBackendConfig, )
func (*SANStorageDriver) Terminate ¶
func (d *SANStorageDriver) Terminate()
func (*SANStorageDriver) VerifyVags ¶
func (d *SANStorageDriver) VerifyVags(vags []int64) ([]int64, error)
VerifyVags verifies that the provided list of VAG ID's exist, return list of those that don't
type Telemetry ¶
type Telemetry struct { tridentconfig.Telemetry Plugin string `json:"plugin"` }