Documentation
¶
Index ¶
Constants ¶
View Source
const HandlerEnvFileName = "HandlerEnvironment.json"
HandlerEnvFileName is the file name of the Handler Environment as placed by the Azure Linux Guest Agent.
Variables ¶
This section is empty.
Functions ¶
func GetExtensionSettings ¶
Types ¶
type HandlerEnvironment ¶
type HandlerEnvironment struct {
Version float64 `json:"version"`
Name string `json:"name"`
HandlerEnvironment struct {
HeartbeatFile string `json:"heartbeatFile"`
StatusFolder string `json:"statusFolder"`
ConfigFolder string `json:"configFolder"`
LogFolder string `json:"logFolder"`
}
}
HandlerEnvironment describes the handler environment configuration presented to the extension handler by the Azure Linux Guest Agent.
func GetEnvironment ¶
func GetEnvironment() (environment HandlerEnvironment, _ error)
GetEnvironment locates the HandlerEnvironment.json file by assuming it lives next to or one level above the extension handler (read: this) executable, reads, parses and returns it
Click to show internal directories.
Click to hide internal directories.