Documentation ¶
Index ¶
- Constants
- type BackendOptions
- type NASDriver
- func (d *NASDriver) CreateFileShare(opt *pb.CreateFileShareOpts) (vol *model.FileShareSpec, err error)
- func (d *NASDriver) CreateFileShareAcl(opt *pb.CreateFileShareAclOpts) (*model.FileShareAclSpec, error)
- func (d *NASDriver) CreateFileShareSnapshot(opts *pb.CreateFileShareSnapshotOpts) (*model.FileShareSnapshotSpec, error)
- func (d *NASDriver) DeleteFileShare(opts *pb.DeleteFileShareOpts) error
- func (d *NASDriver) DeleteFileShareAcl(opt *pb.DeleteFileShareAclOpts) error
- func (d *NASDriver) DeleteFileShareSnapshot(opts *pb.DeleteFileShareSnapshotOpts) error
- func (d *NASDriver) GetVolumeConfig(name string, size int64) (volConfig *storage.VolumeConfig)
- func (d *NASDriver) ListPools() ([]*model.StoragePoolSpec, error)
- func (d *NASDriver) Setup() error
- func (d *NASDriver) Unset() error
- type ONTAPConfig
Constants ¶
View Source
const ( DefaultAZ = "default" KLvPath = "lunPath" KLvIdFormat = "NAA" StorageDriverName = "ontap-nas" VolumeVersion = "1" SnapshotVersion = "1" )
default value for driver
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendOptions ¶
type NASDriver ¶
type NASDriver struct {
// contains filtered or unexported fields
}
func (*NASDriver) CreateFileShare ¶
func (d *NASDriver) CreateFileShare(opt *pb.CreateFileShareOpts) (vol *model.FileShareSpec, err error)
Method to create a fileshare on the filer
func (*NASDriver) CreateFileShareAcl ¶
func (d *NASDriver) CreateFileShareAcl(opt *pb.CreateFileShareAclOpts) (*model.FileShareAclSpec, error)
func (*NASDriver) CreateFileShareSnapshot ¶
func (d *NASDriver) CreateFileShareSnapshot(opts *pb.CreateFileShareSnapshotOpts) (*model.FileShareSnapshotSpec, error)
Function to create a fileshare snapshot for th specified fileshare (volume in backend)
func (*NASDriver) DeleteFileShare ¶
func (d *NASDriver) DeleteFileShare(opts *pb.DeleteFileShareOpts) error
Function to delete the Fileshare This function basically calls to delete the corresponding volume on the filer and unmount it
func (*NASDriver) DeleteFileShareAcl ¶
func (d *NASDriver) DeleteFileShareAcl(opt *pb.DeleteFileShareAclOpts) error
func (*NASDriver) DeleteFileShareSnapshot ¶
func (d *NASDriver) DeleteFileShareSnapshot(opts *pb.DeleteFileShareSnapshotOpts) error
Function to delete a fileshare snapshot for th specified fileshare (volume in backend)
func (*NASDriver) GetVolumeConfig ¶
func (d *NASDriver) GetVolumeConfig(name string, size int64) (volConfig *storage.VolumeConfig)
func (*NASDriver) ListPools ¶
func (d *NASDriver) ListPools() ([]*model.StoragePoolSpec, error)
This method lists all the associated aggregates on the provided SVM of the filer (SVM is provided as part of config)
type ONTAPConfig ¶
type ONTAPConfig struct { BackendOptions `yaml:"backendOptions"` Pool map[string]PoolProperties `yaml:"pool,flow"` }
Click to show internal directories.
Click to hide internal directories.