Documentation
¶
Overview ¶
Package config deals with the configuration file format used by terraform-simple-registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listeners ¶
type Listeners map[Listener]struct{}
func (Listeners) ListenAndServe ¶
ListenAndServe attempts to listen on all of the listeners in the receiver and then serves requests with the given handler on those that are successful.
Each listener operates in its own goroutine, which may in turn spawn additional goroutines as requests arrive.
This function never returns. If any of the listeners fail to listen, errors will be logged using the "log" package.
type Module ¶
ModuleConfig is the configuration for a single module to be served from a module registry service.
type Modules ¶
ModulesConfig is a map of many modules to serve from a module registry service. The keys of each respective map are the "namespace" (an arbitrary container that may be used to model internal departments, etc), the module name, and the provider.
type ModulesConfig ¶
ModulesConfig is the root type of a configuration for a modules server.
func LoadModulesConfig ¶
func LoadModulesConfig(body hcl.Body) (*ModulesConfig, hcl.Diagnostics)
LoadModulesConfig processes a raw HCL Body into a configuration for a module registry server.
If the returned diagnostics has errors, the returned configuration may be incomplete or invalid. Otherwise, the returned configuration is complete and guaranteed to be statically valid. (References to files, TCP ports, etc are not checked until they are used.)