plugin

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 14 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handshake = plugin.HandshakeConfig{

	ProtocolVersion:  1,
	MagicCookieKey:   "IDP_PLUGIN",
	MagicCookieValue: "be60172b-2526-432a-865c-12386998a714",
}

Handshake is a common handshake that is shared by plugin and host.

View Source
var PluginMap = plugin.PluginSet{
	"idp-plugin": &grpcplugin.PluginGRPC{},
}

PluginMap is the map of plugins we can dispense.

Functions

func Serve

func Serve(options *Options) error

Types

type AsertoPluginServer

type AsertoPluginServer struct {
	Handler Handler
}

func (AsertoPluginServer) Delete

func (AsertoPluginServer) Export

func (AsertoPluginServer) Import

func (AsertoPluginServer) Info

func (AsertoPluginServer) Validate

type Config added in v0.8.1

type Config interface {
	Validate(OperationType) error
	Description() string
}

type Handler added in v0.8.1

type Handler interface {
	GetConfig() Config
	Open(Config, OperationType) error
	Read() ([]*api.User, error)
	Write(*api.User) error
	Delete(string) error
	Close() (*Stats, error)
	GetVersion() (string, string, string)
}

type OperationType

type OperationType int
const (
	OperationTypeWrite OperationType = iota
	OperationTypeRead
	OperationTypeDelete
)

type Options added in v0.8.1

type Options struct {
	Handler Handler
}

type Stats added in v0.0.3

type Stats struct {
	Received int32
	Created  int32
	Updated  int32
	Deleted  int32
	Errors   int32
}

Jump to

Keyboard shortcuts

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