legacy

package
v0.29.4-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDownloadRepo        = errors.New("error downloading repository")
	ErrSomeDownloadsFailed = errors.New("some downloads have failed. Please check the logs")
	ErrRemoveDir           = errors.New("error removing directory")
	ErrRenameDir           = errors.New("error renaming directory")
	ErrGettingWD           = errors.New("error getting working directory")
	ErrGETRequest          = errors.New("error performing GET request")
)
View Source
var ErrFuryFileUnmarshal = errors.New("error unmarshaling furyfile")
View Source
var ErrNoLabelFound = errors.New("no label found")

Functions

This section is empty.

Types

type DirSpec

type DirSpec struct {
	VendorFolder string
	Kind         string
	Name         string
	Registry     bool
	Provider     ProviderOptSpec
}

type Downloader

type Downloader struct {
	HTTPS bool
}

func NewDownloader

func NewDownloader(gitProtocol string) Downloader

func (*Downloader) Download

func (d *Downloader) Download(packages []Package) error

type FuryFile

type FuryFile struct {
	VendorFolderName string          `yaml:"vendorFolderName"`
	Versions         VersionPattern  `yaml:"versions"`
	Roles            []Package       `yaml:"roles"`
	Modules          []Package       `yaml:"modules"`
	Bases            []Package       `yaml:"bases"`
	Provider         ProviderPattern `yaml:"provider"`
}

func NewFuryFile

func NewFuryFile(path string) (*FuryFile, error)

func (*FuryFile) BuildPackages

func (f *FuryFile) BuildPackages(prefix string) ([]Package, error)

type Package

type Package struct {
	Name         string          `yaml:"name"`
	Version      string          `yaml:"version"`
	URL          string          `yaml:"url"`
	Dir          string          `yaml:"dir"`
	Kind         string          `yaml:"kind"`
	ProviderOpt  ProviderOptSpec `yaml:"provider"`
	ProviderKind ProviderKind    `yaml:"providerKind"`
	Registry     bool            `yaml:"registry"`
}

type PackageURL

type PackageURL struct {
	Prefix        string
	Blocks        []string
	Kind          string
	Version       string
	Registry      bool
	CloudProvider ProviderOptSpec
	KindSpec      ProviderKind
}

type ProviderKind

type ProviderKind map[string][]RegistrySpec

type ProviderOptSpec

type ProviderOptSpec struct {
	Name  string `yaml:"name"`
	Label string `yaml:"label"`
}

type ProviderPattern

type ProviderPattern map[string]ProviderKind

type RegistrySpec

type RegistrySpec struct {
	BaseURI string `yaml:"url"`
	Label   string `yaml:"label"`
}

type VersionPattern

type VersionPattern map[string]string

Jump to

Keyboard shortcuts

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