errors

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConstraintViolation         = errors.New("constraint violation")
	ErrConstraintParsingError      = errors.New("constraint parsing error")
	ErrConstraintRequiresRBAC      = errors.New("constraints require RBAC to be enabled (role_definition section must exist)")
	ErrInvalidConstraintDefinition = errors.New("invalid constraint definition")
)

Global errors for constraints defined here.

View Source
var (
	ErrNameNotFound                = errors.New("error: name does not exist")
	ErrDomainParameter             = errors.New("error: domain should be 1 parameter")
	ErrLinkNotFound                = errors.New("error: link between name1 and name2 does not exist")
	ErrUseDomainParameter          = errors.New("error: useDomain should be 1 parameter")
	ErrInvalidFieldValuesParameter = errors.New("fieldValues requires at least one parameter")

	// GetAllowedObjectConditions errors.
	ErrObjCondition   = errors.New("need to meet the prefix required by the object condition")
	ErrEmptyCondition = errors.New("GetAllowedObjectConditions have an empty condition")
)

Global errors for rbac defined here.

Functions

func NewConstraintViolationError added in v1.10.2

func NewConstraintViolationError(constraintName, message string) error

NewConstraintViolationError creates a new constraint violation error.

Types

type ConstraintViolationError added in v1.10.2

type ConstraintViolationError struct {
	ConstraintName string
	Message        string
}

ConstraintViolationError represents a specific constraint violation.

func (*ConstraintViolationError) Error added in v1.10.2

func (e *ConstraintViolationError) Error() string

Jump to

Keyboard shortcuts

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