netapp

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAZ = "default"

	KFileshareName     = "nfsFileshareName"
	KFileshareID       = "nfsFileshareID"
	KFileshareSnapName = "snapshotName"
	KFileshareSnapID   = "snapshotID"
	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 BackendOptions struct {
	Version           int    `yaml:"version"`
	StorageDriverName string `yaml:"storageDriverName"`
	ManagementLIF     string `yaml:"managementLIF"`
	DataLIF           string `yaml:"dataLIF"`
	Svm               string `yaml:"svm"`
	Username          string `yaml:"username"`
	Password          string `yaml:"password"`
}

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)

func (*NASDriver) Setup

func (d *NASDriver) Setup() error

This function reads the config file for the driver in /etc/opensds/driver and creates a connection with the storage

func (*NASDriver) Unset

func (d *NASDriver) Unset() error

type ONTAPConfig

type ONTAPConfig struct {
	BackendOptions `yaml:"backendOptions"`
	Pool           map[string]PoolProperties `yaml:"pool,flow"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL