topaz

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 27 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.Topaz,
	func(),
	error,
)

func DefaultGRPCOptions added in v0.25.0

func DefaultGRPCOptions() []grpc.ServerOption

func DefaultServices added in v0.25.6

func DefaultServices() map[string]builder.ServiceTypes

func NewRuntimeResolver added in v0.0.8

func NewRuntimeResolver(
	ctx context.Context,
	logger *zerolog.Logger,
	cfg *config.Config,
	dsConn *grpc.ClientConn,
	decisionLogger decisionlog.DecisionLogger,
) (resolvers.RuntimeResolver, func(), error)

Types

type RuntimeResolver

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

func (*RuntimeResolver) GetRuntime added in v0.0.8

func (r *RuntimeResolver) GetRuntime(ctx context.Context, opaInstanceID, policyName string) (*runtime.Runtime, error)

func (*RuntimeResolver) RuntimeFromContext added in v0.0.8

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

Jump to

Keyboard shortcuts

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