Documentation
¶
Overview ¶
Package acquisition wraps source, chart, and remote-resource acquisition with per-target locking and optional snapshot reuse.
Index ¶
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
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.