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
NewConstraintViolationError creates a new constraint violation error.
Types ¶
type ConstraintViolationError ¶ added in v1.10.2
ConstraintViolationError represents a specific constraint violation.
func (*ConstraintViolationError) Error ¶ added in v1.10.2
func (e *ConstraintViolationError) Error() string
Click to show internal directories.
Click to hide internal directories.