examples

package
v1.17.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllExamples

type AllExamples map[string]ExamplesOrDeprecated

AllExamples is a map from error codes to either example errors, or a mark that the code is deprecated.

func Generate

func Generate() AllExamples

Generate generates example errors for documentation. KNV1XXX means the user has a mistake in their repository they need to fix. KNV2XXX means something went wrong in the cluster - it could be transient or users may need to change something on the cluster. KNV9XXX means we made a mistake programming, and users should file a bug.

type ExamplesOrDeprecated

type ExamplesOrDeprecated struct {
	Examples   []status.Error
	Deprecated bool
}

ExamplesOrDeprecated contains either a list of example errors, or that the id is deprecated.

func (*ExamplesOrDeprecated) Add

func (e *ExamplesOrDeprecated) Add(error status.Error)

Add adds the given error to the collection examples of errors.

Jump to

Keyboard shortcuts

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