cloud

package
v0.9.20 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAliEcsInstanceType

func GetAliEcsInstanceType() (*bytes.Buffer, error)

func GetAliEcsMetadataToken

func GetAliEcsMetadataToken() (*bytes.Buffer, error)

func GetAliEcsNetbwEgress

func GetAliEcsNetbwEgress() (*bytes.Buffer, error)

func GetAliEcsNetbwIngress

func GetAliEcsNetbwIngress() (*bytes.Buffer, error)

func GetAliEcsNetworkSpeed

func GetAliEcsNetworkSpeed() (int, error)

func GetAwsEc2NetSpeed

func GetAwsEc2NetSpeed() (int, error)

func GetAzureVMInstanceMetadata

func GetAzureVMInstanceMetadata() ([]byte, error)

func GetEC2IMDSv2Token

func GetEC2IMDSv2Token() (*bytes.Buffer, error)

func GetEC2InstanceType

func GetEC2InstanceType() (*bytes.Buffer, error)

func GetHuaweiEcsMetadata

func GetHuaweiEcsMetadata() (*bytes.Buffer, error)

func GetHuaweiEcsNetworkSpeed

func GetHuaweiEcsNetworkSpeed() (int, error)

func GetNicSpeed

func GetNicSpeed() (int, error)

func GetTencentCvmBandwidthEgress

func GetTencentCvmBandwidthEgress() (*bytes.Buffer, error)

func GetTencentCvmBandwidthIngress

func GetTencentCvmBandwidthIngress() (*bytes.Buffer, error)

func GetTencentCvmInstanceType

func GetTencentCvmInstanceType() (*bytes.Buffer, error)

func GetTencentCvmNetworkSpeed

func GetTencentCvmNetworkSpeed() (int, error)

func IsAliyun

func IsAliyun() bool

func IsAws

func IsAws() bool

func IsAzure

func IsAzure() bool

func IsHuawei

func IsHuawei() bool

func IsTencent

func IsTencent() bool

Types

type HuaweiEcsNetworkData

type HuaweiEcsNetworkData struct {
	Qos *HuaweiEcsNetworkQosData `json:"qos"`
}

func GetHuaweiEcsNetworkData

func GetHuaweiEcsNetworkData() (*HuaweiEcsNetworkData, error)

type HuaweiEcsNetworkQosData

type HuaweiEcsNetworkQosData struct {
	InstanceMinBandwidth int `json:"instance_min_bandwidth"`
	InstanceMaxBandwidth int `json:"instance_max_bandwidth"`
}

type Type added in v0.9.19

type Type string
const (
	TypeUnknown Type = "unknown"
	TypeAws     Type = "aws"
	TypeAzure   Type = "azure"
	TypeAliyun  Type = "aliyun"
	TypeHuawei  Type = "huawei"
	TypeTencent Type = "tencent"
)

func Which added in v0.9.19

func Which() Type

Jump to

Keyboard shortcuts

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