bs

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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"`
}

Jump to

Keyboard shortcuts

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