Documentation ¶
Index ¶
- Constants
- func CloudType() string
- func GetAliEcsInstanceType() ([]byte, error)
- func GetAliEcsMetadataToken() ([]byte, error)
- func GetAliEcsNetbwEgress() ([]byte, error)
- func GetAliEcsNetbwIngress() ([]byte, error)
- func GetAliEcsNetworkSpeed() (int, error)
- func GetAwsEc2NetSpeed() (int, error)
- func GetAzureVMInstanceMetadata() ([]byte, error)
- func GetEC2IMDSv2Token() ([]byte, error)
- func GetEC2InstanceType() ([]byte, error)
- func GetHuaweiEcsMetadata() ([]byte, error)
- func GetHuaweiEcsNetworkSpeed() (int, error)
- func GetNicSpeed() (int, error)
- func GetTencentCvmBandwidthEgress() ([]byte, error)
- func GetTencentCvmBandwidthIngress() ([]byte, error)
- func GetTencentCvmInstanceType() ([]byte, error)
- func GetTencentCvmNetworkSpeed() (int, error)
- func IsAliyun() bool
- func IsAws() bool
- func IsAzure() bool
- func IsHuawei() bool
- func IsTencent() bool
- type HuaweiEcsNetworkData
- type HuaweiEcsNetworkQosData
Constants ¶
View Source
const ( CloudTypeUnknown = "unknown" CloudTypeAws = "aws" CloudTypeAzure = "azure" CloudTypeAliyun = "aliyun" CloudTypeHuawei = "huawei" CloudTypeTencent = "tencent" )
Variables ¶
This section is empty.
Functions ¶
func GetAliEcsInstanceType ¶
func GetAliEcsMetadataToken ¶
func GetAliEcsNetbwEgress ¶
func GetAliEcsNetbwIngress ¶
func GetAliEcsNetworkSpeed ¶
func GetAwsEc2NetSpeed ¶
func GetEC2IMDSv2Token ¶
func GetEC2InstanceType ¶
func GetHuaweiEcsMetadata ¶
func GetNicSpeed ¶
Types ¶
type HuaweiEcsNetworkData ¶
type HuaweiEcsNetworkData struct {
Qos *HuaweiEcsNetworkQosData `json:"qos"`
}
func GetHuaweiEcsNetworkData ¶
func GetHuaweiEcsNetworkData() (*HuaweiEcsNetworkData, error)
type HuaweiEcsNetworkQosData ¶
Click to show internal directories.
Click to hide internal directories.