Documentation ¶
Index ¶
- type Device
- type Dorado
- func (d *Dorado) AttachVolumeSatelit(ctx context.Context, hyperMetroPairID string, hostname string) (int, string, error)
- func (d *Dorado) AttachVolumeTeleskop(ctx context.Context, id string, hostname string) (int, string, error)
- func (d *Dorado) CreateVolume(ctx context.Context, name uuid.UUID, capacityGB int) (*europa.Volume, error)
- func (d *Dorado) CreateVolumeFromImage(ctx context.Context, name uuid.UUID, capacityGB int, imageID uuid.UUID) (*europa.Volume, error)
- func (d *Dorado) DeleteImage(ctx context.Context, id uuid.UUID) error
- func (d *Dorado) DeleteVolume(ctx context.Context, id string) error
- func (d *Dorado) DetachVolume(ctx context.Context, hyperMetroPairID string) error
- func (d *Dorado) DetachVolumeSatelit(ctx context.Context, hyperMetroPairID string, hostLUNID int) error
- func (d *Dorado) GetHostLUNID(ctx context.Context, hmp *dorado.HyperMetroPair, hostname string) (int, error)
- func (d *Dorado) GetHostLUNIDLocalhost(ctx context.Context, hmp *dorado.HyperMetroPair) (int, error)
- func (d *Dorado) GetImage(imageID uuid.UUID) (*europa.BaseImage, error)
- func (d *Dorado) GetVolume(ctx context.Context, id string) (*europa.Volume, error)
- func (d *Dorado) ListImage() ([]europa.BaseImage, error)
- func (d *Dorado) ListVolume(ctx context.Context) ([]europa.Volume, error)
- func (d *Dorado) UploadImage(ctx context.Context, image []byte, name, description string, imageSizeGB int) (*europa.BaseImage, error)
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 (*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 ¶
DeleteImage delete image by Dorado
func (*Dorado) DeleteVolume ¶
DeleteVolume delete volume by Dorado
func (*Dorado) DetachVolume ¶
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) ListVolume ¶
ListVolume return list of volume by Dorado