Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAndSetHomeDir()
- func DetectAgentMode(configuredMode string) string
- 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 IsEKS = isEKS
Functions ¶
func CheckAndSetHomeDir ¶
func CheckAndSetHomeDir()
func DetectAgentMode ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.