Documentation
¶
Overview ¶
Package imagecache manages local image records: reusable rootfs baselines addressable by name and digest, backing "microagent images".
Index ¶
- func CanonicalRootfsStorePath(stateDir, path string) (string, bool)
- func IndexPath(stateDir string) string
- func MatchesRef(image Record, ref string) bool
- func PathInRootfsStore(stateDir, path string) bool
- func Provenance(record Record, outputPath string) rootfs.Provenance
- func RecordProvenance(stateDir string, provenance rootfs.Provenance) error
- func RootfsPath(stateDir, imageRef string, platform rootfs.Platform) string
- func Sort(images []Record)
- func Upsert(stateDir string, record Record) error
- func WriteIndex(stateDir string, idx Index) error
- type Index
- type PruneResult
- type PullOptions
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchesRef ¶
func PathInRootfsStore ¶
func Provenance ¶
func Provenance(record Record, outputPath string) rootfs.Provenance
func RecordProvenance ¶
func RecordProvenance(stateDir string, provenance rootfs.Provenance) error
func WriteIndex ¶
Types ¶
type PruneResult ¶
type PullOptions ¶
type Record ¶
type Record struct {
ImageRef string `json:"image_ref"`
ResolvedRef string `json:"resolved_ref,omitempty"`
Digest string `json:"digest,omitempty"`
Platform rootfs.Platform `json:"platform"`
OutputPath string `json:"output_path,omitempty"`
SizeBytes int64 `json:"size_bytes,omitempty"`
LastUsedAt string `json:"last_used_at"`
}
func FromProvenance ¶
func FromProvenance(provenance rootfs.Provenance) Record
Click to show internal directories.
Click to hide internal directories.