dorado

package
v0.0.0-...-f1b23c0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

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

A Device is IDs of devices

type Dorado

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

A Dorado is backend of europa by Dorado

func New

func New(doradoConfig config.Dorado, datastore datastore.Datastore) (*Dorado, error)

New create Dorado backend

func (*Dorado) AttachVolumeSatelit

func (d *Dorado) AttachVolumeSatelit(ctx context.Context, hyperMetroPairID string, hostname string) (int, string, error)

AttachVolumeSatelit attach volume to satelit by Dorado return (host lun id, attached device name, error)

func (*Dorado) AttachVolumeTeleskop

func (d *Dorado) AttachVolumeTeleskop(ctx context.Context, id string, hostname string) (int, string, error)

AttachVolumeTeleskop attach volume to hostname (running teleskop) by Dorado return (host lun id, attached device name, error)

func (*Dorado) CreateVolume

func (d *Dorado) CreateVolume(ctx context.Context, name uuid.UUID, capacityGB int) (*europa.Volume, error)

CreateVolume create raw volume

func (*Dorado) CreateVolumeFromImage

func (d *Dorado) CreateVolumeFromImage(ctx context.Context, name uuid.UUID, capacityGB int, imageID uuid.UUID) (*europa.Volume, error)

CreateVolumeFromImage create volume that copied image

func (*Dorado) DeleteImage

func (d *Dorado) DeleteImage(ctx context.Context, id uuid.UUID) error

DeleteImage delete image by Dorado

func (*Dorado) DeleteVolume

func (d *Dorado) DeleteVolume(ctx context.Context, id string) error

DeleteVolume delete volume by Dorado

func (*Dorado) DetachVolume

func (d *Dorado) DetachVolume(ctx context.Context, hyperMetroPairID string) error

DetachVolume detach volume by Dorado

func (*Dorado) DetachVolumeSatelit

func (d *Dorado) DetachVolumeSatelit(ctx context.Context, hyperMetroPairID string, hostLUNID int) error

DetachVolumeSatelit detach volume from satelit server

func (*Dorado) GetHostLUNID

func (d *Dorado) GetHostLUNID(ctx context.Context, hmp *dorado.HyperMetroPair, hostname string) (int, error)

GetHostLUNID return host LUN id.

func (*Dorado) GetHostLUNIDLocalhost

func (d *Dorado) GetHostLUNIDLocalhost(ctx context.Context, hmp *dorado.HyperMetroPair) (int, error)

GetHostLUNIDLocalhost return host LUN id in localhost.

func (*Dorado) GetImage

func (d *Dorado) GetImage(imageID uuid.UUID) (*europa.BaseImage, error)

GetImage return image by id

func (*Dorado) GetVolume

func (d *Dorado) GetVolume(ctx context.Context, id string) (*europa.Volume, error)

GetVolume get volume from Dorado

func (*Dorado) ListImage

func (d *Dorado) ListImage() ([]europa.BaseImage, error)

ListImage retrieves all images

func (*Dorado) ListVolume

func (d *Dorado) ListVolume(ctx context.Context) ([]europa.Volume, error)

ListVolume return list of volume by Dorado

func (*Dorado) UploadImage

func (d *Dorado) UploadImage(ctx context.Context, image []byte, name, description string, imageSizeGB int) (*europa.BaseImage, error)

UploadImage upload to qcow2 image file

Jump to

Keyboard shortcuts

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