Documentation
¶
Index ¶
- func Execute()
- type AnalyzeInput
- type AnalyzeOutput
- type CleanBatchInput
- type CleanBatchOutput
- type CleanPreviewInput
- type CleanPreviewOutput
- type DockerBackupInput
- type DockerCleanupInput
- type DockerCleanupOutput
- type DockerCompactInput
- type DoctorInput
- type EmptyInput
- type MonitorOutput
- type StatusOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnalyzeInput ¶
type AnalyzeInput struct {
Domain string `` /* 184-byte string literal not displayed */
}
type AnalyzeOutput ¶
type AnalyzeOutput struct {
Results []domainResult `json:"results"`
Summary string `json:"summary"`
}
type CleanBatchInput ¶
type CleanBatchInput struct {
Domains []string `` /* 164-byte string literal not displayed */
DryRun *bool `` /* 128-byte string literal not displayed */
ConfirmPlan string `` /* 136-byte string literal not displayed */
}
CleanBatchInput is the input of mac_clean_batch.
type CleanBatchOutput ¶
type CleanBatchOutput struct {
Previewed []domainItem `json:"previewed_items"`
Deleted []domainItem `json:"deleted_items,omitempty"`
Results []core.DeleteResult `json:"results,omitempty"`
FreedBytes int64 `json:"freed_bytes"`
FreedHuman string `json:"freed"`
SkippedCount int `json:"skipped_unsafe_count"`
DryRun bool `json:"dry_run"`
PlanDigest string `json:"plan_digest"`
AuditPath string `json:"audit_path,omitempty"`
AuditError string `json:"audit_error,omitempty"`
}
CleanBatchOutput is the preview (items + plan_digest) or the real result.
type CleanPreviewInput ¶
type CleanPreviewInput struct {
Domain string `json:"domain,omitempty" jsonschema:"optional domain to preview (empty = all domains)"`
}
type CleanPreviewOutput ¶
type CleanPreviewOutput struct {
SafeItems []domainItem `json:"safe_items"`
UnsafeItems []domainItem `json:"unsafe_items"`
TotalSafe string `json:"total_safe_size"`
TotalUnsafe string `json:"total_unsafe_size"`
SafeCount int `json:"safe_count"`
UnsafeCount int `json:"unsafe_count"`
Instructions string `json:"instructions"`
}
type DockerBackupInput ¶
type DockerBackupInput struct {
Container string `json:"container" jsonschema:"required,container name to backup (must be running)"`
}
type DockerCleanupInput ¶
type DockerCleanupInput struct {
Keep string `json:"keep" jsonschema:"required,comma-separated container names to preserve"`
DryRun *bool `` /* 128-byte string literal not displayed */
ConfirmPlan string `` /* 136-byte string literal not displayed */
}
DockerCleanupInput is the input of mac_docker_cleanup.
type DockerCleanupOutput ¶ added in v1.7.2
type DockerCleanupOutput struct {
DryRun bool `json:"dry_run"`
Plan docker.CleanupPlan `json:"plan"`
PlanDigest string `json:"plan_digest"`
Results []docker.ItemResult `json:"results,omitempty"`
Succeeded int `json:"succeeded,omitempty"`
Failed int `json:"failed,omitempty"`
AuditPath string `json:"audit_path,omitempty"`
AuditError string `json:"audit_error,omitempty"`
}
DockerCleanupOutput is the preview (plan + plan_digest) or the real result.
type DockerCompactInput ¶
type DockerCompactInput struct{}
type DoctorInput ¶ added in v1.4.0
type DoctorInput struct {
NoAI bool `json:"no_ai,omitempty" jsonschema:"optional,force the deterministic heuristic engine instead of Groq"`
}
type EmptyInput ¶
type EmptyInput struct{}
type MonitorOutput ¶
type StatusOutput ¶
type StatusOutput struct {
Domains []statusEntry `json:"domains"`
}