Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicStateConfig ¶
type DynamicStateConfig struct { Sensors map[string][]EnvironmentSensorConfig `json:"sensors"` State struct { Open struct { AllowedCredentials []HTTPBACredentialID `json:"allowed_credentials"` } `json:"open"` } `json:"state"` }
type EnvironmentSensorConfig ¶
type EnvironmentSensorConfig struct { SensorData types.EnvironmentSensor `json:"sensor_data"` AllowedCredentials []HTTPBACredentialID `json:"allowed_credentials"` }
type HTTPBACredential ¶
type HTTPBACredentialID ¶
type HTTPBACredentialID string
type HTTPBACredentials ¶
type HTTPBACredentials map[HTTPBACredentialID]HTTPBACredential
type SpaceapidConfig ¶
type SpaceapidConfig struct { // A list of username/password pairs for BasicAuth endpoints Credentials HTTPBACredentials `json:"credentials"` // The dynamic part of the spaceapi JSON Dynamic DynamicStateConfig `json:"dynamic"` // The static part of the spaceapi JSON Response types.SpaceAPIResponseV14 `json:"response"` }
SpaceapidConfig is the representation of the config.json file
func ParseConfiguration ¶
func ParseConfiguration() (conf SpaceapidConfig)
ParseConfiguration returns the config from file
Click to show internal directories.
Click to hide internal directories.