# Functions
DetailedVersionString returns a detailed version string including version number, git commit, build date, source tree state and the go runtime version.
Exec runs the given cmd in /bin/sh, saves its stdout/stderr streams to the specified files.
ExecCmdInDir executes the given command in given directory and saves output to ./stdout and ./stderr files (truncates files if exists, creates them if not with 0600/-rw------- permissions).
FindSeqNum finds the file with the highest number under configFolder named like 0.settings, 1.settings so on.
FindSeqNumConfig gets the laster seq no from config files.
FindSeqNumStatus gets the laster seq no from status files.
GetHandlerEnv 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.
No description provided by the author
ParseHandlerEnv parses the /var/lib/waagent/[extension]/HandlerEnvironment.json format.
ReadSettings locates the .settings file and returns public settings JSON, and protected settings JSON (by decrypting it with the keys in configFolder).
UnmarshalHandlerSettings unmarshals given publicSettings/protectedSettings types assumed underlying values are JSON into references publicV/protectedV respectively (of struct types that contain structured fields for settings).
VersionString builds a compact version string in format: vVERSION/git@GitCommit[-State].
# Constants
HandlerEnvFileName is the file name of the Handler Environment as placed by the Azure Linux Guest Agent.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
HandlerEnvironment describes the handler environment configuration presented to the extension handler by the Azure Linux Guest Agent.
No description provided by the author
No description provided by the author