Documentation
¶
Index ¶
- func SplitModuleAtRef(spec string) (module, gitRef string, hasRef bool)
- type MaterializeFunc
- type ModuleConstraints
- func ConstraintsFromDependency(dependency manifest.Dependency, keyRef string, hasKeyRef bool) (ModuleConstraints, error)
- func ConstraintsFromRef(value string, present bool) (ModuleConstraints, error)
- func ConstraintsFromTable(table manifest.DependencyTable, keyRef string, hasKeyRef bool) (ModuleConstraints, error)
- type ModuleID
- type ResolveOptions
- type Resolver
- type Tag
- type TagLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitModuleAtRef ¶
Types ¶
type MaterializeFunc ¶
type ModuleConstraints ¶
type ModuleConstraints struct {
Exact string
Branch string
Tag string
Semver []versionRequirement
Latest bool
}
func ConstraintsFromDependency ¶
func ConstraintsFromDependency(dependency manifest.Dependency, keyRef string, hasKeyRef bool) (ModuleConstraints, error)
func ConstraintsFromRef ¶
func ConstraintsFromRef(value string, present bool) (ModuleConstraints, error)
func ConstraintsFromTable ¶
func ConstraintsFromTable(table manifest.DependencyTable, keyRef string, hasKeyRef bool) (ModuleConstraints, error)
func (*ModuleConstraints) Merge ¶
func (constraints *ModuleConstraints) Merge(other ModuleConstraints) error
func (ModuleConstraints) PickGitRef ¶
type ModuleID ¶
type ModuleID string
ModuleID is a canonical Go-style GitHub module path without an @ref suffix.
func ParseModuleID ¶
func (ModuleID) GitHubSource ¶
func (module ModuleID) GitHubSource(gitRef string) githubsource.Source
func (ModuleID) OwnerRepoPath ¶
type ResolveOptions ¶
type ResolveOptions struct {
Previous *lockfile.PackLock
RefreshFloating bool
// RefreshModules refreshes only the named modules. It is used by
// `agentpack update SPEC`; exact commit pins remain immutable.
RefreshModules map[string]bool
// RecordContentHashes re-fetches packages whose lock entry has no content
// hash so one can be recorded from freshly downloaded bytes. Without it a
// package that is already cached stays unverified.
RecordContentHashes bool
// RepairCache replaces a cache entry that fails verification with a fresh
// fetch of the pinned commit instead of failing.
RepairCache bool
// Notify receives one-line reports about cache entries that were replaced.
Notify func(message string)
// Progress reports the package being resolved before potentially slow I/O.
Progress func(message string)
}
type Resolver ¶
type Resolver struct {
Client *http.Client
Tags TagLister
Materialize MaterializeFunc
Restore cache.RemoteRestoreFunc
}
Click to show internal directories.
Click to hide internal directories.