flterrors

package
v1.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 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

View Source
var (
	ErrResourceIsNil                       = errors.New("resource is nil")
	ErrResourceNameIsNil                   = errors.New("metadata.name is not set")
	ErrResourceOwnerIsNil                  = errors.New("metadata.owner not set")
	ErrResourceNotFound                    = errors.New("resource not found")
	ErrParentResourceNotFound              = errors.New("parent resource not found")
	ErrUpdatingResourceWithOwnerNotAllowed = errors.New("updating the resource is not allowed because it has an owner")
	ErrDeletingResourceWithOwnerNotAllowed = errors.New("deleting the resource is not allowed because it has an owner")
	ErrResourceNotEmpty                    = errors.New("resource cannot be deleted because it contains child resources")
	ErrDuplicateName                       = errors.New("a resource with this name already exists")
	ErrResourceVersionConflict             = errors.New("the object has been modified; please apply your changes to the latest version and try again")
	ErrIllegalResourceVersionFormat        = errors.New("resource version does not match the required integer format")
	ErrNoRowsUpdated                       = errors.New("no rows were updated; assuming resource version was updated or resource was deleted")
	ErrFieldSelectorSyntax                 = errors.New("invalid field selector syntax")
	ErrFieldSelectorParseFailed            = errors.New("failed to parse field selector")
	ErrFieldSelectorUnknownSelector        = errors.New("unknown or unsupported selector")
	ErrLabelSelectorSyntax                 = errors.New("invalid label selector syntax")
	ErrLabelSelectorParseFailed            = errors.New("failed to parse label selector")
	ErrAnnotationSelectorSyntax            = errors.New("invalid annotation selector syntax")
	ErrAnnotationSelectorParseFailed       = errors.New("failed to parse annotation selector")

	// devices
	ErrTemplateVersionIsNil    = errors.New("spec.templateVersion not set")
	ErrInvalidTemplateVersion  = errors.New("device's templateVersion is not valid")
	ErrNoRenderedVersion       = errors.New("no rendered version for device")
	ErrDecommission            = errors.New("decommissioned device cannot be created or updated")
	ErrDeviceAwaitingReconnect = errors.New("device is awaiting reconnection after restore")
	ErrDeviceConflictPaused    = errors.New("device is paused due to conflicts")

	// csr
	ErrInvalidPEMBlock = errors.New("not a valid PEM block")
	ErrUnknownPEMType  = errors.New("unknown PEM type")
	ErrCNLength        = errors.New("CN must be at least 16 chars")
	ErrCSRParse        = errors.New("could not parse CSR")
	ErrCSRInvalid      = errors.New("invalid CSR")
	ErrSignature       = errors.New("signature error")
	ErrSignCert        = errors.New("error signing certificate")
	ErrParseCert       = errors.New("could not parse certificate")
	ErrEncodeCert      = errors.New("error encoding certificate")

	// certificate extensions
	ErrExtensionNotFound = errors.New("certificate extension not found")

	// authentication/authorization
	ErrInvalidTokenClaims    = errors.New("invalid token claims")
	ErrMissingTokenClaims    = errors.New("missing required token claims")
	ErrNoMappedIdentity      = errors.New("unable to get mapped identity from context")
	ErrNoOrganizations       = errors.New("user belongs to no organizations")
	ErrAmbiguousOrganization = errors.New("user belongs to multiple organizations but no organization specified")
	ErrInvalidOrgID          = errors.New("invalid organization ID format")
	ErrNotOrgMember          = errors.New("access denied to organization")

	// authprovider
	ErrDuplicateOIDCProvider   = errors.New("an OIDC auth provider with the same issuer and clientId already exists")
	ErrDuplicateOAuth2Provider = errors.New("an OAuth2 auth provider with the same userinfoUrl and clientId already exists")

	// database encoding
	ErrUnsupportedUnicode = errors.New("unsupported Unicode escape sequence")
)

Functions

func IsClientAuthError added in v0.10.0

func IsClientAuthError(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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