package
0.16.4
Repository: https://github.com/hashicorp/go-slug.git
Documentation: pkg.go.dev

# Functions

ExtractArchive reads a source bundle archive from the given reader and extracts it into the given target directory, which must already exist and must be empty.
NewBuilder creates a new builder that will construct a source bundle in the given target directory, which must already exist and be empty before any work begins.
OpenDir opens a bundle rooted at the given base directory.
PackageMetaWithGitMetadata returns a [PackageMeta] object with a Git Commit ID and message tracked.

# Constants

No description provided by the author
No description provided by the author

# Structs

Builder deals with the process of gathering source code.
BuildTracer contains a set of callbacks that a caller can optionally provide to [Builder] methods via their [context.Context] arguments to be notified when various long-running events are starting and stopping, to allow both for debugging and for UI feedback about progress.
No description provided by the author
Dependencies is part of the callback API for [DependencyFinder].
No description provided by the author
No description provided by the author
FetchSourcePackageResponse is a structure which represents metadata about the fetch operation.
No description provided by the author
ModulePackageSourceAddrResponse is an opaque type which represents the result of the source address client operation.
No description provided by the author
ModulePackageVersionsResponse is an opaque type which represents the result of the package versions client operation.
PackageMeta is a collection of metadata about how the content of a particular remote package was derived.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

A DependencyFinder analyzes a file or directory inside a source package and reports any dependencies described in that location.
Diagnostic represents a single problem (error or warning) that has occurred during an operation.
A PackageFetcher knows how to fetch remote source packages into a local filesystem directory.
RegistryClient provides a minimal client for the Terraform module registry protocol, sufficient to find the available versions for a particular registry entry and then to find the real remote package for a particular version.

# Type aliases

Diagnostics is a collection of problems (errors and warnings) that occurred during an operation.
No description provided by the author