# Functions

DeleteCurrentPidAndStartTime delete the file created by SaveCurrentPidAndStartTime.
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.
GetProcessStartTime returns the start time of the active process if still active.
IsExtensionStillRunning checks if there is active process for the same extension name.
IsSmallerThan returns true if the sequence number stored at path is smaller than the provided num.
No description provided by the author
ParseHandlerEnv parses the /var/lib/waagent/[extension]/HandlerEnvironment.json format.
ReadPidAndStartTime reads the stored pid and process start time from a file extName.pid Returns 0 and "" if path not found.
ReadSettings locates the .settings file and returns public settings JSON, and protected settings JSON (by decrypting it with the keys in configFolder).
SaveCurrentPidAndStartTime stores current process id with start date in file extName.pid Example: 325 Tue Dec 8 15:54:04 2020.
SaveSeqNum replaces the stored sequence number in file, or creates a new file at path if it does not exist.
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

# Variables

These fields are populated by govvv at compile-time.
These fields are populated by govvv at compile-time.
These fields are populated by govvv at compile-time.
These fields are populated by govvv at compile-time.

# 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

# Type aliases

No description provided by the author
No description provided by the author