disk

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator interface {
	Create(int) (Disk, error)
}

type Disk

type Disk interface {
	ID() apiv1.DiskCID

	Path() string
	VMDKPath() string

	Exists() (bool, error)
	Delete() error
}

type DiskImpl

type DiskImpl struct {
	// contains filtered or unexported fields
}

func NewDiskImpl

func NewDiskImpl(
	cid apiv1.DiskCID,
	path string,
	runner driver.Runner,
	logger boshlog.Logger,
) DiskImpl

func (DiskImpl) Delete

func (d DiskImpl) Delete() error

func (DiskImpl) Exists

func (d DiskImpl) Exists() (bool, error)

func (DiskImpl) ID

func (d DiskImpl) ID() apiv1.DiskCID

func (DiskImpl) Path

func (d DiskImpl) Path() string

func (DiskImpl) VMDKPath

func (d DiskImpl) VMDKPath() string

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(
	dirPath string,
	uuidGen boshuuid.Generator,
	driver driver.Driver,
	runner driver.Runner,
	logger boshlog.Logger,
) Factory

func (Factory) Create

func (f Factory) Create(size int) (Disk, error)

func (Factory) Find

func (f Factory) Find(cid apiv1.DiskCID) (Disk, error)

type Finder

type Finder interface {
	Find(apiv1.DiskCID) (Disk, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL