spectrumscale

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KLvIdFormat  = "NAA"
	FileSetPath  = "FilesetPath"
	SnapshotName = "SnapshotName"
)

Variables

This section is empty.

Functions

func Executer

func Executer() *easyssh.MakeConfig

Types

type Cli

type Cli struct {
	// Command executer
	BaseExecuter exec.Executer
	// Command Root executer
	RootExecuter exec.Executer
}

func NewCli

func NewCli() (*Cli, error)

func (*Cli) CreateSnapshot

func (c *Cli) CreateSnapshot(snapName, volName string) error

this is function for creating the snapshot

func (*Cli) CreateVolume

func (c *Cli) CreateVolume(name string, size, filesystem, mountpoint string) error

create volume

func (*Cli) Delete

func (c *Cli) Delete(name string) error

delete volume

func (*Cli) DeleteSnapshot

func (c *Cli) DeleteSnapshot(volName, snapName string) error

this is function for deleting the snapshot

func (*Cli) ExtendVolume

func (c *Cli) ExtendVolume(name string, newSize string) error

this is function for extending the volume size

func (*Cli) GetSpectrumScaleMountPoint

func (c *Cli) GetSpectrumScaleMountPoint() (string, string, error)

get spectrumscale mount point

func (*Cli) GetSpectrumScaleStatus

func (c *Cli) GetSpectrumScaleStatus() error

get the spectrumscale cluster status

func (*Cli) ListPools

func (c *Cli) ListPools(mountPoint, filesystem string) (*[]Pools, error)

this function is for discover all the pool from spectrumscale cluster

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) CreateSnapshot

func (d *Driver) CreateSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)

this function is for creating the snapshot of spectrumscale volume(fileset)

func (*Driver) CreateVolume

func (d *Driver) CreateVolume(opt *pb.CreateVolumeOpts) (vol *model.VolumeSpec, err error)

first get the status of spectrumstate. If it is not active just return

func (*Driver) CreateVolumeGroup

func (d *Driver) CreateVolumeGroup(opt *pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error)

func (*Driver) DeleteSnapshot

func (d *Driver) DeleteSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error

this function is for deleting the snapshot

func (*Driver) DeleteVolume

func (d *Driver) DeleteVolume(opt *pb.DeleteVolumeOpts) error

this function is for deleting the spectrumscale volume(fileset)

func (*Driver) DeleteVolumeGroup

func (d *Driver) DeleteVolumeGroup(opt *pb.DeleteVolumeGroupOpts) error

func (*Driver) ExtendVolume

func (d *Driver) ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)

this function is for extending the volume(fileset). It sets the quota for block and files

func (*Driver) InitializeConnection

func (d *Driver) InitializeConnection(opt *pb.CreateVolumeAttachmentOpts) (*model.ConnectionInfo, error)

func (*Driver) InitializeSnapshotConnection

func (d *Driver) InitializeSnapshotConnection(opt *pb.CreateSnapshotAttachmentOpts) (*model.ConnectionInfo, error)

func (*Driver) ListPools

func (d *Driver) ListPools() ([]*model.StoragePoolSpec, error)

discover the pool from spectrumscale

func (*Driver) PullSnapshot

func (d *Driver) PullSnapshot(snapIdentifier string) (*model.VolumeSnapshotSpec, error)

func (*Driver) PullVolume

func (d *Driver) PullVolume(volIdentifier string) (*model.VolumeSpec, error)

func (*Driver) Setup

func (d *Driver) Setup() error

func (*Driver) TerminateConnection

func (d *Driver) TerminateConnection(opt *pb.DeleteVolumeAttachmentOpts) error

func (*Driver) TerminateSnapshotConnection

func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error

func (*Driver) Unset

func (*Driver) Unset() error

func (*Driver) UpdateVolumeGroup

func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error)

type IBMConfig

type IBMConfig struct {
	TgtBindIp      string                    `yaml:"tgtBindIp"`
	UserName       string                    `yaml:"username"`
	Password       string                    `yaml:"password"`
	Port           string                    `yaml:"port"`
	TgtConfDir     string                    `yaml:"tgtConfDir"`
	EnableChapAuth bool                      `yaml:"enableChapAuth"`
	Pool           map[string]PoolProperties `yaml:"pool,flow"`
}

type MakeConfig

type MakeConfig struct {
	User     string
	Server   string
	Password string
	Port     string
	Timeout  time.Duration
}

type Pools

type Pools struct {
	Name          string
	TotalCapacity int64
	FreeCapacity  int64
	UUID          string
}

Jump to

Keyboard shortcuts

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