Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶ added in v0.59.1
func Fetch(ctx context.Context, opts *FetchOptions) error
Fetch downloads the artifact named by opts.URI into the current working directory, optionally verifies its checksum, and optionally extracts it. The URI is parsed and used as data (never passed to a shell).
func FetchSourceFromMelange ¶
func FetchSourceFromMelange(ctx context.Context, filePath, destDir string) (*config.Configuration, error)
FetchSourceFromMelange tries its best to fetch the source from a melange yaml or an apk package.
func GitCheckout ¶ added in v0.46.1
func GitCheckout(ctx context.Context, opts *GitCheckoutOptions) error
Types ¶
type FetchOptions ¶ added in v0.59.1
type FetchOptions struct {
URI string
Directory string // where to extract; relative to the current working directory
StripComponents int
Extract bool
ExpectedSHA256 string
ExpectedSHA512 string
Delete bool
}
FetchOptions describes a native equivalent of the built-in `fetch` pipeline. Values come from the melange config and are used only as data: a URL, a filename, and argv elements.
Click to show internal directories.
Click to hide internal directories.