bs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractBsInfos

func ExtractBsInfos(m *machine.MachineInfos) map[uuid.UUID]*BlockStorageInfos

TODO maybe get block-storage type directly without check instead of this double check machine/bs ?

func OpenstackGetBlockStorage

func OpenstackGetBlockStorage(machineInfos *machine.MachineInfos) (map[uuid.UUID]*BlockStorageInfos, error)

Types

type BlockStorageInfos

type BlockStorageInfos struct {
	Uuid      uuid.UUID         `json:"uuid"`
	FullUuid  uuid.UUID         `json:"full_uuid"` // Some BS types truncate UUIDs (virtio_blk for example...)
	MachineId uuid.UUID         `json:"machine_id"`
	Size      int               `json:"size"` // Stored in Gi unit
	Device    string            `json:"device"`
	Type      string            `json:"type"`
	BlockDev  string            `json:"block_dev"`
	Status    string            `json:"status"`
	Metadata  map[string]string `json:"metadata"`
}

type MultiAttach added in v0.2.0

type MultiAttach struct {
	Count int               `json:"count"`
	Data  []OpenstackAttach `json:"data"`
}

type MultiAttachments added in v0.2.0

type MultiAttachments struct {
	MultiAttach MultiAttach `json:"multi-attach"`
}

func OpenstackGetMultiAttachments added in v0.2.0

func OpenstackGetMultiAttachments() (*MultiAttachments, error)

type OpenstackAttach added in v0.2.0

type OpenstackAttach struct {
	Uuid        string               `json:"uuid"`
	Attachments []volumes.Attachment `json:"attachments"`
}

Jump to

Keyboard shortcuts

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