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 (*Runtime) HandleDecision ¶
func (r *Runtime) HandleDecision(ctx context.Context, decision notify.Decision) notify.DecisionResult
HandleDecision applies one approval-channel callback through the configured decider.
Click to show internal directories.
Click to hide internal directories.