disk

package
v7.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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, error)
	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
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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