Documentation ¶
Index ¶
- Constants
- func Executer() *easyssh.MakeConfig
- type Cli
- func (c *Cli) CreateSnapshot(snapName, volName string) error
- func (c *Cli) CreateVolume(name string, size, filesystem, mountpoint string) error
- func (c *Cli) Delete(name string) error
- func (c *Cli) DeleteSnapshot(volName, snapName string) error
- func (c *Cli) ExtendVolume(name string, newSize string) error
- func (c *Cli) GetSpectrumScaleMountPoint() (string, string, error)
- func (c *Cli) GetSpectrumScaleStatus() error
- func (c *Cli) ListPools(mountPoint, filesystem string) (*[]Pools, error)
- type Driver
- func (d *Driver) CreateSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)
- func (d *Driver) CreateVolume(opt *pb.CreateVolumeOpts) (vol *model.VolumeSpec, err error)
- func (d *Driver) CreateVolumeGroup(opt *pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
- func (d *Driver) DeleteSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error
- func (d *Driver) DeleteVolume(opt *pb.DeleteVolumeOpts) error
- func (d *Driver) DeleteVolumeGroup(opt *pb.DeleteVolumeGroupOpts) error
- func (d *Driver) ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)
- func (d *Driver) InitializeConnection(opt *pb.CreateVolumeAttachmentOpts) (*model.ConnectionInfo, error)
- func (d *Driver) InitializeSnapshotConnection(opt *pb.CreateSnapshotAttachmentOpts) (*model.ConnectionInfo, error)
- func (d *Driver) ListPools() ([]*model.StoragePoolSpec, error)
- func (d *Driver) PullSnapshot(snapIdentifier string) (*model.VolumeSnapshotSpec, error)
- func (d *Driver) PullVolume(volIdentifier string) (*model.VolumeSpec, error)
- func (d *Driver) Setup() error
- func (d *Driver) TerminateConnection(opt *pb.DeleteVolumeAttachmentOpts) error
- func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error
- func (*Driver) Unset() error
- func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
- type IBMConfig
- type MakeConfig
- type Pools
Constants ¶
View Source
const ( KLvIdFormat = "NAA" FileSetPath = "FilesetPath" SnapshotName = "SnapshotName" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cli ¶
type Cli struct { // Command executer BaseExecuter exec.Executer // Command Root executer RootExecuter exec.Executer }
func (*Cli) CreateSnapshot ¶
this is function for creating the snapshot
func (*Cli) CreateVolume ¶
create volume
func (*Cli) DeleteSnapshot ¶
this is function for deleting the snapshot
func (*Cli) ExtendVolume ¶
this is function for extending the volume size
func (*Cli) GetSpectrumScaleMountPoint ¶
get spectrumscale mount point
func (*Cli) GetSpectrumScaleStatus ¶
get the spectrumscale cluster status
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) TerminateConnection ¶
func (d *Driver) TerminateConnection(opt *pb.DeleteVolumeAttachmentOpts) error
func (*Driver) TerminateSnapshotConnection ¶
func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error
func (*Driver) UpdateVolumeGroup ¶
func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error)
type MakeConfig ¶
Click to show internal directories.
Click to hide internal directories.