authzed

package
v0.0.0-...-db1821d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "authzed"

Variables

This section is empty.

Functions

func GetAuthzedClient

func GetAuthzedClient() *authzed.Client

Types

type AuthzedPlugin

type AuthzedPlugin struct {
	// contains filtered or unexported fields
}

func (*AuthzedPlugin) Reconfigure

func (p *AuthzedPlugin) Reconfigure(ctx context.Context, config any)

func (*AuthzedPlugin) Start

func (p *AuthzedPlugin) Start(ctx context.Context) error

func (*AuthzedPlugin) Stop

func (p *AuthzedPlugin) Stop(ctx context.Context)

type Config

type Config struct {
	Endpoint string `json:"endpoint"`
	Insecure bool   `json:"insecure"`
	Token    string `json:"token"`
}

type Factory

type Factory struct{}

func (Factory) New

func (Factory) New(m *plugins.Manager, config any) plugins.Plugin

func (Factory) Validate

func (Factory) Validate(_ *plugins.Manager, config []byte) (any, error)

Jump to

Keyboard shortcuts

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