Documentation
¶
Index ¶
- func MkfsEXT4(ctx context.Context, dev string) error
- type DevicePool
- type Disk
- type DiskSnapshot
- type DiskTX
- type Service
- func (s *Service) AttachInstance(instance string, disks ...string) error
- func (s *Service) CreateDisk(id string, sizeMB uint64) (*Disk, error)
- func (s *Service) DestroyDisk(id string) error
- func (s *Service) DetachInstance(disk ...string) error
- func (s *Service) GetDisk(id string) (*Disk, error)
- func (s *Service) GetDisks(ids ...string) ([]Disk, error)
- func (s *Service) ListDisks() ([]Disk, error)
- type Store
- type ZFSPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DevicePool ¶
type DiskSnapshot ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(store Store, pool DevicePool) *Service
func (*Service) AttachInstance ¶
func (*Service) DestroyDisk ¶
func (*Service) DetachInstance ¶
type ZFSPool ¶
type ZFSPool struct {
// contains filtered or unexported fields
}
func NewZFSPool ¶
func (*ZFSPool) CreateDevice ¶
func (*ZFSPool) DeleteDevice ¶
func (*ZFSPool) DeleteSnapshot ¶
Click to show internal directories.
Click to hide internal directories.