errors

package
v1.22.13 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forbidden

type Forbidden struct {
	// contains filtered or unexported fields
}

Forbidden indicates a failed authorization

func NewForbidden

func NewForbidden(principal *models.Principal, verb, resource string) Forbidden

NewForbidden creates an explicit Forbidden error with details about the principal and the attempted access on a specific resource

func (Forbidden) Error

func (f Forbidden) Error() string

Jump to

Keyboard shortcuts

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