Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDBPath ¶
func DefaultDBPath() string
func NewSessionID ¶
func NewSessionID() string
func ResolveMode ¶
func ResolveMode(value string) (guardhookruntime.Mode, error)
Types ¶
type Host ¶
type Host struct {
SessionID string
SessionDir string
SocketPath string
DBPath string
DashboardURL string
DashboardErr error
LocalJudgeStatus string
LocalJudgeEnabled bool
Mode guardhookruntime.Mode
// contains filtered or unexported fields
}
func (*Host) SetPayloadCaptureMode ¶ added in v0.15.0
func (h *Host) SetPayloadCaptureMode(mode payloadcapture.Mode)
SetPayloadCaptureMode forwards the org's payload-capture directive to the guard server's store. Safe on a nil host (no-op).
type Options ¶
type Options struct {
AgentName string
SessionID string
CWD string
DBPath string
SocketPath string
DashboardAddr string
StartDashboard bool
AllowNonLoopbackDashboard bool
JudgeConfigFromEnv bool
JudgeManagedDefault bool
JudgeDownloadProgress judge.DownloadProgressHandler
ProviderPolicies []server.ProviderPolicyBinding
EndpointID string
Mode guardhookruntime.Mode
Diagnostic diagnostic.Logger
Out io.Writer
SkipInitialSession bool
DisableAsyncIngest bool
}
Click to show internal directories.
Click to hide internal directories.