storagedomain

package
v0.0.0-...-9fc8b42 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: UPL-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageDomain

type StorageDomain struct {
	Available                  string `json:"available,omitempty"`
	Backup                     string `json:"backup"`
	BlockSize                  string `json:"block_size"`
	Committed                  string `json:"committed"`
	CriticalSpaceActionBlocker string `json:"critical_space_action_blocker"`
	DiscardAfterDelete         string `json:"discard_after_delete"`
	ExternalStatus             string `json:"external_status"`
	Master                     string `json:"master"`
	Storage                    struct {
		Type        string `json:"type"`
		VolumeGroup struct {
			LogicalUnits struct {
				LogicalUnit []struct {
					DiscardMaxSize    string `json:"discard_max_size"`
					DiscardZeroesData string `json:"discard_zeroes_data"`
					LunMapping        string `json:"lun_mapping"`
					Paths             string `json:"paths"`
					ProductId         string `json:"product_id"`
					Serial            string `json:"serial"`
					Size              string `json:"size"`
					StorageDomainId   string `json:"storage_domain_id"`
					VendorId          string `json:"vendor_id"`
					VolumeGroupId     string `json:"volume_group_id"`
					Id                string `json:"id"`
				} `json:"logical_unit"`
			} `json:"logical_units"`
			Id string `json:"id"`
		} `json:"volume_group,omitempty"`
	} `json:"storage"`
	StorageFormat             string `json:"storage_format"`
	SupportsDiscard           string `json:"supports_discard"`
	SupportsDiscardZeroesData string `json:"supports_discard_zeroes_data"`
	Type                      string `json:"type"`
	Used                      string `json:"used,omitempty"`
	WarningLowSpaceIndicator  string `json:"warning_low_space_indicator"`
	WipeAfterDelete           string `json:"wipe_after_delete"`
	DataCenters               struct {
		DataCenter []struct {
			Href string `json:"href"`
			Id   string `json:"id"`
		} `json:"data_center"`
	} `json:"data_centers,omitempty"`
	Actions struct {
		Link []struct {
			Href string `json:"href"`
			Rel  string `json:"rel"`
		} `json:"link"`
	} `json:"actions"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Comment     string `json:"comment"`
	Link        []struct {
		Href string `json:"href"`
		Rel  string `json:"rel"`
	} `json:"link"`
	Href   string `json:"href"`
	Id     string `json:"id"`
	Status string `json:"status,omitempty"`
}

func GetStorageDomain

func GetStorageDomain(ovcli *ovclient.Client, storageDomainName string) (*StorageDomain, error)

GetStorageDomain gets a storage domain by name

type StorageDomainList

type StorageDomainList struct {
	StorageDomains []StorageDomain `json:"storage_domain"`
}

func GetStorageDomains

func GetStorageDomains(ovcli *ovclient.Client) (*StorageDomainList, error)

GetStorageDomains gets all datacenters.

Jump to

Keyboard shortcuts

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