disk

package
v0.0.103 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: Apache-2.0 Imports: 9 Imported by: 126

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk interface {
	CID() string
	NeedsMigration(newSize int, newCloudProperties biproperty.Map) bool
	Delete() error
}

func NewDisk

func NewDisk(
	diskRecord biconfig.DiskRecord,
	cloud bicloud.Cloud,
	repo biconfig.DiskRepo,
) Disk

type Manager

type Manager interface {
	FindCurrent() ([]Disk, error)
	Create(bideplmanifest.DiskPool, string) (Disk, error)
	FindUnused() ([]Disk, error)
	DeleteUnused(biui.Stage) error
}

func NewManager

func NewManager(
	cloud bicloud.Cloud,
	diskRepo biconfig.DiskRepo,
	logger boshlog.Logger,
) Manager

type ManagerFactory

type ManagerFactory interface {
	NewManager(bicloud.Cloud) Manager
}

func NewManagerFactory

func NewManagerFactory(
	diskRepo biconfig.DiskRepo,
	logger boshlog.Logger,
) ManagerFactory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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