errors

package
v1.28.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 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 string, resources ...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

type Unauthenticated added in v1.28.0

type Unauthenticated struct{}

func NewUnauthenticated added in v1.28.0

func NewUnauthenticated() Unauthenticated

NewUnauthenticated creates an explicit Unauthenticated error

func (Unauthenticated) Error added in v1.28.0

func (u Unauthenticated) Error() string

Jump to

Keyboard shortcuts

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