Documentation ¶
Index ¶
- Constants
- type NFSStorageDriver
- func (d *NFSStorageDriver) Create(volConfig *storage.VolumeConfig, storagePool *storage.Pool, ...) error
- func (d *NFSStorageDriver) CreateClone(volConfig *storage.VolumeConfig) error
- func (d *NFSStorageDriver) CreateFollowup(volConfig *storage.VolumeConfig) error
- func (d *NFSStorageDriver) CreatePrepare(volConfig *storage.VolumeConfig) error
- func (d *NFSStorageDriver) CreateSnapshot(snapConfig *storage.SnapshotConfig) (*storage.Snapshot, error)
- func (d *NFSStorageDriver) DeleteSnapshot(snapConfig *storage.SnapshotConfig) error
- func (d *NFSStorageDriver) Destroy(name string) error
- func (d *NFSStorageDriver) Get(name string) error
- func (d *NFSStorageDriver) GetConfig() *drivers.AzureNFSStorageDriverConfig
- func (d *NFSStorageDriver) GetExternalConfig() interface{}
- func (d *NFSStorageDriver) GetInternalVolumeName(name string) string
- func (d *NFSStorageDriver) GetProtocol() tridentconfig.Protocol
- func (d *NFSStorageDriver) GetSDK() *sdk.Client
- func (d *NFSStorageDriver) GetSnapshot(snapConfig *storage.SnapshotConfig) (*storage.Snapshot, error)
- func (d *NFSStorageDriver) GetSnapshots(volConfig *storage.VolumeConfig) ([]*storage.Snapshot, error)
- func (d *NFSStorageDriver) GetStorageBackendSpecs(backend *storage.Backend) error
- func (d *NFSStorageDriver) GetUpdateType(driverOrig storage.Driver) *roaring.Bitmap
- func (d *NFSStorageDriver) GetVolumeExternal(name string) (*storage.VolumeExternal, error)
- func (d *NFSStorageDriver) GetVolumeExternalWrappers(channel chan *storage.VolumeExternalWrapper)
- func (d *NFSStorageDriver) Import(volConfig *storage.VolumeConfig, originalName string) error
- func (d *NFSStorageDriver) Initialize(context tridentconfig.DriverContext, configJSON string, ...) error
- func (d *NFSStorageDriver) Initialized() bool
- func (d *NFSStorageDriver) List() ([]string, error)
- func (d *NFSStorageDriver) Name() string
- func (d *NFSStorageDriver) Publish(name string, publishInfo *utils.VolumePublishInfo) error
- func (d *NFSStorageDriver) Rename(name string, newName string) error
- func (d *NFSStorageDriver) Resize(volConfig *storage.VolumeConfig, sizeBytes uint64) error
- func (d *NFSStorageDriver) RestoreSnapshot(snapConfig *storage.SnapshotConfig) error
- func (d *NFSStorageDriver) StoreConfig(b *storage.PersistentStorageBackendConfig)
- func (d *NFSStorageDriver) Terminate()
- type Telemetry
Constants ¶
const ( MinimumVolumeSizeBytes = 1000000000 // 1 GB MinimumANFVolumeSizeBytes = 107374182400 // 100 GiB // Constants for internal pool attributes Cookie = "cookie" Size = "size" ServiceLevel = "serviceLevel" ExportRule = "exportRule" Location = "location" VirtualNetwork = "virtualNetwork" Subnet = "subnet" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NFSStorageDriver ¶
type NFSStorageDriver struct { Config drivers.AzureNFSStorageDriverConfig SDK *sdk.Client // contains filtered or unexported fields }
NFSStorageDriver is for storage provisioning using Azure NetApp Files service in Azure
func (*NFSStorageDriver) Create ¶
func (d *NFSStorageDriver) Create( volConfig *storage.VolumeConfig, storagePool *storage.Pool, volAttributes map[string]sa.Request, ) error
Create a volume with the specified options
func (*NFSStorageDriver) CreateClone ¶
func (d *NFSStorageDriver) CreateClone(volConfig *storage.VolumeConfig) error
CreateClone clones an existing volume. If a snapshot is not specified, one is created.
func (*NFSStorageDriver) CreateFollowup ¶
func (d *NFSStorageDriver) CreateFollowup(volConfig *storage.VolumeConfig) error
func (*NFSStorageDriver) CreatePrepare ¶
func (d *NFSStorageDriver) CreatePrepare(volConfig *storage.VolumeConfig) error
func (*NFSStorageDriver) CreateSnapshot ¶
func (d *NFSStorageDriver) CreateSnapshot(snapConfig *storage.SnapshotConfig) (*storage.Snapshot, error)
CreateSnapshot creates a snapshot for the given volume
func (*NFSStorageDriver) DeleteSnapshot ¶
func (d *NFSStorageDriver) DeleteSnapshot(snapConfig *storage.SnapshotConfig) error
DeleteSnapshot creates a snapshot of a volume.
func (*NFSStorageDriver) Destroy ¶
func (d *NFSStorageDriver) Destroy(name string) error
Destroy deletes a volume.
func (*NFSStorageDriver) Get ¶
func (d *NFSStorageDriver) Get(name string) error
Test for the existence of a volume
func (*NFSStorageDriver) GetConfig ¶
func (d *NFSStorageDriver) GetConfig() *drivers.AzureNFSStorageDriverConfig
func (*NFSStorageDriver) GetExternalConfig ¶
func (d *NFSStorageDriver) GetExternalConfig() interface{}
func (*NFSStorageDriver) GetInternalVolumeName ¶
func (d *NFSStorageDriver) GetInternalVolumeName(name string) string
func (*NFSStorageDriver) GetProtocol ¶
func (d *NFSStorageDriver) GetProtocol() tridentconfig.Protocol
func (*NFSStorageDriver) GetSDK ¶
func (d *NFSStorageDriver) GetSDK() *sdk.Client
func (*NFSStorageDriver) GetSnapshot ¶
func (d *NFSStorageDriver) GetSnapshot(snapConfig *storage.SnapshotConfig) (*storage.Snapshot, error)
GetSnapshot returns a snapshot of a volume, or an error if it does not exist.
func (*NFSStorageDriver) GetSnapshots ¶
func (d *NFSStorageDriver) GetSnapshots(volConfig *storage.VolumeConfig) ([]*storage.Snapshot, error)
Return the list of snapshots associated with the specified volume
func (*NFSStorageDriver) GetStorageBackendSpecs ¶
func (d *NFSStorageDriver) GetStorageBackendSpecs(backend *storage.Backend) error
Retrieve storage capabilities and register pools with specified backend.
func (*NFSStorageDriver) GetUpdateType ¶
func (d *NFSStorageDriver) GetUpdateType(driverOrig storage.Driver) *roaring.Bitmap
GetUpdateType returns a bitmap populated with updates to the driver
func (*NFSStorageDriver) GetVolumeExternal ¶
func (d *NFSStorageDriver) 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 (*NFSStorageDriver) GetVolumeExternalWrappers ¶
func (d *NFSStorageDriver) 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 (*NFSStorageDriver) Import ¶
func (d *NFSStorageDriver) Import(volConfig *storage.VolumeConfig, originalName string) error
func (*NFSStorageDriver) Initialize ¶
func (d *NFSStorageDriver) Initialize( context tridentconfig.DriverContext, configJSON string, commonConfig *drivers.CommonStorageDriverConfig, ) error
Initialize initializes this driver from the provided config
func (*NFSStorageDriver) Initialized ¶
func (d *NFSStorageDriver) Initialized() bool
Initialized returns whether this driver has been initialized (and not terminated)
func (*NFSStorageDriver) List ¶
func (d *NFSStorageDriver) List() ([]string, error)
Return the list of volumes associated with this tenant
func (*NFSStorageDriver) Name ¶
func (d *NFSStorageDriver) Name() string
Name returns the name of this driver
func (*NFSStorageDriver) Publish ¶
func (d *NFSStorageDriver) 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 (*NFSStorageDriver) Rename ¶
func (d *NFSStorageDriver) Rename(name string, newName string) error
func (*NFSStorageDriver) Resize ¶
func (d *NFSStorageDriver) Resize(volConfig *storage.VolumeConfig, sizeBytes uint64) error
Resize increases a volume's quota
func (*NFSStorageDriver) RestoreSnapshot ¶
func (d *NFSStorageDriver) RestoreSnapshot(snapConfig *storage.SnapshotConfig) error
RestoreSnapshot restores a volume (in place) from a snapshot.
func (*NFSStorageDriver) StoreConfig ¶
func (d *NFSStorageDriver) StoreConfig(b *storage.PersistentStorageBackendConfig)
func (*NFSStorageDriver) Terminate ¶
func (d *NFSStorageDriver) Terminate()
Terminate stops the driver prior to its being unloaded
type Telemetry ¶
type Telemetry struct { tridentconfig.Telemetry Plugin string `json:"plugin"` }