topaz

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildApp

func BuildApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, overrides config.Overrider) (*app.Authorizer, func(), error)

func BuildTestApp

func BuildTestApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, overrides config.Overrider) (*app.Authorizer, func(), error)

func DirectoryResolver

func DirectoryResolver(
	ctx context.Context,
	logger *zerolog.Logger,
	cfg *config.Config) resolvers.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 (r *RuntimeResolverSidecar) GetRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string) (*runtime.Runtime, error)

func (*RuntimeResolverSidecar) ListRuntimes

func (r *RuntimeResolverSidecar) ListRuntimes(ctx context.Context) (map[string]*runtime.Runtime, error)

func (*RuntimeResolverSidecar) PeekRuntime

func (r *RuntimeResolverSidecar) PeekRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string) (*runtime.Runtime, error)

func (*RuntimeResolverSidecar) ReloadRuntime

func (r *RuntimeResolverSidecar) ReloadRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string) error

func (*RuntimeResolverSidecar) RuntimeFromContext

func (r *RuntimeResolverSidecar) RuntimeFromContext(ctx context.Context, policyID, policyName, instanceLabel string) (*runtime.Runtime, error)

func (*RuntimeResolverSidecar) UnloadRuntime

func (r *RuntimeResolverSidecar) UnloadRuntime(ctx context.Context, tenantID, policyID, policyName, instanceLabel string)

Jump to

Keyboard shortcuts

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