cdnerrors

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: BSD-2-Clause-Views Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDatabaseInitialized           = errors.New("database is already initialized")
	ErrForbidden                     = errors.New("access to resource is not allowed")
	ErrNotFound                      = errors.New("resource not found")
	ErrUnprocessable                 = errors.New("resource not processable")
	ErrAlreadyExists                 = errors.New("resource already exists")
	ErrCheckViolation                = errors.New("invalid input data")
	ErrExclutionViolation            = errors.New("conflicting data in database")
	ErrBadPassword                   = errors.New("bad password")
	ErrKeyCloakEmailUnverified       = errors.New("keycloak user email is not verified")
	ErrKeyCloakUserExists            = errors.New("keycloak username already exists with other UUID")
	ErrBadOldPassword                = errors.New("old password is invalid")
	ErrUnableToParseNameOrID         = errors.New("unable to parse name or ID")
	ErrInvalidFormData               = errors.New("invalid form data")
	ErrServiceByNameNeedsOrg         = errors.New("looking up service by name requires org")
	ErrOriginGroupByNameNeedsService = errors.New("looking up origin group by name requires service")
	ErrServiceQuotaHit               = errors.New("not allowed to create more services")
	ErrDomainQuotaHit                = errors.New("not allowed to create more domains")
	ErrOrgClientTokenQuotaHit        = errors.New("not allowed to create more org client tokens")
	ErrInvalidVCL                    = errors.New("VCL is invalid")
	ErrUnknownDomain                 = errors.New("unknown domain name")
	ErrReEncryptionMissingPassword   = errors.New("re-encryption needs at least two configured encryption passwords")
	ErrReEncryptionFailed            = errors.New("re-encryption failed for at least one token")
	ErrHasDependents                 = errors.New("resource has dependent resources")
	ErrNotLocalUser                  = errors.New("operation is only available for local users")
	ErrOldPasswordRequired           = errors.New("old password is required")
	ErrSelfDelete                    = errors.New("users cannot delete themselves")
	ErrNoServiceIPAddresses          = errors.New("no service IP addresses available for allocation")
)

Errors that can be shared across the other packages

Functions

func NewValidationError

func NewValidationError(details string) error

Creates a new validation error containing the supplied details

Types

type AddressConflictError added in v0.0.30

type AddressConflictError struct {
	Address string
}

AddressConflictError identifies as ErrAlreadyExists but indicates that a specific IP address is already assigned to another node.

func (*AddressConflictError) Error added in v0.0.30

func (e *AddressConflictError) Error() string

func (*AddressConflictError) Unwrap added in v0.0.30

func (e *AddressConflictError) Unwrap() error

type DependentsError added in v0.0.30

type DependentsError struct {
	Name         string
	Services     int64
	Domains      int64
	ClientTokens int64
}

DependentsError identifies as ErrHasDependents and includes counts of dependent resources that prevent deletion.

func (*DependentsError) Error added in v0.0.30

func (e *DependentsError) Error() string

func (*DependentsError) Unwrap added in v0.0.30

func (e *DependentsError) Unwrap() error

type IPAllocationError added in v0.0.38

type IPAllocationError struct {
	Family    string // "IPv4" or "IPv6"
	Requested int
}

IPAllocationError identifies as ErrNoServiceIPAddresses and indicates which address family (IPv4 or IPv6) could not be allocated and how many were requested.

func (*IPAllocationError) Error added in v0.0.38

func (e *IPAllocationError) Error() string

func (*IPAllocationError) Unwrap added in v0.0.38

func (e *IPAllocationError) Unwrap() error

type VCLValidationError

type VCLValidationError struct {
	Details string // Message returned from validation service
}

VCLValidationError identifies as ErrInvalidVCL error but also includes a detailed message from the failed validation

func (*VCLValidationError) Error

func (e *VCLValidationError) Error() string

Implement the error interface

func (*VCLValidationError) Unwrap

func (e *VCLValidationError) Unwrap() error

Make it possible to use errors.Is(err, ErrInvalidVCL)

Jump to

Keyboard shortcuts

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