Documentation
¶
Overview ¶
Package config implements functions for saving a struct to a file It then provides functions to later read it such that we can restore the same struct
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // V2 indicates we are version 2 V2 *v2.V2 // contains filtered or unexported fields }
Config represents the config state file
func NewFromDirectory ¶
NewFromDirectory creates a new config struct from a directory It does this by loading the JSON file from disk
func (*Config) HasSecureInternet ¶
HasSecureInternet returns whether or not the configuration has a secure internet server
Directories
¶
Path | Synopsis |
---|---|
Package atomicfile contains code related to writing to filesystems atomically.
|
Package atomicfile contains code related to writing to filesystems atomically. |
Package v1 implements a minimum set of the v1 config to convert it to a v2 config In version 1 of the config we used the internal state as the config This was bad as now if we want to change some internal representation the config also changes This package can be removed when most people have migrated from v1 to v2
|
Package v1 implements a minimum set of the v1 config to convert it to a v2 config In version 1 of the config we used the internal state as the config This was bad as now if we want to change some internal representation the config also changes This package can be removed when most people have migrated from v1 to v2 |
Package v2 implements version 2 of the state file
|
Package v2 implements version 2 of the state file |
Click to show internal directories.
Click to hide internal directories.