resolver

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

type Option

type Option func(r *Resolver)

func WithResolveGlobal

func WithResolveGlobal() Option

func WithResolveLocal

func WithResolveLocal() Option

func WithResolveSubOptions

func WithResolveSubOptions() Option

func WithSkipRequired

func WithSkipRequired(skip bool) Option

type Resolver

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

func New

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

func (*Resolver) Resolve

func (r *Resolver) Resolve(
	ctx context.Context,
	dynamicDefinitions map[string]*types.Option,
	optionDefinitions map[string]*types.Option,
	optionValues map[string]config.OptionValue,
) (map[string]config.OptionValue, config.OptionDefinitions, error)

Jump to

Keyboard shortcuts

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