pkg

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceValidationLabel   = "namespaces.warden.kyma-project.io/validate"
	NamespaceValidationEnabled = "enabled"
)
View Source
const (
	PodValidationLabel = "pods.warden.kyma-project.io/validate"
	// Pending is status when pod validation result is unknown - probably where is some problem with infrastructure.
	ValidationStatusPending = "pending"
	// Success is status when pod validation passed the controller check.
	ValidationStatusSuccess = "success"
	// Failed is status when pod validation didn't pass the controller check.
	// This value will go through
	ValidationStatusFailed = "failed"
)

Variables

This section is empty.

Functions

func NewUnknownResultErr

func NewUnknownResultErr(err error) error

func NewValidationFailedErr

func NewValidationFailedErr(err error) error

Types

type ErrorType

type ErrorType int
const (
	// UnexpectedError
	// The error is not known
	UnexpectedError ErrorType = iota + 1
	// ValidationError
	// This error describe when the input image is not valid
	//
	ValidationError
	// UnknownResult
	//	This error appears when during validation strange error come up and we don't know the validation result.
	//	e.g.: communication errors
	//
	UnknownResult
)

func ErrorCode

func ErrorCode(e error) ErrorType

type NotaryError

type NotaryError struct {
	Message string
	// contains filtered or unexported fields
}

func (NotaryError) Error

func (e NotaryError) Error() string

func (NotaryError) Is

func (e NotaryError) Is(err error) bool

Jump to

Keyboard shortcuts

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