Skip to main content

Module embedded_config

Module embedded_config 

Source
Expand description

Embedded configuration support for alien-deploy-cli and alien-agent binaries.

The package builder appends a JSON-encoded config struct to the end of the binary, followed by a 4-byte little-endian length and 8-byte magic trailer. This allows a single binary to be customized per deployment group without recompilation.

Structs§

AgentConfig
Configuration embedded in alien-agent binaries.
DeployCliConfig
Configuration embedded in alien-deploy-cli binaries.

Enums§

EmbeddedConfigError
Errors from embedded config operations.

Constants§

FOOTER_SIZE
Size of the footer: 4 bytes (length) + 8 bytes (magic).
MAGIC_BYTES
Magic bytes at the end of a binary with embedded config.

Functions§

append_embedded_config
Append embedded configuration to a binary.
load_embedded_config
Load embedded configuration from the current binary.
load_embedded_config_from_path
Load embedded configuration from a specific binary path.