distro

package
v0.0.0-...-8bb615b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRepo = "main"

Variables

This section is empty.

Functions

func HasRepo

func HasRepo(d Distro, name string) bool

Types

type Alpine

type Alpine struct{}

func (Alpine) FetchMirrors

func (d Alpine) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)

func (Alpine) GetName

func (d Alpine) GetName() string

func (Alpine) GetRepos

func (d Alpine) GetRepos() []string

type Arch

type Arch struct{}

func (Arch) FetchMirrors

func (d Arch) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)

func (Arch) GetName

func (d Arch) GetName() string

func (Arch) GetRepos

func (d Arch) GetRepos() []string

type Debian

type Debian struct{}

func (Debian) FetchMirrors

func (d Debian) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)

func (Debian) GetName

func (d Debian) GetName() string

func (Debian) GetRepos

func (d Debian) GetRepos() []string

type Distro

type Distro interface {
	GetName() string
	GetRepos() []string
	FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)
}

func GetDistro

func GetDistro(name string) Distro

type Fedora

type Fedora struct{}

func (Fedora) FetchMirrors

func (d Fedora) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)

func (Fedora) GetName

func (d Fedora) GetName() string

func (Fedora) GetRepos

func (d Fedora) GetRepos() []string

type Mint

type Mint struct{}

func (Mint) FetchMirrors

func (d Mint) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)

func (Mint) GetName

func (d Mint) GetName() string

func (Mint) GetRepos

func (d Mint) GetRepos() []string

type RepoMirror

type RepoMirror struct {
	Distro string
	Repo   string
	Url    string
}

type Slackware

type Slackware struct{}

func (Slackware) FetchMirrors

func (d Slackware) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)

func (Slackware) GetName

func (d Slackware) GetName() string

func (Slackware) GetRepos

func (d Slackware) GetRepos() []string

type Ubuntu

type Ubuntu struct{}

func (Ubuntu) FetchMirrors

func (d Ubuntu) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done *sync.WaitGroup)

func (Ubuntu) GetName

func (d Ubuntu) GetName() string

func (Ubuntu) GetRepos

func (d Ubuntu) GetRepos() []string

Jump to

Keyboard shortcuts

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