distribution

package
v0.30.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBaseURL = "git::%s/fury-distribution?ref=%s&depth=1"

Variables

View Source
var (
	ErrCannotDownloadDistribution = errors.New("cannot download distribution")
	ErrChangingFilePermissions    = errors.New("error changing file permissions")
	ErrCreatingTempDir            = errors.New("error creating temp dir")
	ErrDownloadingFolder          = errors.New("error downloading folder")
	ErrMergeCompleteConfig        = errors.New("error merging complete config")
	ErrMergeDistroConfig          = errors.New("error merging distribution config")
	ErrRenamingFile               = errors.New("error renaming file")
	ErrResolvingAbsPath           = errors.New("error resolving absolute path")
	ErrValidateConfig             = errors.New("error validating config")
	ErrWriteFile                  = errors.New("error writing file")
	ErrYamlMarshalFile            = errors.New("error marshaling yaml file")
	ErrYamlUnmarshalFile          = errors.New("error unmarshaling yaml file")
	ErrUnsupportedVersion         = errors.New("unsupported KFD version")
)

Functions

This section is empty.

Types

type DownloadResult

type DownloadResult struct {
	RepoPath       string
	MinimalConf    config.Furyctl
	DistroManifest config.KFD
}

type Downloader

type Downloader struct {
	// contains filtered or unexported fields
}

func NewCachingDownloader

func NewCachingDownloader(
	client netx.Client,
	outDir string,
	gitProtocol git.Protocol,
	customDistroPatchesPath string,
) *Downloader

func NewDownloader

func NewDownloader(client netx.Client, gitProtocol git.Protocol, customDistroPatchesPath string) *Downloader

func (*Downloader) DoDownload

func (d *Downloader) DoDownload(
	distroLocation string,
	minimalConf config.Furyctl,
) (DownloadResult, error)

func (*Downloader) Download

func (d *Downloader) Download(
	distroLocation string,
	furyctlConfPath string,
) (DownloadResult, error)

Jump to

Keyboard shortcuts

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