Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Addr string
Logger *slog.Logger
Registry cluster.Registry
// Auth bundles the API middleware + optional /auth/* handlers
// (login/callback/logout for OIDC). Required — server.New panics on nil.
Auth *auth.AuthSet
// Policy is consulted by handlers to filter results per identity.
// The zero value denies everything; main.go uses
// auth.DefaultAllowAllPolicy when --rbac-file is not provided.
Policy auth.Policy
// Audit receives one Record per privileged action. nil → no-op
// (but main.go always provides one writing to stdout).
Audit *audit.Logger
// Hub is the watch event bus consumed by /api/v1/stream. nil
// is allowed (the stream still emits heartbeats).
Hub *watch.Hub
}
Click to show internal directories.
Click to hide internal directories.