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 NewRuntimeResolver(ctx context.Context, logger *zerolog.Logger, cfg *config.Config, ...) (resolvers.RuntimeResolver, func(), error)
- type RuntimeResolver
- func (r *RuntimeResolver) GetRuntime(ctx context.Context, opaInstanceID, policyName, instanceLabel string) (*runtime.Runtime, error)
- func (r *RuntimeResolver) ListRuntimes(ctx context.Context) (map[string]*runtime.Runtime, error)
- func (r *RuntimeResolver) PeekRuntime(ctx context.Context, opaInstanceID, policyName, instanceLabel string) (*runtime.Runtime, error)
- func (r *RuntimeResolver) ReloadRuntime(ctx context.Context, opaInstanceID, policyName, instanceLabel string) error
- func (r *RuntimeResolver) RuntimeFromContext(ctx context.Context, policyName, instanceLabel string) (*runtime.Runtime, error)
- func (r *RuntimeResolver) UnloadRuntime(ctx context.Context, opaInstanceID, 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, implAuthorizerServer *impl.AuthorizerServer, ) (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 NewRuntimeResolver ¶ added in v0.0.8
func NewRuntimeResolver( ctx context.Context, logger *zerolog.Logger, cfg *config.Config, decisionLogger decisionlog.DecisionLogger, directoryResolver resolvers.DirectoryResolver) (resolvers.RuntimeResolver, func(), error)
Types ¶
type RuntimeResolver ¶
type RuntimeResolver struct {
// contains filtered or unexported fields
}
func (*RuntimeResolver) GetRuntime ¶ added in v0.0.8
func (*RuntimeResolver) ListRuntimes ¶ added in v0.0.8
func (*RuntimeResolver) PeekRuntime ¶ added in v0.0.8
func (*RuntimeResolver) ReloadRuntime ¶ added in v0.0.8
func (r *RuntimeResolver) ReloadRuntime(ctx context.Context, opaInstanceID, policyName, instanceLabel string) error
func (*RuntimeResolver) RuntimeFromContext ¶ added in v0.0.8
func (*RuntimeResolver) UnloadRuntime ¶ added in v0.0.8
func (r *RuntimeResolver) UnloadRuntime(ctx context.Context, opaInstanceID, policyName, instanceLabel string)
Click to show internal directories.
Click to hide internal directories.