app

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer struct {
	Resolver         *resolvers.Resolvers
	AuthorizerServer *impl.AuthorizerServer
	// contains filtered or unexported fields
}

func (*Authorizer) AvailableServices added in v0.30.0

func (e *Authorizer) AvailableServices() []string

func (*Authorizer) Cleanups added in v0.30.0

func (e *Authorizer) Cleanups() []func()

func (*Authorizer) GetGRPCRegistrations added in v0.30.0

func (e *Authorizer) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations

func (*Authorizer) GetGatewayRegistration added in v0.30.0

func (e *Authorizer) GetGatewayRegistration(services ...string) builder.HandlerRegistrations

type ConsoleService added in v0.30.0

type ConsoleService struct{}

func (*ConsoleService) AvailableServices added in v0.30.0

func (e *ConsoleService) AvailableServices() []string

func (*ConsoleService) Cleanups added in v0.30.0

func (e *ConsoleService) Cleanups() []func()

func (*ConsoleService) GetGRPCRegistrations added in v0.30.0

func (e *ConsoleService) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations

func (*ConsoleService) GetGatewayRegistration added in v0.30.0

func (e *ConsoleService) GetGatewayRegistration(services ...string) builder.HandlerRegistrations

func (*ConsoleService) PrepareConfig added in v0.30.11

func (e *ConsoleService) PrepareConfig(cfg *config.Config) *handlers.TopazCfg

type EdgeDir added in v0.25.6

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

func (*EdgeDir) AvailableServices added in v0.25.6

func (e *EdgeDir) AvailableServices() []string

func (*EdgeDir) Cleanups added in v0.30.0

func (e *EdgeDir) Cleanups() []func()

func (*EdgeDir) GetGRPCRegistrations added in v0.25.6

func (e *EdgeDir) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations

func (*EdgeDir) GetGatewayRegistration added in v0.25.6

func (e *EdgeDir) GetGatewayRegistration(services ...string) builder.HandlerRegistrations

type ServiceTypes added in v0.25.6

type ServiceTypes interface {
	AvailableServices() []string
	GetGRPCRegistrations(services ...string) builder.GRPCRegistrations
	GetGatewayRegistration(services ...string) builder.HandlerRegistrations
	Cleanups() []func()
}

func NewAuthorizer added in v0.30.0

func NewAuthorizer(ctx context.Context, cfg *builder.API, commonConfig *config.Common, authorizerOpts []grpc.ServerOption, logger *zerolog.Logger) (ServiceTypes, error)

func NewConsole added in v0.30.0

func NewConsole() ServiceTypes

func NewEdgeDir added in v0.25.6

func NewEdgeDir(edge *directory.Directory) (ServiceTypes, error)

type Topaz added in v0.25.6

type Topaz struct {
	Context        context.Context
	Logger         *zerolog.Logger
	ServerOptions  []grpc.ServerOption
	Configuration  *config.Config
	ServiceBuilder *builder.ServiceFactory
	Manager        *builder.ServiceManager
	Services       map[string]ServiceTypes
}

Topaz is an authorizer service instance, responsible for managing the authorizer API, user directory instance and the OPA plugins.

func (*Topaz) AddGRPCServerOptions added in v0.30.0

func (e *Topaz) AddGRPCServerOptions(grpcOptions ...grpc.ServerOption)

func (*Topaz) ConfigServices added in v0.30.0

func (e *Topaz) ConfigServices() error

func (*Topaz) GetDecisionLogger added in v0.30.0

func (e *Topaz) GetDecisionLogger(cfg config.DecisionLogConfig) (decisionlog.DecisionLogger, error)

func (*Topaz) Start added in v0.30.0

func (e *Topaz) Start() error

Start starts all services required by the engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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