disks

package
v0.0.0-...-8e9553d Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttacherDetacher

type AttacherDetacher interface {
	AttachInstanceToStorage(v *sdk.BlockStorage, in *resource.Instance) (string, error)
	DetachInstanceFromStorage(v *sdk.BlockStorage, in *resource.Instance) error
}

func NewAttacherDetacher

func NewAttacherDetacher(c client.Connector, l boshlog.Logger) AttacherDetacher

func NewAttacherDetacherForInstance

func NewAttacherDetacherForInstance(in *resource.Instance, c client.Connector, l boshlog.Logger) (AttacherDetacher, error)

type AttacherDetacherFactory

type AttacherDetacherFactory func(c client.Connector, l boshlog.Logger) (AttacherDetacher, error)

type Creator

type Creator interface {
	CreateStorage(name string, sizeinGB int, datacenterId string) (*sdk.BlockStorage, error)
}

func NewCreator

func NewCreator(c client.Connector, l boshlog.Logger) Creator

type CreatorFactory

type CreatorFactory func(client.Connector, boshlog.Logger) Creator

type Finder

type Finder interface {
	FindStorage(storageId string) (*sdk.BlockStorage, error)
	FindAllAttachedStorages(instanceID string) ([]sdk.BlockStorage, error)
}

func NewFinder

func NewFinder(c client.Connector, l boshlog.Logger) Finder

type FinderFactory

type FinderFactory func(client.Connector, boshlog.Logger) Finder

type Terminator

type Terminator interface {
	DeleteStorage(volumeID string) error
}

func NewTerminator

func NewTerminator(c client.Connector, l boshlog.Logger) Terminator

type TerminatorFactory

type TerminatorFactory func(client.Connector, boshlog.Logger) Terminator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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