driver

package
v0.38.3-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultDriver

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

func (*DefaultDriver) Configuration

func (r *DefaultDriver) Configuration() configuration.Provider

func (*DefaultDriver) Registry

func (r *DefaultDriver) Registry() Registry

type Driver

type Driver interface {
	Configuration() configuration.Provider
	Registry() Registry
}

func NewDefaultDriver

func NewDefaultDriver(l *logrusx.Logger, version, build, date string) Driver

type Registry

type Registry interface {
	Init()

	WithConfig(c configuration.Provider) Registry
	WithLogger(l *logrusx.Logger) Registry
	WithBuildInfo(version, hash, date string) Registry
	BuildVersion() string
	BuildDate() string
	BuildHash() string

	ProxyRequestHandler() *proxy.RequestHandler
	HealthHandler() *healthx.Handler
	RuleHandler() *api.RuleHandler
	DecisionHandler() *api.DecisionHandler
	CredentialHandler() *api.CredentialsHandler

	Proxy() *proxy.Proxy
	Tracer() *tracing.Tracer

	authn.Registry
	authz.Registry
	mutate.Registry
	errors.Registry

	rule.Registry
	credentials.FetcherRegistry
	credentials.SignerRegistry
	credentials.VerifierRegistry

	x.RegistryWriter
	x.RegistryLogger
}

func NewRegistry

func NewRegistry(c configuration.Provider) Registry

type RegistryMemory

type RegistryMemory struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRegistryMemory

func NewRegistryMemory() *RegistryMemory

func (*RegistryMemory) AvailablePipelineAuthenticators

func (r *RegistryMemory) AvailablePipelineAuthenticators() (available []string)

func (*RegistryMemory) AvailablePipelineAuthorizers

func (r *RegistryMemory) AvailablePipelineAuthorizers() (available []string)

func (*RegistryMemory) AvailablePipelineErrorHandlers

func (r *RegistryMemory) AvailablePipelineErrorHandlers() pe.Handlers

func (*RegistryMemory) AvailablePipelineMutators

func (r *RegistryMemory) AvailablePipelineMutators() (available []string)

func (*RegistryMemory) BuildDate

func (r *RegistryMemory) BuildDate() string

func (*RegistryMemory) BuildHash

func (r *RegistryMemory) BuildHash() string

func (*RegistryMemory) BuildVersion

func (r *RegistryMemory) BuildVersion() string

func (*RegistryMemory) CredentialHandler

func (r *RegistryMemory) CredentialHandler() *api.CredentialsHandler

func (*RegistryMemory) CredentialsFetcher

func (r *RegistryMemory) CredentialsFetcher() credentials.Fetcher

func (*RegistryMemory) CredentialsSigner

func (r *RegistryMemory) CredentialsSigner() credentials.Signer

func (*RegistryMemory) CredentialsVerifier

func (r *RegistryMemory) CredentialsVerifier() credentials.Verifier

func (*RegistryMemory) DecisionHandler

func (r *RegistryMemory) DecisionHandler() *api.DecisionHandler

func (*RegistryMemory) HealthHandler

func (r *RegistryMemory) HealthHandler() *healthx.Handler

func (*RegistryMemory) Init

func (r *RegistryMemory) Init()

func (*RegistryMemory) Logger

func (r *RegistryMemory) Logger() *logrusx.Logger

func (*RegistryMemory) PipelineAuthenticator

func (r *RegistryMemory) PipelineAuthenticator(id string) (authn.Authenticator, error)

func (*RegistryMemory) PipelineAuthorizer

func (r *RegistryMemory) PipelineAuthorizer(id string) (authz.Authorizer, error)

func (*RegistryMemory) PipelineErrorHandler

func (r *RegistryMemory) PipelineErrorHandler(id string) (pe.Handler, error)

func (*RegistryMemory) PipelineMutator

func (r *RegistryMemory) PipelineMutator(id string) (mutate.Mutator, error)

func (*RegistryMemory) Proxy

func (r *RegistryMemory) Proxy() *proxy.Proxy

func (*RegistryMemory) ProxyRequestHandler

func (r *RegistryMemory) ProxyRequestHandler() *proxy.RequestHandler

func (*RegistryMemory) RuleFetcher

func (r *RegistryMemory) RuleFetcher() rule.Fetcher

func (*RegistryMemory) RuleHandler

func (r *RegistryMemory) RuleHandler() *api.RuleHandler

func (*RegistryMemory) RuleMatcher

func (r *RegistryMemory) RuleMatcher() rule.Matcher

func (*RegistryMemory) RuleRepository

func (r *RegistryMemory) RuleRepository() rule.Repository

func (*RegistryMemory) RuleValidator

func (r *RegistryMemory) RuleValidator() rule.Validator

func (*RegistryMemory) Tracer

func (r *RegistryMemory) Tracer() *tracing.Tracer

func (*RegistryMemory) WithBrokenPipelineMutator

func (r *RegistryMemory) WithBrokenPipelineMutator() *RegistryMemory

func (*RegistryMemory) WithBuildInfo

func (r *RegistryMemory) WithBuildInfo(version, hash, date string) Registry

func (*RegistryMemory) WithConfig

func (r *RegistryMemory) WithConfig(c configuration.Provider) Registry

func (*RegistryMemory) WithLogger

func (r *RegistryMemory) WithLogger(l *logrusx.Logger) Registry

func (*RegistryMemory) Writer

func (r *RegistryMemory) Writer() herodot.Writer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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