disk

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 8 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, *apiv1.VMCID) (Disk, error)
}

type Disk

type Disk interface {
	ID() apiv1.DiskCID

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

type Factory

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

func NewFactory

func NewFactory(
	dkrClient *dkrclient.Client,
	uuidGen boshuuid.Generator,
	logger boshlog.Logger,
) Factory

func (Factory) Create

func (f Factory) Create(size int, vmCID *apiv1.VMCID) (Disk, error)

func (Factory) Find

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

type Finder

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

type Volume

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

func NewVolume

func NewVolume(id apiv1.DiskCID, dkrClient *dkrclient.Client, logger boshlog.Logger) Volume

func (Volume) Delete

func (s Volume) Delete() error

func (Volume) Exists

func (s Volume) Exists() (bool, error)

func (Volume) ID

func (s Volume) ID() apiv1.DiskCID

Jump to

Keyboard shortcuts

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