Versions in this module Expand all Collapse all v0 v0.0.2 Nov 10, 2022 v0.0.1 Feb 21, 2020 Changes in this version + const BackendRename + const Deleting + const Failed + const InvalidUpdate + const Offline + const Online + const PasswordChange + const SnapshotNameFormat + const SnapshotStateMissingBackend + const SnapshotStateMissingVolume + const SnapshotStateOnline + const SnapshotTimestampFormat + const Unknown + const UsernameChange + const VolumeAccessInfoChange + const VolumeStateDeleting + const VolumeStateMissingBackend + const VolumeStateOnline + const VolumeStateUnknown + const VolumeStateUpgrading + func MakeSnapshotID(volumeName, snapshotName string) string + func ParseSnapshotID(snapshotID string) (string, string, error) + type Backend struct + BackendUUID string + Driver Driver + Name string + Online bool + State BackendState + Storage map[string]*Pool + Volumes map[string]*Volume + func NewFailedStorageBackend(driver Driver) *Backend + func NewStorageBackend(driver Driver) (*Backend, error) + func (b *Backend) AddStoragePool(pool *Pool) + func (b *Backend) AddVolume(volConfig *VolumeConfig, storagePool *Pool, ...) (*Volume, error) + func (b *Backend) CloneVolume(volConfig *VolumeConfig) (*Volume, error) + func (b *Backend) ConstructExternal() *BackendExternal + func (b *Backend) ConstructPersistent() *BackendPersistent + func (b *Backend) CreateSnapshot(snapConfig *SnapshotConfig, volConfig *VolumeConfig) (*Snapshot, error) + func (b *Backend) DeleteSnapshot(snapConfig *SnapshotConfig, volConfig *VolumeConfig) error + func (b *Backend) GetDriverName() string + func (b *Backend) GetProtocol() tridentconfig.Protocol + func (b *Backend) GetSnapshot(snapConfig *SnapshotConfig) (*Snapshot, error) + func (b *Backend) GetSnapshots(volConfig *VolumeConfig) ([]*Snapshot, error) + func (b *Backend) GetUpdateType(origBackend *Backend) *roaring.Bitmap + func (b *Backend) GetVolumeExternal(volumeName string) (*VolumeExternal, error) + func (b *Backend) HasVolumes() bool + func (b *Backend) ImportVolume(volConfig *VolumeConfig) (*Volume, error) + func (b *Backend) RemoveCachedVolume(volumeName string) + func (b *Backend) RemoveVolume(volConfig *VolumeConfig) error + func (b *Backend) RenameVolume(volConfig *VolumeConfig, newName string) error + func (b *Backend) ResizeVolume(volConfig *VolumeConfig, newSize string) error + func (b *Backend) RestoreSnapshot(snapConfig *SnapshotConfig, volConfig *VolumeConfig) error + func (b *Backend) Terminate() + type BackendExternal struct + BackendUUID string + Config interface{} + Name string + Online bool + Protocol tridentconfig.Protocol + State BackendState + Storage map[string]interface{} + Volumes []string + type BackendPersistent struct + BackendUUID string + Config PersistentStorageBackendConfig + Name string + Online bool + State BackendState + Version string + func (p *BackendPersistent) ExtractBackendSecrets(secretName string) (*BackendPersistent, map[string]string, error) + func (p *BackendPersistent) InjectBackendSecrets(secretMap map[string]string) error + func (p *BackendPersistent) MarshalConfig() (string, error) + type BackendState string + func (s BackendState) IsDeleting() bool + func (s BackendState) IsFailed() bool + func (s BackendState) IsOffline() bool + func (s BackendState) IsOnline() bool + func (s BackendState) IsUnknown() bool + func (s BackendState) String() string + type ByVolumeExternalName []*VolumeExternal + func (a ByVolumeExternalName) Len() int + func (a ByVolumeExternalName) Less(i, j int) bool + func (a ByVolumeExternalName) Swap(i, j int) + type Driver interface + Create func(volConfig *VolumeConfig, storagePool *Pool, ...) error + CreateClone func(volConfig *VolumeConfig) error + CreateFollowup func(volConfig *VolumeConfig) error + CreatePrepare func(volConfig *VolumeConfig) error + CreateSnapshot func(snapConfig *SnapshotConfig) (*Snapshot, error) + DeleteSnapshot func(snapConfig *SnapshotConfig) error + Destroy func(name string) error + Get func(name string) error + GetExternalConfig func() interface{} + GetInternalVolumeName func(name string) string + GetProtocol func() tridentconfig.Protocol + GetSnapshot func(snapConfig *SnapshotConfig) (*Snapshot, error) + GetSnapshots func(volConfig *VolumeConfig) ([]*Snapshot, error) + GetStorageBackendSpecs func(backend *Backend) error + GetUpdateType func(driver Driver) *roaring.Bitmap + GetVolumeExternal func(name string) (*VolumeExternal, error) + GetVolumeExternalWrappers func(chan *VolumeExternalWrapper) + Import func(volConfig *VolumeConfig, originalName string) error + Initialize func(tridentconfig.DriverContext, string, *drivers.CommonStorageDriverConfig) error + Initialized func() bool + Name func() string + Publish func(name string, publishInfo *utils.VolumePublishInfo) error + Rename func(name string, newName string) error + Resize func(volConfig *VolumeConfig, sizeBytes uint64) error + RestoreSnapshot func(snapConfig *SnapshotConfig) error + StoreConfig func(b *PersistentStorageBackendConfig) + Terminate func() + type ImportVolumeRequest struct + Backend string + InternalName string + NoManage bool + PVCData string + func (r *ImportVolumeRequest) Validate() error + type NotManagedError struct + func (e *NotManagedError) Error() string + type PVUpgradeConfig struct + OwnedPodsForPVC []string + PVCConfig *v1.PersistentVolumeClaim + PVConfig *v1.PersistentVolume + type PersistentStorageBackendConfig struct + AWSConfig *drivers.AWSNFSStorageDriverConfig + AzureConfig *drivers.AzureNFSStorageDriverConfig + EseriesConfig *drivers.ESeriesStorageDriverConfig + FakeStorageDriverConfig *drivers.FakeStorageDriverConfig + GCPConfig *drivers.GCPNFSStorageDriverConfig + OntapConfig *drivers.OntapStorageDriverConfig + SolidfireConfig *drivers.SolidfireStorageDriverConfig + type Pool struct + Attributes map[string]sa.Offer + Backend *Backend + InternalAttributes map[string]string + Name string + StorageClasses []string + func NewStoragePool(backend *Backend, name string) *Pool + func (pool *Pool) AddStorageClass(class string) + func (pool *Pool) ConstructExternal() *PoolExternal + func (pool *Pool) RemoveStorageClass(class string) bool + type PoolExternal struct + Attributes map[string]sa.Offer + Name string + StorageClasses []string + type Snapshot struct + Config *SnapshotConfig + Created string + SizeBytes int64 + State SnapshotState + func NewSnapshot(config *SnapshotConfig, created string, sizeBytes int64) *Snapshot + func (s *Snapshot) ConstructClone() *Snapshot + func (s *Snapshot) ConstructExternal() *SnapshotExternal + func (s *Snapshot) ConstructPersistent() *SnapshotPersistent + func (s *Snapshot) ID() string + type SnapshotConfig struct + InternalName string + Name string + Version string + VolumeInternalName string + VolumeName string + func (c *SnapshotConfig) ID() string + func (c *SnapshotConfig) Validate() error + type SnapshotExternal struct + func (s *SnapshotExternal) ID() string + type SnapshotPersistent struct + func (s *SnapshotPersistent) ConstructExternal() *SnapshotExternal + type SnapshotState string + func (s SnapshotState) IsMissingBackend() bool + func (s SnapshotState) IsMissingVolume() bool + func (s SnapshotState) IsOnline() bool + type UpdateBackendStateRequest struct + State string + type UpgradeVolumeRequest struct + Type string + Volume string + func (r *UpgradeVolumeRequest) Validate() error + type Volume struct + BackendUUID string + Config *VolumeConfig + Orphaned bool + Pool string + State VolumeState + func NewVolume(conf *VolumeConfig, backendUUID string, pool string, orphaned bool) *Volume + func (v *Volume) ConstructExternal() *VolumeExternal + type VolumeConfig struct + AccessInfo utils.VolumeAccessInfo + AccessMode config.AccessMode + BlockSize string + CloneSourceSnapshot string + CloneSourceVolume string + CloneSourceVolumeInternal string + Encryption string + ExportPolicy string + FileSystem string + ImportBackendUUID string + ImportNotManaged bool + ImportOriginalName string + InternalName string + Name string + Network string + Protocol config.Protocol + QoS string + QoSType string + SecurityStyle string + ServiceLevel string + Size string + SnapshotDir string + SnapshotPolicy string + SnapshotReserve string + SpaceReserve string + SplitOnClone string + StorageClass string + UnixPermissions string + Version string + VolumeMode config.VolumeMode + func (c *VolumeConfig) ConstructClone() *VolumeConfig + func (c *VolumeConfig) Validate() error + type VolumeExternal struct + Backend string + BackendUUID string + Config *VolumeConfig + Orphaned bool + Pool string + State VolumeState + func (v *VolumeExternal) GetCHAPSecretName() string + type VolumeExternalWrapper struct + Error error + Volume *VolumeExternal + type VolumeOperation string + const AddSnapshot + const AddVolume + const DeleteSnapshot + const DeleteVolume + const ImportVolume + const ResizeVolume + const UpgradeVolume + type VolumeState string + func (s VolumeState) IsDeleting() bool + func (s VolumeState) IsMissingBackend() bool + func (s VolumeState) IsOnline() bool + func (s VolumeState) IsUnknown() bool + func (s VolumeState) String() string + type VolumeTransaction struct + Config *VolumeConfig + Op VolumeOperation + PVUpgradeConfig *PVUpgradeConfig + SnapshotConfig *SnapshotConfig + func (t *VolumeTransaction) Name() string