cloudos

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListCloudOS

func ListCloudOS() []string

func ValidateKeyValueList added in v0.5.1

func ValidateKeyValueList(inKeyValueList []icdrs.KeyValue, validKeyList []string) error

(1) Remove list of valid keys with list of inpput keys (2) Check the list of remaining Keys

Types

type CloudOSList

type CloudOSList struct {
	Name []string `yaml:"cloudos"`
}

type CloudOSMetaInfo added in v0.4.15

type CloudOSMetaInfo struct {
	Region               []string `json:"Region" validate:"required"`               // A list of supported regions by the Cloud OS.
	Credential           []string `json:"Credential" validate:"required"`           // A list of required credential keys.
	CredentialCSP        []string `json:"CredentialCSP" validate:"required"`        // A list of credentials required by the cloud service provider (CSP).
	RootDiskType         []string `json:"RootDiskType" validate:"required"`         // Supported root disk types (e.g., gp2, standard).
	RootDiskSize         []string `json:"RootDiskSize" validate:"required"`         // Supported root disk sizes (in GB).
	DiskType             []string `json:"DiskType" validate:"required"`             // Supported additional disk types.
	DiskSize             []string `json:"DiskSize" validate:"required"`             // Supported additional disk sizes (in GB).
	IdMaxLength          []string `json:"IdMaxLength" validate:"required"`          // Maximum allowed length for IDs in the cloud provider.
	DefaultRegionToQuery []string `json:"DefaultRegionToQuery" validate:"required"` // Default region to use if none is specified for a query.
}

CloudOSMetaInfo represents metadata information for a specific Cloud OS. @Description Metadata information related to a Cloud OS, including supported regions, credentials, and disk configurations.

func GetCloudOSMetaInfo added in v0.4.15

func GetCloudOSMetaInfo(cloudOS string) (CloudOSMetaInfo, error)

type YamlMetaInfo added in v0.4.17

type YamlMetaInfo struct {
	Region               string
	Credential           string
	CredentialCSP        string
	RootDiskType         string
	RootDiskSize         string
	DiskType             string
	DiskSize             string
	IdMaxLength          string
	DefaultRegionToQuery string
}

struct for unmarshal

Jump to

Keyboard shortcuts

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