Documentation
¶
Index ¶
- type RBDRepository2
- func (r *RBDRepository2) ApplyDiffToBlockDevice(blockDevicePath, diffFilePath, fromSnapName, toSnapName string, ...) error
- func (r *RBDRepository2) ApplyDiffToRawImage(rawImageFilePath, diffFilePath, fromSnapName, toSnapName string, ...) error
- func (r *RBDRepository2) CreateSnapshot(poolName, imageName, snapName string) error
- func (r *RBDRepository2) CreateSnapshotWithRandomData(snapName string, volumeSize uint64) (*model.RBDSnapshot, []byte, error)
- func (r *RBDRepository2) ExportDiff(input *model.ExportDiffInput) (io.ReadCloser, error)
- func (r *RBDRepository2) ListSnapshots(poolName, imageName string) ([]*model.RBDSnapshot, error)
- func (r *RBDRepository2) LockAdd(pool, image, lockID string) error
- func (r *RBDRepository2) LockLs(pool, image string) ([]*model.RBDLock, error)
- func (r *RBDRepository2) LockRm(pool, image string, lock *model.RBDLock) error
- func (r *RBDRepository2) RemoveSnapshot(poolName, imageName, snapName string) error
- func (r *RBDRepository2) SetError(err error)
- type VolumeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RBDRepository2 ¶ added in v0.2.0
type RBDRepository2 struct {
// contains filtered or unexported fields
}
func NewRBDRepository2 ¶ added in v0.2.0
func NewRBDRepository2(poolName, imageName string) *RBDRepository2
func (*RBDRepository2) ApplyDiffToBlockDevice ¶ added in v0.2.0
func (r *RBDRepository2) ApplyDiffToBlockDevice( blockDevicePath, diffFilePath, fromSnapName, toSnapName string, diffChecksumChunkSize uint64, enableChecksumVerify bool, ) error
func (*RBDRepository2) ApplyDiffToRawImage ¶ added in v0.2.0
func (r *RBDRepository2) ApplyDiffToRawImage( rawImageFilePath, diffFilePath, fromSnapName, toSnapName string, expansionUnitSize, rawChecksumChunkSize, diffChecksumChunkSize uint64, enableChecksumVerify bool, ) error
func (*RBDRepository2) CreateSnapshot ¶ added in v0.4.0
func (r *RBDRepository2) CreateSnapshot(poolName, imageName, snapName string) error
func (*RBDRepository2) CreateSnapshotWithRandomData ¶ added in v0.2.0
func (r *RBDRepository2) CreateSnapshotWithRandomData(snapName string, volumeSize uint64) ( *model.RBDSnapshot, []byte, error)
func (*RBDRepository2) ExportDiff ¶ added in v0.2.0
func (r *RBDRepository2) ExportDiff(input *model.ExportDiffInput) (io.ReadCloser, error)
func (*RBDRepository2) ListSnapshots ¶ added in v0.2.0
func (r *RBDRepository2) ListSnapshots(poolName, imageName string) ([]*model.RBDSnapshot, error)
func (*RBDRepository2) LockAdd ¶ added in v0.5.5
func (r *RBDRepository2) LockAdd(pool, image, lockID string) error
func (*RBDRepository2) LockLs ¶ added in v0.5.5
func (r *RBDRepository2) LockLs(pool, image string) ([]*model.RBDLock, error)
func (*RBDRepository2) LockRm ¶ added in v0.5.5
func (r *RBDRepository2) LockRm(pool, image string, lock *model.RBDLock) error
func (*RBDRepository2) RemoveSnapshot ¶ added in v0.4.0
func (r *RBDRepository2) RemoveSnapshot(poolName, imageName, snapName string) error
func (*RBDRepository2) SetError ¶ added in v0.5.5
func (r *RBDRepository2) SetError(err error)
type VolumeInfo ¶
type VolumeInfo struct {
Namespace string
PVCName string
PVName string
PoolName string
ImageName string
}
func NewStorage ¶
func NewStorage() (*fake.Clientset, *VolumeInfo)
NewStorage creates a fake Kubernetes and VolumeInfo for RBD repository. It creates a PVC, a PV, and a RBD volume with unique names. The PVC is associated with a PV and a corresponding RBD volume.
Click to show internal directories.
Click to hide internal directories.