Documentation
¶
Index ¶
- func KeepAliveDialOption() []grpc.DialOption
- func SetServiceStatus(log *zerolog.Logger, service string, ...)
- type Authorizer
- func (e *Authorizer) AvailableServices() []string
- func (e *Authorizer) Cleanups() []func()
- func (e *Authorizer) Close()
- func (e *Authorizer) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations
- func (e *Authorizer) GetGatewayRegistration(port string, services ...string) builder.HandlerRegistrations
- type ConsoleService
- func (e *ConsoleService) AvailableServices() []string
- func (e *ConsoleService) Close()
- func (e *ConsoleService) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations
- func (e *ConsoleService) GetGatewayRegistration(port string, services ...string) builder.HandlerRegistrations
- func (e *ConsoleService) PrepareConfig(cfg *config.Config) *handlers.TopazCfg
- type EdgeDir
- type Topaz
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeepAliveDialOption ¶
func KeepAliveDialOption() []grpc.DialOption
func SetServiceStatus ¶
func SetServiceStatus(log *zerolog.Logger, service string, servingStatus grpc_health_v1.HealthCheckResponse_ServingStatus)
Types ¶
type Authorizer ¶
type Authorizer struct {
Resolver *resolvers.Resolvers
AuthorizerServer *impl.AuthorizerServer
// contains filtered or unexported fields
}
func NewAuthorizer ¶
func (*Authorizer) AvailableServices ¶
func (e *Authorizer) AvailableServices() []string
func (*Authorizer) Cleanups ¶
func (e *Authorizer) Cleanups() []func()
func (*Authorizer) Close ¶
func (e *Authorizer) Close()
func (*Authorizer) GetGRPCRegistrations ¶
func (e *Authorizer) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations
func (*Authorizer) GetGatewayRegistration ¶
func (e *Authorizer) GetGatewayRegistration(port string, services ...string) builder.HandlerRegistrations
type ConsoleService ¶
type ConsoleService struct{}
func NewConsole ¶
func NewConsole() *ConsoleService
func (*ConsoleService) AvailableServices ¶
func (e *ConsoleService) AvailableServices() []string
func (*ConsoleService) Close ¶
func (e *ConsoleService) Close()
func (*ConsoleService) GetGRPCRegistrations ¶
func (e *ConsoleService) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations
func (*ConsoleService) GetGatewayRegistration ¶
func (e *ConsoleService) GetGatewayRegistration(port string, services ...string) builder.HandlerRegistrations
func (*ConsoleService) PrepareConfig ¶
func (e *ConsoleService) PrepareConfig(cfg *config.Config) *handlers.TopazCfg
type EdgeDir ¶
type EdgeDir struct {
// contains filtered or unexported fields
}
func (*EdgeDir) AvailableServices ¶
func (*EdgeDir) GetGRPCRegistrations ¶
func (e *EdgeDir) GetGRPCRegistrations(services ...string) builder.GRPCRegistrations
func (*EdgeDir) GetGatewayRegistration ¶
func (e *EdgeDir) GetGatewayRegistration(port string, services ...string) builder.HandlerRegistrations
type Topaz ¶
type Topaz struct {
Context context.Context
Logger *zerolog.Logger
ServerOptions []grpc.ServerOption
Configuration *config.Config
ServiceBuilder *builder.ServiceFactory
Manager *builder.ServiceManager
Services map[string]builder.ServiceTypes
}
Topaz is an authorizer service instance, responsible for managing the authorizer API, user directory instance and the OPA plugins.
func (*Topaz) AddGRPCServerOptions ¶
func (e *Topaz) AddGRPCServerOptions(grpcOptions ...grpc.ServerOption)
func (*Topaz) ConfigServices ¶
func (*Topaz) GetDecisionLogger ¶
func (e *Topaz) GetDecisionLogger(cfg config.DecisionLogConfig) (decisionlog.DecisionLogger, error)
Click to show internal directories.
Click to hide internal directories.