Documentation
¶
Index ¶
- Constants
- Variables
- func CheckAndSetHomeDir()
- func DetectAgentMode(configuredMode string) string
- func DetectECS() bool
- func DetectKubernetesMode(configuredMode string) string
- func GetConfigPath(configFileName string, sectionKey string, defaultPath string, ...) (interface{}, error)
- func GetCredentials(mode string, credsConfig map[string]string) (result map[string]string)
- func GetDefaultJsonConfigMap(osType, mode string) (map[string]interface{}, error)
- func GetHttpProxy(proxyConfig map[string]string) (result map[string]string)
- func GetHttpsProxy(proxyConfig map[string]string) (result map[string]string)
- func GetJsonMapFromFile(filename string) (map[string]interface{}, error)
- func GetJsonMapFromJsonBytes(jsonArray []byte) (map[string]interface{}, error)
- func GetNoProxy(proxyConfig map[string]string) (result map[string]string)
- func GetSSL(sslConfig map[string]string) (result map[string]string)
- func GetWindowsProgramDataPath() string
- func GetWindowsSystemDrivePath() string
- func LoadImdsRetries(imdsConfig *commonconfig.IMDS)
- func SDKRegionWithCredsMap(mode string, credsConfig map[string]string) (region string)
- func SetProxyEnv(proxyConfig map[string]string)
- func SetSSLEnv(sslConfig map[string]string)
- func SetWithCustomizedKeyIfFound(input interface{}, targetKeyMap map[string]string, ...)
- func SetWithSameKeyIfFound(input interface{}, target_key_list []string, result map[string]interface{})
Constants ¶
View Source
const ( SystemDrive = "SystemDrive" ProgramData = "ProgramData" )
environment var definition
View Source
const (
DEFAULT_PROFILE = "AmazonCloudWatchAgent"
)
Variables ¶
View Source
var DefaultEC2Region = defaultEC2Region
View Source
var DefaultECSRegion = defaultECSRegion
View Source
var DetectCredentialsPath = detectCredentialsPath
View Source
var DetectRegion = detectRegion
View Source
var IsAKS = azuredetector.IsAKS
IsAKS/IsAzureVM are overridable detection hooks; tests override these vars.
View Source
var IsAzureVM = azuredetector.IsAzureVM
View Source
var IsEKS = isEKS
Functions ¶
func CheckAndSetHomeDir ¶
func CheckAndSetHomeDir()
func DetectAgentMode ¶
func DetectECS ¶ added in v1.300071.0
func DetectECS() bool
DetectECS reports whether the agent is running on ECS. It indirects the ecsutil singleton so callers don't depend on it directly, mirroring DetectKubernetesMode.
func DetectKubernetesMode ¶ added in v1.300034.0
func GetConfigPath ¶ added in v1.300050.0
func GetCredentials ¶
func GetDefaultJsonConfigMap ¶
func GetJsonMapFromFile ¶
get the json map from a file
func GetJsonMapFromJsonBytes ¶
get the json map from the json byte array
func GetWindowsProgramDataPath ¶
func GetWindowsProgramDataPath() string
func GetWindowsSystemDrivePath ¶
func GetWindowsSystemDrivePath() string
func LoadImdsRetries ¶ added in v1.300028.0
func LoadImdsRetries(imdsConfig *commonconfig.IMDS)
func SDKRegionWithCredsMap ¶
func SetProxyEnv ¶
func SetWithCustomizedKeyIfFound ¶
func SetWithCustomizedKeyIfFound(input interface{}, targetKeyMap map[string]string, result map[string]interface{})
We are doing one level search here
func SetWithSameKeyIfFound ¶
func SetWithSameKeyIfFound(input interface{}, target_key_list []string, result map[string]interface{})
We are doing one level search here
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package azuredetector detects Azure VM / AKS, mirroring the eksdetector package.
|
Package azuredetector detects Azure VM / AKS, mirroring the eksdetector package. |
Click to show internal directories.
Click to hide internal directories.