Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The Hostname of the feudal backends host Hostname string `json:"feudal_backend_host"` // The Username of this client, registered at the backend. Username string `json:"username"` // The Password of this client, registered at the backend. Password string `json:"password"` // Services maps an (arbitrary) service identifier to service structs // the service identifiers are referenced in GroupToServiceIDs and EntitlementToServiceIDs Services map[ServiceID]Service // GroupToServiceIDs determines which services are provided for users of the // group // maps a group name to service identifiers of the services // services are declared in Config.Services GroupToServiceIDs map[string][]ServiceID `json:"group_to_service_ids"` // EntitlementToServiceIDs determines which services are provided for users of the // entitlement // maps an entitlement to service identifiers of the services // services are declared in Config.Services EntitlementToServiceIDs map[string][]ServiceID `json:"entitlement_to_service_ids"` // FetchIntervalString gets parsed by time.ParseDuration FetchIntervalString string `json:"fetch_interval"` // ReconnectTimeout gets parsed by time.ParseDuration ReconnectTimeoutString string `json:"reconnect_timeout"` // After the duration of FetchInterval the client will fetch updates using the REST // interface. FetchInterval time.Duration // We reconnect to RabbitMQ after ReconnectTimeout. ReconnectTimeout time.Duration RabbitMQConfig RabbitMQConfig // The Site is the name of the site of this client. It is fetched from the backend. Site string // Debug flags control the log levels of the client. Debug DebugConfig `json:"debug"` }
Config is the structure of our config file
func ReadConfig ¶
ReadConfig reads a config file and validates it
func (*Config) GetServices ¶
GetServices resolves service ids into services
type DebugConfig ¶
type DebugConfig struct { // Sequential causes the execution of only one deployment at a time for debugging purposes Sequential bool `json:"sequential_execution"` Scripts bool `json:"scripts"` Backend bool `json:"backend"` }
The DebugConfig sets the debuging levels for components of the client.
type RabbitMQConfig ¶
RabbitMQConfig is used for the amqp source
Click to show internal directories.
Click to hide internal directories.