variable

package
v0.14.9-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentVariableProvider

type EnvironmentVariableProvider struct{}

func (EnvironmentVariableProvider) GetVariable

func (p EnvironmentVariableProvider) GetVariable(name string) (string, error)

type Injector

type Injector struct {
	// contains filtered or unexported fields
}

func NewInjector

func NewInjector(options ...InjectorOption) Injector

func (Injector) Inject

func (i Injector) Inject(target interface{}) error

func (Injector) ReplaceInString

func (i Injector) ReplaceInString(value string) (string, error)

type InjectorOption

type InjectorOption func(*Injector)

func WithVariableProvider

func WithVariableProvider(provider VariableProvider) InjectorOption

type VariableProvider

type VariableProvider interface {
	GetVariable(string) (string, error)
}

type Variables

type Variables map[string]string

Jump to

Keyboard shortcuts

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