downloader

package
v0.4.51 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package downloader is a wrapper for the equivalent Conftest package, which is itself mostly a wrapper for hashicorp/go-getter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(ctx context.Context, destDir string, sourceUrl string, showMsg bool) (err error)

Download is used to download files from various sources.

Note that it handles just one url at a time even though the equivalent Conftest function can take a list of source urls.

func WithDownloadImpl

func WithDownloadImpl(ctx context.Context, d downloadImpl) context.Context

WithDownloadImpl replaces the downloadImpl implementation used

Types

This section is empty.

Jump to

Keyboard shortcuts

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