settings

package
v0.0.0-...-9858bdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 10 Imported by: 0

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

func GetExtensionSettings(sequenceNumber int, publicSettings, protectedSettings interface{}) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL