sku

package
v0.3.9-9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(refreshInterval time.Duration)

func SyncOnce

func SyncOnce(wait bool) error

Types

type SSkuManager

type SSkuManager struct {
	// contains filtered or unexported fields
}

func (*SSkuManager) GetByRegion

func (m *SSkuManager) GetByRegion(instanceType, regionId string) []*ServerSku

func (*SSkuManager) GetByZone

func (m *SSkuManager) GetByZone(instanceType, zoneId string) *ServerSku

type ServerSku

type ServerSku struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	RegionId string `json:"cloudregion_id"`
	ZoneId   string `json:"zone_id"`
}

func GetByRegion

func GetByRegion(instanceType, regionId string) []*ServerSku

func GetByZone

func GetByZone(instanceType, zoneId string) *ServerSku

Jump to

Keyboard shortcuts

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