configresolver

package
v0.0.0-...-7618f3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

package configresolver

This package is providing the Resolve function that will resolve a given configuration template against a given service by replacing templates variables with corresponding data from the service

Documentation

Overview

Package configresolver resolves config templates using information from a service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL