resolver

package
v1.0.0-beta.60 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 17 Imported by: 2 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 AddErrorResolver

func AddErrorResolver(er ErrorResolver)

AddErrorResolver adds the provided error resolver to the list of resolvers which will be used to resolve errors.

func BuildOutputDetails

func BuildOutputDetails(stdout string, stderr string) string

Types

type ErrorResolver

type ErrorResolver interface {
	Resolve(err error) (ResolvedResult, bool)
}

ErrorResolver is an interface that allows kpt to resolve an error into an error message suitable for the end user.

type ResolvedResult

type ResolvedResult struct {
	Message  string
	ExitCode int
}

func ResolveError

func ResolveError(err error) (ResolvedResult, bool)

ResolveError attempts to resolve the provided error into a descriptive string which will be displayed to the user. If the last return value is false, the error could not be resolved.

Jump to

Keyboard shortcuts

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