resolver

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MPL-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DANGER_NO_AUTH

type DANGER_NO_AUTH struct{}

DANGER_NO_AUTH implements an ACL resolver short-circuit authorization in cases where it is handled somewhere else or expressly not required.

func (DANGER_NO_AUTH) ResolveTokenAndDefaultMeta

func (DANGER_NO_AUTH) ResolveTokenAndDefaultMeta(string, *acl.EnterpriseMeta, *acl.AuthorizerContext) (Result, error)

ResolveTokenAndDefaultMeta returns an authorizer with unfettered permissions.

type Result

type Result struct {
	acl.Authorizer
	// TODO: likely we can reduce this interface
	ACLIdentity structs.ACLIdentity
}

func (Result) AccessorID

func (a Result) AccessorID() string

func (Result) Identity

func (a Result) Identity() structs.ACLIdentity

func (Result) ToAllowAuthorizer

func (a Result) ToAllowAuthorizer() acl.AllowAuthorizer

Jump to

Keyboard shortcuts

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