Documentation
¶
Overview ¶
Package acquisition wraps source, chart, and remote-resource acquisition with per-target locking and optional snapshot reuse.
Index ¶
- type Session
- func (session Session) ChartAcquirer(delegate chart.Acquirer) chart.Acquirer
- func (session Session) GitAcquirer(delegate source.GitAcquirer) source.GitAcquirer
- func (session Session) OCIArtifactAcquirer(delegate ociartifact.Acquirer) ociartifact.Acquirer
- func (session Session) RemoteAcquirer(delegate remote.Acquirer) remote.Acquirer
- type SnapshotCache
- type SnapshotSession
- type TargetLocks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
Locks *TargetLocks
SnapshotRoot string
SnapshotCacheReads bool
SnapshotCache *SnapshotCache
// PreserveGitDirInSnapshots keeps .git directories in Git source
// snapshots for plugin-enabled runs whose trusted plugins may inspect
// repository metadata. Built-in renderers use only worktree files.
PreserveGitDirInSnapshots bool
}
func (Session) ChartAcquirer ¶
func (Session) GitAcquirer ¶
func (session Session) GitAcquirer(delegate source.GitAcquirer) source.GitAcquirer
func (Session) OCIArtifactAcquirer ¶ added in v0.2.7
func (session Session) OCIArtifactAcquirer(delegate ociartifact.Acquirer) ociartifact.Acquirer
OCIArtifactAcquirer decorates delegate with the session memo required by the render-cache prepare phase: collectSourceIdentities re-invokes source resolution before every render, so without memoization every OCI source would resolve and extract twice with duplicated acquisition events. Extractions are copied into the session snapshot area and released with the session.
type SnapshotCache ¶
type SnapshotCache struct {
// contains filtered or unexported fields
}
func NewSnapshotCache ¶
func NewSnapshotCache() *SnapshotCache
type SnapshotSession ¶ added in v0.1.21
type SnapshotSession struct {
Root string
Cache *SnapshotCache
// contains filtered or unexported fields
}
SnapshotSession owns one snapshot root and cache shared by every provider in a single command invocation.
func NewSnapshotSession ¶ added in v0.1.21
func NewSnapshotSession(prefix string) (*SnapshotSession, error)
func (*SnapshotSession) Close ¶ added in v0.1.21
func (session *SnapshotSession) Close()
type TargetLocks ¶
type TargetLocks struct {
// contains filtered or unexported fields
}
func NewTargetLocks ¶
func NewTargetLocks() *TargetLocks
Click to show internal directories.
Click to hide internal directories.