Documentation ¶
Index ¶
- type Memory
- func (m *Memory) AttachVolume(ctx context.Context, id string, hostname string) (int, string, error)
- func (m *Memory) AttachVolumeSatelit(ctx context.Context, id string, hostname string) (int, string, error)
- func (m *Memory) AttachVolumeTeleskop(ctx context.Context, id string, hostname string) (int, string, error)
- func (m *Memory) CreateVolume(ctx context.Context, name uuid.UUID, capacityGB int) (*europa.Volume, error)
- func (m *Memory) CreateVolumeFromImage(ctx context.Context, name uuid.UUID, capacityGB int, imageID uuid.UUID) (*europa.Volume, error)
- func (m *Memory) DeleteImage(ctx context.Context, id uuid.UUID) error
- func (m *Memory) DeleteVolume(ctx context.Context, id string) error
- func (m *Memory) DetachVolume(ctx context.Context, id string) error
- func (m *Memory) DetachVolumeSatelit(ctx context.Context, hyperMetroPairID string, hostLUNID int) error
- func (m *Memory) GetImage(imageID uuid.UUID) (*europa.BaseImage, error)
- func (m *Memory) GetVolume(ctx context.Context, id string) (*europa.Volume, error)
- func (m *Memory) ListImage() ([]europa.BaseImage, error)
- func (m *Memory) ListVolume(ctx context.Context) ([]europa.Volume, error)
- func (m *Memory) 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 Memory ¶
type Memory struct { // im-memory storage engine (ex: Dorado) Volumes map[string]europa.Volume // ID: Volume Mu sync.RWMutex BackendendName string // contains filtered or unexported fields }
A Memory is backend of europa by in-memory for testing.
func (*Memory) AttachVolume ¶
AttachVolume write attach information in-memory
func (*Memory) AttachVolumeSatelit ¶
func (m *Memory) AttachVolumeSatelit(ctx context.Context, id string, hostname string) (int, string, error)
AttachVolumeSatelit write attach information in-memory
func (*Memory) AttachVolumeTeleskop ¶
func (m *Memory) AttachVolumeTeleskop(ctx context.Context, id string, hostname string) (int, string, error)
AttachVolumeTeleskop write attach information in-memory
func (*Memory) CreateVolume ¶
func (m *Memory) CreateVolume(ctx context.Context, name uuid.UUID, capacityGB int) (*europa.Volume, error)
CreateVolume write volume information to in-memory
func (*Memory) CreateVolumeFromImage ¶
func (m *Memory) CreateVolumeFromImage(ctx context.Context, name uuid.UUID, capacityGB int, imageID uuid.UUID) (*europa.Volume, error)
CreateVolumeFromImage write volume info to in-memory
func (*Memory) DeleteImage ¶
DeleteImage delete from in-memory
func (*Memory) DeleteVolume ¶
DeleteVolume delete volume in-memory
func (*Memory) DetachVolume ¶
DetachVolume delete attach information in-memory
func (*Memory) DetachVolumeSatelit ¶
func (m *Memory) DetachVolumeSatelit(ctx context.Context, hyperMetroPairID string, hostLUNID int) error
DetachVolumeSatelit detach volume from satelit server
func (*Memory) ListVolume ¶
ListVolume return list of volume in-memory
Click to show internal directories.
Click to hide internal directories.