disks

package
v8.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0, UPL-1.0 Imports: 15 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 {
	AttachVolumeToInstance(v *resource.Volume, in *resource.Instance) error
	DetachVolumeFromInstance(v *resource.Volume) error
}

func NewAttacherDetacherForInstance

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

type Creator

type Creator interface {
	CreateVolume(name string, sizeinMB int64) (*resource.Volume, error)
}

func NewCreator

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

type Finder

type Finder interface {
	FindVolume(volumeID string) (*resource.Volume, error)
	FindAllAttachedVolumes(instanceID string) ([]*resource.Volume, error)
}

func NewFinder

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

type IscsciNodeAdministratorFactory

type IscsciNodeAdministratorFactory func(remoteUser string, remoteIP string, localIdentityFilePath string,
	logger boshlog.Logger) IscsiNodeAdministrator

type IscsiNodeAdministrator

type IscsiNodeAdministrator interface {
	RunAttachmentCommands(scsiIQN string, scsiServer string,
		scsiServerPort int64) (resolvedDevicePath string, err error)
}

func NewRemoteIscsiNodeAdministrator

func NewRemoteIscsiNodeAdministrator(remoteUser string, remoteIP string,
	localIdentityFilePath string, logger boshlog.Logger) IscsiNodeAdministrator

type SSHCmdResultHandler

type SSHCmdResultHandler func(stdout string, stderr string) (retry bool, reasonToRetry string)

type SSHCmdRunner

type SSHCmdRunner interface {
	RunCommand(cmd string, resultHandler SSHCmdResultHandler, maxAttempts int, durationBetweenAttempts time.Duration) error
	Connect(maxAttempts int, durationBetweenAttempts time.Duration) error
}

func NewSSHCmdRunner

func NewSSHCmdRunner(user string, remoteIP string, identityPath string,
	logger boshlog.Logger) SSHCmdRunner

type Terminator

type Terminator interface {
	DeleteVolume(volumeID string) error
}

func NewTerminator

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

type TerminatorFactory

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

type VolumeFaultyError

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

func (VolumeFaultyError) Error

func (e VolumeFaultyError) Error() string

type VolumeTerminatedError

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

func (VolumeTerminatedError) Error

func (e VolumeTerminatedError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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