resolver

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MPL-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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