Documentation ¶
Index ¶
- func BuildApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, ...) (*app.Topaz, func(), error)
- func BuildTestApp(logOutput logger.Writer, errOutput logger.ErrWriter, configPath config.Path, ...) (*app.Topaz, func(), error)
- func DefaultGRPCOptions() []grpc.ServerOption
- func DefaultServices() map[string]app.ServiceTypes
- 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 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 string) (*runtime.Runtime, error)
- func (r *RuntimeResolver) ReloadRuntime(ctx context.Context, opaInstanceID, policyName string) error
- func (r *RuntimeResolver) RuntimeFromContext(ctx context.Context, policyName string) (*runtime.Runtime, error)
- func (r *RuntimeResolver) UnloadRuntime(ctx context.Context, opaInstanceID, policyName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTestApp ¶
func DefaultGRPCOptions ¶ added in v0.25.0
func DefaultGRPCOptions() []grpc.ServerOption
func DefaultServices ¶ added in v0.25.6
func DefaultServices() map[string]app.ServiceTypes
func NewRuntimeResolver ¶ added in v0.0.8
func NewRuntimeResolver( ctx context.Context, logger *zerolog.Logger, cfg *config.Config, ctrlf *controller.Factory, 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 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 string)
Click to show internal directories.
Click to hide internal directories.