maidenlaneplugins

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 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 EventOperation

type EventOperation int

EventOperation enumerates operation types on events

type SecurityModule

type SecurityModule interface {

	// VerifyToken - Authentication plugpoint. Verfies a token and returns a context object to store that will be returned to authorization points
	VerifyToken(string) (interface{}, error)

	// AuthRPC - Authorization plugpoint for a synchronous RPC call
	AuthRPC(authCtx interface{}, method string, args ...interface{}) error
	// AuthRPCSubscribe - Authorization plugpoint for subscribe RPC call
	AuthRPCSubscribe(authCtx interface{}, namespace string, channel interface{}, args ...interface{}) error
	// AuthEventStreams - Authorization plugpoint for event management system (single permission currently - evolution likely as requirements evolve)
	AuthEventStreams(authCtx interface{}) error
	// AuthListAsyncReplies - Authorization plugpoint for listing replies in the reply store (containing receipts and/or errors)
	AuthListAsyncReplies(authCtx interface{}) error
	// AuthReadAsyncReplyByUUID - Authorization plugpoint for getting an individual reply by UUID (containing an individual receipt/error)
	AuthReadAsyncReplyByUUID(authCtx interface{}) error
}

SecurityModule is a code plug-point that can be implemented using a go plugin module.

Build your plugin with a "SecurityModule" export that implements this interface,
and configure the dynamic load path of your module in the configuration.

Jump to

Keyboard shortcuts

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