Documentation
¶
Overview ¶
Package configresolver resolves configuration templates against a given service by replacing template variables with corresponding data from the service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(tpl integration.Config, svc listeners.Service) (integration.Config, error)
Resolve takes a template and a service and generates a config with valid connection info and relevant tags.
func SubstituteTemplateEnvVars ¶
func SubstituteTemplateEnvVars(config *integration.Config) error
SubstituteTemplateEnvVars replaces %%ENV_VARIABLE%% from environment variables in the config init, instances, and logs config. When there is an error, it continues replacing. When there are multiple errors, the one returned is the one that happened first.
Types ¶
type NoServiceError ¶
type NoServiceError struct {
// contains filtered or unexported fields
}
NoServiceError represents an error that indicates that there's a problem with a service
func NewNoServiceError ¶
func NewNoServiceError(message string) *NoServiceError
NewNoServiceError returns a new NoServiceError
func (*NoServiceError) Error ¶
func (n *NoServiceError) Error() string
Error returns the error message