resolver

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 19 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 added in v0.3.4

func WithResolveSubOptions() Option

func WithSkipRequired

func WithSkipRequired(skip bool) Option

type Resolver added in v0.3.4

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 added in v0.3.4

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