v2022

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = distro.Config{
	Mirrors: []packages.Mirror{
		{
			Name: "AL2022",
			URL:  "https://al2022-repos-us-east-1-9761ab97.s3.dualstack.us-east-1.amazonaws.com/core/mirrors/",
		},
	},
	Repositories: []packages.Repository{
		{Name: "", URI: "2022.0.20220202"},
		{Name: "", URI: "2022.0.20220315"},
		{Name: "", URI: "2022.0.20221012"},
	},
	Archs: []packages.Architecture{
		"aarch64",
		"x86_64",
		"ppc64le",
	},
	Versions: []distro.Version{""},
}

DefaultConfig is the default configuration for scrape Amazon Linux (RPM) packages. As of now URI templating depends on distro's viper.AllSettings() data.

Functions

This section is empty.

Types

type AmazonLinux

type AmazonLinux struct {
	common.AmazonLinux
}

func (*AmazonLinux) Configure

func (a *AmazonLinux) Configure(config distro.Config) error

func (*AmazonLinux) SearchPackages

func (a *AmazonLinux) SearchPackages(options packages.SearchOptions) ([]packages.Package, error)

GetPackages scrapes each mirror, for each distro version, for each repository, for each architecture, and returns slice of Package and optionally an error.

Jump to

Keyboard shortcuts

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