errors

package
v0.0.0-...-366271b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(twigoError TwigoError) error

func GenerateExitCodeDocs

func GenerateExitCodeDocs(dir string) error

GenerateExitCodeDocs will generate documentation for the exit codes that the cosign application will throw. Inspired by elemental-cli who convieniently solved this problem prior: https://github.com/rancher/elemental-cli/blob/main/docs/generate_docs.go there was no need to change (apart from some file paths) due to it giving us exactly what we want without error.

Types

type ErrorCode

type ErrorCode struct {
	// contains filtered or unexported fields
}

type TwigoError

type TwigoError struct {
	Message string
	Code    int
}

func (*TwigoError) Error

func (te *TwigoError) Error() string

Error implements error

func (*TwigoError) ExitCode

func (te *TwigoError) ExitCode() int

Jump to

Keyboard shortcuts

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