Documentation ¶
Index ¶
- func BuildApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, ...) (*app.Authorizer, func(), error)
- func BuildTestApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, ...) (*app.Authorizer, func(), error)
- func DirectoryResolver(ctx context.Context, logger *zerolog.Logger, cfg *config.Config) resolvers.DirectoryResolver
- func GRPCServerRegistrations(ctx context.Context, logger *zerolog.Logger, cfg *config.Config, ...) (server.GRPCRegistrations, error)
- func GatewayServerRegistrations() server.HandlerRegistrations
- func RuntimeResolver(ctx context.Context, logger *zerolog.Logger, cfg *config.Config, ...) (resolvers.RuntimeResolver, func(), error)
- type RuntimeResolverSidecar
- func (r *RuntimeResolverSidecar) GetRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string) (*runtime.Runtime, error)
- func (r *RuntimeResolverSidecar) ListRuntimes(ctx context.Context) (map[string]*runtime.Runtime, error)
- func (r *RuntimeResolverSidecar) PeekRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string) (*runtime.Runtime, error)
- func (r *RuntimeResolverSidecar) ReloadRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string) error
- func (r *RuntimeResolverSidecar) RuntimeFromContext(ctx context.Context, policyID, policyName, instanceLabel string) (*runtime.Runtime, error)
- func (r *RuntimeResolverSidecar) UnloadRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTestApp ¶
func DirectoryResolver ¶
func GRPCServerRegistrations ¶
func GRPCServerRegistrations( ctx context.Context, logger *zerolog.Logger, cfg *config.Config, runtimeResolver resolvers.RuntimeResolver, implAuthorizerServer *impl.AuthorizerServer, implInfo *impl.InfoServer, ) (server.GRPCRegistrations, error)
GRPCServerRegistrations is where we register implementations with the GRPC server
func GatewayServerRegistrations ¶
func GatewayServerRegistrations() server.HandlerRegistrations
GatewayServerRegistrations is where we register implementations with the Gateway server
func RuntimeResolver ¶
func RuntimeResolver( ctx context.Context, logger *zerolog.Logger, cfg *config.Config, decisionLogger decisionlog.DecisionLogger, directoryResolver resolvers.DirectoryResolver) (resolvers.RuntimeResolver, func(), error)
Types ¶
type RuntimeResolverSidecar ¶
type RuntimeResolverSidecar struct {
// contains filtered or unexported fields
}
func (*RuntimeResolverSidecar) GetRuntime ¶
func (*RuntimeResolverSidecar) ListRuntimes ¶
func (*RuntimeResolverSidecar) PeekRuntime ¶
func (*RuntimeResolverSidecar) ReloadRuntime ¶
func (r *RuntimeResolverSidecar) ReloadRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string) error
func (*RuntimeResolverSidecar) RuntimeFromContext ¶
func (*RuntimeResolverSidecar) UnloadRuntime ¶
func (r *RuntimeResolverSidecar) UnloadRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string)
Click to show internal directories.
Click to hide internal directories.