Documentation
¶
Index ¶
- func CopyDir(src, dst string) error
- func CopyDirFiltered(src, dst string, skip func(relPath string) bool) error
- type FileEntry
- type ForkResult
- type IOProfile
- type Manifest
- type Service
- func (s Service) CreateDirectorySnapshot(sessionID, workspacePath, name string) (string, Manifest, int64, error)
- func (s Service) CreateStack(taskPath string) (StackResult, error)
- func (s Service) CreateStackFromTemplate(templateNameOrID string) (StackResult, error)
- func (s Service) Fork(snapshotNameOrID string, count int) ([]ForkResult, error)
- func (s Service) InspectSnapshot(snapshotNameOrID string) (SnapshotInfo, []SnapshotInfo, error)
- func (s Service) ListSnapshots() ([]SnapshotInfo, error)
- func (s Service) Plan(snapshotNameOrID string, rejectTainted bool) (SnapshotPlan, error)
- func (s Service) PlanWithPolicy(snapshotNameOrID, policy string, rejectTainted bool) (SnapshotPlan, error)
- type SnapshotInfo
- type SnapshotPlan
- type StackResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDirFiltered ¶ added in v0.2.0
CopyDirFiltered copies src into dst, skipping any relative path for which skip returns true (skip may be nil). It always skips the dst subtree itself, so it is safe when dst lives inside src (e.g. recording a workdir whose .agentprov data dir holds the snapshot store). Without that guard the walk would recurse into the snapshot it is writing and fail with "file name too long".
Types ¶
type FileEntry ¶
func BuildFileManifest ¶
type ForkResult ¶
type IOProfile ¶
type IOProfile struct {
HotMetadataPaths []string
MetadataOpsEstimate int64
CopyUpRisk string
UpperdirDevice string
}
func AnalyzeIOProfile ¶
type Manifest ¶
func BuildManifest ¶
type Service ¶
func (Service) CreateDirectorySnapshot ¶
func (Service) CreateStack ¶
func (s Service) CreateStack(taskPath string) (StackResult, error)
func (Service) CreateStackFromTemplate ¶
func (s Service) CreateStackFromTemplate(templateNameOrID string) (StackResult, error)
func (Service) Fork ¶
func (s Service) Fork(snapshotNameOrID string, count int) ([]ForkResult, error)
func (Service) InspectSnapshot ¶
func (s Service) InspectSnapshot(snapshotNameOrID string) (SnapshotInfo, []SnapshotInfo, error)
func (Service) ListSnapshots ¶
func (s Service) ListSnapshots() ([]SnapshotInfo, error)
func (Service) Plan ¶
func (s Service) Plan(snapshotNameOrID string, rejectTainted bool) (SnapshotPlan, error)
func (Service) PlanWithPolicy ¶
func (s Service) PlanWithPolicy(snapshotNameOrID, policy string, rejectTainted bool) (SnapshotPlan, error)
type SnapshotInfo ¶
type SnapshotInfo struct {
ID string
Name string
SessionID string
ParentID string
Kind string
Source string
Path string
ManifestHash string
FileCount int64
Bytes int64
SnapshotCreateMS int64
Status string
SemanticType string
PhysicalType string
LogicalBytes int64
PhysicalBytes int64
DirtyBytesEstimate int64
InodeEstimate int64
StorageAmpRatio float64
HotMetadataPaths string
MetadataOpsEstimate int64
CopyUpRisk string
UpperdirDevice string
CreatedAt string
}
type SnapshotPlan ¶
type SnapshotPlan struct {
SnapshotID string
Plan string
Reason string
Score float64
SelectedPolicy string
CandidateCount int
SemanticType string
PhysicalType string
OverlaySkipReason string
DeltaFilesAdded int64
DeltaFilesModified int64
DeltaFilesDeleted int64
CopyUpRisk string
MetadataOpsEstimate int64
IOFanoutBudget int64
UpperdirShard string
UpperdirDevice string
HotMetadataPaths string
}
type StackResult ¶
type StackResult struct {
TemplateSnapshotID string
ReadySnapshotID string
Attempt ForkResult
}
Click to show internal directories.
Click to hide internal directories.