targetresolver

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

Resolve is a generic resolve function for targets. It checks which target resolver to use, instantiates it and uses it to resolve the target. It therefore requires all arguments that are required for any of the contained targetresolvers. These arguments are only used if the corresponding resolver is actually used, so they can be nil for resolvers that are known to not be required. Internally, a GenericResolver is used (which uses the actual resolvers).

Types

type TargetResolver

type TargetResolver interface {
	// Resolve resolves the reference in the given Target, if possible.
	Resolve(context.Context, *lsv1alpha1.Target) (*lsv1alpha1.ResolvedTarget, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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