resolver

package
v1.16.109 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

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