Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAndSetHomeDir()
- func DetectAgentMode(configuredMode string) string
- 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 GetOSMajorVersion() (int, error)
- func GetSSL(sslConfig map[string]string) (result map[string]string)
- func GetWindowsProgramDataPath() string
- func GetWindowsSystemDrivePath() string
- 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 DetectCredentialsPath func() string = detectCredentialsPath
View Source
var DetectRegion func(mode string, credsConfig map[string]string) string = detectRegion
Functions ¶
func CheckAndSetHomeDir ¶
func CheckAndSetHomeDir()
func DetectAgentMode ¶
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 GetOSMajorVersion ¶
func GetWindowsProgramDataPath ¶
func GetWindowsProgramDataPath() string
func GetWindowsSystemDrivePath ¶
func GetWindowsSystemDrivePath() string
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.