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 ExecuteTemplate ¶
ExecuteTemplate takes the provided template string and data, and renders the template. If something goes wrong, it panics.
func ResolveError ¶
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.
Types ¶
type ErrorResolver ¶
ErrorResolver is an interface that allows kpt to resolve an error into an error message suitable for the end user.
Click to show internal directories.
Click to hide internal directories.