authorization

package
v0.0.0-...-793517a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeUser

type AuthorizeUser interface {
	Username() string
}

AuthorizeUser - an interface for a user object.

type Authorizer

type Authorizer interface {
	Authorize(AuthorizeUser, string) (Decision, error)
}

Authorizer - authorizes users via the bundle runtime.

type Decision

type Decision string

Decision - The outcome of the authorization check

const (
	// DecisionAllowed - The authorizer has determined the action is allowed.
	DecisionAllowed Decision = "allowed"
	// DecisionDeny - The authorizer has determined the action is not allowed.
	DecisionDeny Decision = "deny"
	// DecisionNoOpinion - The authorizer has no opinion,
	// this should mean the action is not allowed.
	DecisionNoOpinion = "no opinion"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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