archlinux

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

View Source
const (
	RepoCore                  = "core"
	RepoCoreDebug             = "core-debug"
	RepoCommunity             = "community"
	RepoCommunityTesting      = "community-testing"
	RepoCommunityStaging      = "community-staging"
	RepoCommunityDebug        = "community-debug"
	RepoCommunityTestingDebug = "community-testing-debug"
	RepoCommunityStagingDebug = "community-staging-debug"
	RepoExtra                 = "extra"
	RepoExtraDebug            = "extra-debug"
	RepoStaging               = "staging"
	RepoStagingDebug          = "staging-debug"
	RepoTesting               = "testing"
	RepoTestingDebug          = "testing-debug"
)

Variables

View Source
var (
	DefaultConfig = distro.Config{
		Mirrors: []packages.Mirror{
			{Name: "arm64", URL: "http://de.mirror.archlinuxarm.org/aarch64/"},
			{Name: "arm64", URL: "http://de.mirror.archlinuxarm.org/aarch64/"},
			{Name: "arm32", URL: "http://de.mirror.archlinuxarm.org/armv7h/"},
			{Name: "archmirror", URL: "https://archmirror.it/repos/"},
			{Name: "kernel.org", URL: "https://mirrors.edge.kernel.org/archlinux/"},
		},
		Repositories: []packages.Repository{
			{Name: "core", URI: packages.URITemplate("/core/os/{{ .archs }}/")},
			{Name: "aur", URI: packages.URITemplate("/aur/os/{{ .archs }}/")},
			{Name: "community", URI: packages.URITemplate("/community/os/{{ .archs }}/")},
			{Name: "extra", URI: packages.URITemplate("/extra/os/{{ .archs }}/")},

			{Name: "core-arm", URI: packages.URITemplate("/core-arm/")},
			{Name: "aur-arm", URI: packages.URITemplate("/aur-arm/")},
			{Name: "community-arm", URI: packages.URITemplate("/community-arm/")},
			{Name: "extra-arm", URI: packages.URITemplate("/extra-arm/")},
		},
		Archs: []packages.Architecture{
			"x86_64",
			"aarch64",
			"armv7h",
		},

		Versions: nil,
	}
)

Functions

This section is empty.

Types

type ArchLinux

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

func (*ArchLinux) Configure

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

func (*ArchLinux) SearchPackages

func (a *ArchLinux) 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