Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxBodyBytes = int64(1 << 20)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckpointLister ¶
type CheckpointLoader ¶
type CheckpointResumer ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(config HandlerConfig) *Handler
type HandlerConfig ¶
type HandlerConfig struct {
Checkpoint StepResumer
Steps StepsLister
History CheckpointLister
Checkpoints CheckpointLoader
Restore CheckpointResumer
Fork RunForker
MaxBodyBytes int64
// Policy authorizes requests, mirroring the async run handler: reads are
// authorized as run.read and writes (resume-from-step,
// resume-from-checkpoint, fork) as hitl.resume / run.submit. When Policy
// is nil, write endpoints default-deny with 403 auth_required unless
// InsecureAllowNoAuth explicitly opts out.
Policy security.Policy
// Audit receives policy-denied records when configured.
Audit audit.Sink
// InsecureAllowNoAuth disables the default-deny protection on write
// endpoints when no Policy is configured. Only set this behind an
// authenticating reverse proxy or in tests.
InsecureAllowNoAuth bool
}
type StepResumer ¶
Click to show internal directories.
Click to hide internal directories.