Documentation
¶
Overview ¶
Package resolver provides pack binary resolution and caching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackConfig ¶
PackConfig represents configuration for a remote pack to resolve.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver downloads, caches, and resolves pack binaries.
func NewResolver ¶
NewResolver creates a new Resolver caching packs under <dataDir>/packs/.
func NewResolverWithCacheDir ¶
NewResolverWithCacheDir creates a new Resolver with a custom cache directory.
func (*Resolver) GetManifest ¶
func (r *Resolver) GetManifest(ctx context.Context, packPath string) (*pack.ManifestResponse, error)
GetManifest calls the pack's manifest command and parses the response.
Click to show internal directories.
Click to hide internal directories.