Documentation ¶
Index ¶
Constants ¶
View Source
const VolumeType = "block"
Variables ¶
This section is empty.
Functions ¶
func CreateBlockVolume ¶
func CreateBlockVolume(mds torus.MetadataService, volume string, size uint64) error
func DeleteBlockVolume ¶ added in v0.1.0
func DeleteBlockVolume(mds torus.MetadataService, volume string) error
func NewBlockVolGC ¶
Types ¶
type BlockVolume ¶
type BlockVolume struct {
// contains filtered or unexported fields
}
func OpenBlockVolume ¶
func OpenBlockVolume(s *torus.Server, volume string) (*BlockVolume, error)
func (*BlockVolume) DeleteSnapshot ¶ added in v0.1.0
func (s *BlockVolume) DeleteSnapshot(name string) error
func (*BlockVolume) GetSnapshots ¶ added in v0.1.0
func (s *BlockVolume) GetSnapshots() ([]Snapshot, error)
func (*BlockVolume) OpenBlockFile ¶
func (s *BlockVolume) OpenBlockFile() (*BlockFile, error)
func (*BlockVolume) OpenSnapshot ¶ added in v0.1.0
func (s *BlockVolume) OpenSnapshot(name string) (*BlockFile, error)
func (*BlockVolume) SaveSnapshot ¶ added in v0.1.0
func (s *BlockVolume) SaveSnapshot(name string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.