repos

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch

type Arch struct {
	Idx      string   `json:"idx"`
	Location string   `json:"location"`
	Kmp      []string `json:"kmp"`
}

type Distribution

type Distribution struct {
	Idx    string `json:"idx"`
	Drbd9  Repo   `json:"drbd-9"`
	Drbd90 Repo   `json:"drbd-9.0"`
}

type Repo

type Repo struct {
	Idx   string `json:"idx"`
	Amd64 Arch   `json:"amd64"`
}

type Repos

type Repos struct {
	About struct {
		Created time.Time `json:"created"`
	} `json:"about"`
	Content struct {
		Rhel7 Distribution `json:"rhel7"`
		Rhel8 Distribution `json:"rhel8"`
		Rhel9 Distribution `json:"rhel9"`
	} `json:"content"`
}

func Get

func Get(ctx context.Context, pkgUrl string) (Repos, error)

func (*Repos) GetKmps

func (rs *Repos) GetKmps(repo, dist, arch string) []string

Jump to

Keyboard shortcuts

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