mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 15:32:24 +00:00
53f5641ef1
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> |
||
---|---|---|
.. | ||
docker-states | ||
etc | ||
mnt/boot | ||
ports/not-ascending | ||
resin-data | ||
root | ||
sys/class/net | ||
apps-pin.json | ||
apps.json | ||
boot0.img | ||
device-api-responses.json | ||
testconfig-apibinder-offline2.json | ||
testconfig-apibinder-offline.json | ||
testconfig-apibinder.json | ||
testconfig.json |