Documentation
¶
Overview ¶
Package volume defines status code of oceanstor storage
Package volume defines the required struct
Index ¶
- Variables
- type Base
- type CloneFilesystemRequest
- type DTree
- type NAS
- func (p *NAS) Create(ctx context.Context, params map[string]interface{}) (utils.Volume, error)
- func (p *NAS) CreateSnapshot(ctx context.Context, fsName, snapshotName string) (map[string]interface{}, error)
- func (p *NAS) Delete(ctx context.Context, fsName string) error
- func (p *NAS) DeleteFS(ctx context.Context, fsName string, cli client.BaseClientInterface) error
- func (p *NAS) DeleteHyperMetro(ctx context.Context, params, taskResult map[string]interface{}) (map[string]interface{}, error)
- func (p *NAS) DeleteShare(ctx context.Context, name, vStoreID string, cli client.BaseClientInterface) error
- func (p *NAS) DeleteSnapshot(ctx context.Context, snapshotParentId, snapshotName string) error
- func (p *NAS) Expand(ctx context.Context, fsName string, newSize int64) error
- func (p *NAS) GetActiveHyperMetroCli() client.BaseClientInterface
- func (p *NAS) GetStandbyHyperMetroCli() client.BaseClientInterface
- func (p *NAS) Modify(ctx context.Context, params map[string]interface{}) (utils.Volume, error)
- func (p *NAS) Query(ctx context.Context, fsName string, params map[string]interface{}) (utils.Volume, error)
- func (p *NAS) SafeDeleteShare(ctx context.Context, name, vStoreID string, cli client.BaseClientInterface) error
- type NASHyperMetro
- 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 ¶
This section is empty.
Variables ¶
var ErrLogicPortFailOver = errors.New("logic port is not running on it's own site")
ErrLogicPortFailOver indicates an error that logic port is fail over.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base defines the base storage client
type CloneFilesystemRequest ¶
type CloneFilesystemRequest struct {
FsName string
VStoreId string
ParentID string
ParentSnapshotID string
AllocType int
CloneSpeed int
CloneFsCapacity int64
SrcCapacity int64
DeleteParentSnapshot bool
}
CloneFilesystemRequest used for CloneFilesystem request
type DTree ¶
type DTree struct {
Base
}
DTree provides base DTree client
func NewDTree ¶
func NewDTree(cli client.BaseClientInterface) *DTree
NewDTree inits a new DTree client
type NAS ¶
type NAS struct {
Base
NASHyperMetro
// contains filtered or unexported fields
}
NAS provides base nas client
func NewNAS ¶
func NewNAS(cli, metroRemoteCli client.BaseClientInterface, product string, nasHyperMetro NASHyperMetro, isRunningOnOwnSite bool) *NAS
NewNAS inits a new nas client
func (*NAS) CreateSnapshot ¶
func (p *NAS) CreateSnapshot(ctx context.Context, fsName, snapshotName string) (map[string]interface{}, error)
CreateSnapshot creates fs snapshot
func (*NAS) DeleteHyperMetro ¶
func (p *NAS) DeleteHyperMetro(ctx context.Context, params, taskResult map[string]interface{}) (map[string]interface{}, error)
DeleteHyperMetro used to delete hyperMetro pair
func (*NAS) DeleteShare ¶
func (p *NAS) DeleteShare(ctx context.Context, name, vStoreID string, cli client.BaseClientInterface) error
DeleteShare used to delete filesystem share
func (*NAS) DeleteSnapshot ¶
DeleteSnapshot deletes fs snapshot
func (*NAS) GetActiveHyperMetroCli ¶
func (p *NAS) GetActiveHyperMetroCli() client.BaseClientInterface
GetActiveHyperMetroCli used to get active cli
func (*NAS) GetStandbyHyperMetroCli ¶
func (p *NAS) GetStandbyHyperMetroCli() client.BaseClientInterface
GetStandbyHyperMetroCli used to get standby cli
func (*NAS) Query ¶
func (p *NAS) Query(ctx context.Context, fsName string, params map[string]interface{}) (utils.Volume, error)
Query queries volume by name
func (*NAS) SafeDeleteShare ¶
func (p *NAS) SafeDeleteShare(ctx context.Context, name, vStoreID string, cli client.BaseClientInterface) error
SafeDeleteShare used to delete filesystem share
type NASHyperMetro ¶
NASHyperMetro defines HyperMetro nas storage
type SAN ¶
type SAN struct {
Base
}
SAN provides base san client
func NewSAN ¶
func NewSAN(cli, metroRemoteCli, replicaRemoteCli client.BaseClientInterface, product string) *SAN
NewSAN inits a new san 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