controlplane

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package controlplane assembles Brokerkit's shared broker control plane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Broker              string
	Store               *grants.Store
	ClientSecrets       map[string]string
	OperatorSecrets     map[string]string
	Presenter           operatorinbox.Presenter
	Audit               operatorapi.AuditRecorder
	ActivationValidator decision.ActivationValidator
	NewCorrelationID    func() (string, error)
}

Options provides broker-owned policy vocabulary and presentation to the shared runtime.

type Runtime

type Runtime struct {
	Store           *grants.Store
	Clients         *auth.Authenticator
	OperatorHandler http.Handler
	Decider         approval.Decider
	Decisions       *decision.Service
}

Runtime contains the shared state and protected HTTP surfaces for one broker.

func New

func New(options Options) (*Runtime, error)

New validates and assembles one broker control plane.

func (*Runtime) HandleDecision

func (r *Runtime) HandleDecision(ctx context.Context, decision notify.Decision) notify.DecisionResult

HandleDecision applies one approval-channel callback through the configured decider.

Jump to

Keyboard shortcuts

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