Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Values ¶
type Values struct {
Credentials *device.Credentials `json:"credentials,omitempty"`
}
Values from an IoTap configuration.
func LoadFromConfigDir ¶
LoadFromConfigDir creates a new *Values instance from a user config directory file. It returns an error if the file cannot be opened or contains invalid data.
func LoadFromEnv ¶
LoadFromEnv initializes a new *Values instance using values from the environment. It returns an error if the required environment variables are missing or invalid.
func LoadValues ¶
LoadValues creates a new *Values instance from two sources, with order of precedence: 1. Environment variables (IOTAP_*) 2. Configuration file at default location (~/.config/iotap.json)
Click to show internal directories.
Click to hide internal directories.