Documentation
¶
Overview ¶
Package volume defines operations of fusion storage
Index ¶
- Constants
- type NAS
- func (p *NAS) Create(ctx context.Context, params map[string]interface{}) (utils.Volume, error)
- func (p *NAS) Delete(ctx context.Context, fsName string) error
- func (p *NAS) DeleteNfsShare(ctx context.Context, fsName, accountId string) (string, error)
- func (p *NAS) Expand(ctx context.Context, fsName string, newSize int64) error
- func (p *NAS) Query(ctx context.Context, fsName string) (utils.Volume, error)
- type SAN
- func (p *SAN) Create(ctx context.Context, params map[string]interface{}) (utils.Volume, error)
- func (p *SAN) CreateSnapshot(ctx context.Context, lunName, snapshotName string) (map[string]interface{}, error)
- func (p *SAN) Delete(ctx context.Context, name string) error
- func (p *SAN) DeleteSnapshot(ctx context.Context, snapshotName string) error
- func (p *SAN) Expand(ctx context.Context, name string, newSize int64) (bool, error)
- func (p *SAN) Query(ctx context.Context, name string) (utils.Volume, error)
Constants ¶
View Source
const ( // SCSITYPE defines scsi type SCSITYPE = 0 // ISCSITYPE defines iscsi type ISCSITYPE = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NAS ¶
type NAS struct {
// contains filtered or unexported fields
}
NAS provides nas storage client
func (*NAS) DeleteNfsShare ¶
DeleteNfsShare deletes nfs share
type SAN ¶
type SAN struct {
// contains filtered or unexported fields
}
SAN provides san storage client
func (*SAN) CreateSnapshot ¶
func (p *SAN) CreateSnapshot(ctx context.Context, lunName, snapshotName string) (map[string]interface{}, error)
CreateSnapshot creates lun snapshot
func (*SAN) DeleteSnapshot ¶
DeleteSnapshot deletes lun snapshot
Click to show internal directories.
Click to hide internal directories.