resolver

package
v0.3.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(userOptions map[string]string, extraValues map[string]string, logger log.Logger, opts ...Option) *resolver

func ResolveDefaultValue

func ResolveDefaultValue(val string, resolvedOptions map[string]string) string

func ResolveDefaultValues

func ResolveDefaultValues(vals map[string]string, resolvedOptions map[string]string) map[string]string

replace all value in the map with the resolved default value

Types

type Option

type Option func(r *resolver)

func WithResolveGlobal

func WithResolveGlobal() Option

func WithResolveLocal

func WithResolveLocal() Option

func WithSkipRequired

func WithSkipRequired(skip bool) Option

Jump to

Keyboard shortcuts

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