Update to match new configuration structure

This commit is contained in:
Dane Everitt
2020-04-10 15:22:15 -07:00
parent 62ed90e621
commit ac9ab4c0b0
3 changed files with 12 additions and 7 deletions

View File

@@ -21,6 +21,17 @@ type Configuration struct {
// if the debug flag is passed through the command line arguments.
Debug bool
// A unique identifier for this node in the Panel.
Uuid string
// An identifier for the token which must be included in any requests to the panel
// so that the token can be looked up correctly.
AuthenticationTokenId string `yaml:"token_id"`
// The token used when performing operations. Requests to this instance must
// validate against it.
AuthenticationToken string `yaml:"token"`
Api ApiConfiguration
System SystemConfiguration
Docker DockerConfiguration
@@ -55,10 +66,6 @@ type Configuration struct {
// The location where the panel is running that this daemon should connect to
// to collect data and send events.
PanelLocation string `yaml:"remote"`
// The token used when performing operations. Requests to this instance must
// validate against it.
AuthenticationToken string `yaml:"token"`
}
// Defines basic system configuration settings.