products

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detail

type Detail struct {
	Storage         string        `json:"storage"`
	ProductID       string        `json:"product_id"`
	SpecCode        string        `json:"spec_code"`
	VMSpecification string        `json:"vm_specification"`
	ProductInfos    []ProductInfo `json:"product_info"`
	PartitionNum    string        `json:"partition_num"`
	Bandwidth       string        `json:"bandwidth"`
	IOs             []IO          `json:"io"`
}

Detail for dms

type GetResponse

type GetResponse struct {
	Hourly  []Parameter `json:"Hourly"`
	Monthly []Parameter `json:"Monthly"`
}

GetResponse response

type GetResult

type GetResult struct {
	golangsdk.Result
}

GetResult contains the body of getting detailed

func Get

func Get(client *golangsdk.ServiceClient, engine string) (r GetResult)

Get products

func (GetResult) Extract

func (r GetResult) Extract() (*GetResponse, error)

Extract from GetResult

type IO

type IO struct {
	IOType          string `json:"io_type"`
	StorageSpecCode string `json:"storage_spec_code"`
}

type Parameter

type Parameter struct {
	Name    string  `json:"name"`
	Version string  `json:"version"`
	Values  []Value `json:"values"`
}

Parameter for dms

type ProductInfo

type ProductInfo struct {
	Storage   string `json:"storage"`
	NodeNum   string `json:"node_num"`
	ProductID string `json:"product_id"`
	SpecCode  string `json:"spec_code"`
	IOs       []IO   `json:"io"`
}

ProductInfo for dms

type Value

type Value struct {
	Details []Detail `json:"detail"`
	Name    string   `json:"name"`
}

Value for dms

Jump to

Keyboard shortcuts

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