balena-supervisor/test/data/mnt/boot
Christina Ying Wang 53f5641ef1 Refactor host-config to be its own module
The host-config module exposes the following interfaces: get,
patch, and parse.

`get` gets host configuration such as redsocks proxy configuration
and hostname and returns it in an object of type HostConfiguration.

`patch` takes an object of type HostConfiguration or LegacyHostConfiguration
and updates the hostname and redsocks proxy configuration, optionally
forcing the patch through update locks.

`parse` takes a user input of unknown type and parses it into type
HostConfiguration or LegacyHostConfiguration for patching, erroring if
parse was unsuccessful.

LegacyHostConfiguration is a looser typing of the user input which does
not validate values of the five known proxy fields of type, ip, port,
username, and password. We should stop supporting it in the next
major Supervisor API release.

Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
2024-07-03 16:47:51 -07:00
..
extlinux Add support for extlinux configuration files 2018-06-05 17:00:45 +01:00
system-proxy Refactor host-config to be its own module 2024-07-03 16:47:51 -07:00
config.txt typos: seperate -> separate 2021-03-17 14:27:53 -04:00
device-type.json Added test case for /v1/restart API 2020-11-30 15:42:49 -05:00