acquisition

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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 Session) ChartAcquirer(delegate chart.Acquirer) chart.Acquirer

func (Session) GitAcquirer

func (session Session) GitAcquirer(delegate source.GitAcquirer) source.GitAcquirer

func (Session) RemoteAcquirer

func (session Session) RemoteAcquirer(delegate remote.Acquirer) remote.Acquirer

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL