config

package
v0.0.0-...-9fd9248 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveSnapshots

func SaveSnapshots(path string, snapshots *Snapshots) error

Types

type Arch

type Arch int64
const (
	AMD64 Arch = iota
	ARM64
	ARM
	PPC64LE
	S390X
)

func (Arch) DebianName

func (a Arch) DebianName() string

DebianName returns the debian specific name, which are slightly different than normal

func (Arch) String

func (a Arch) String() string

func (*Arch) UnmarshalYAML

func (a *Arch) UnmarshalYAML(unmarshal func(interface{}) error) error

type Distro

type Distro int64
const (
	DEBIAN10 Distro = iota
	DEBIAN11
	DEBIAN12
)

func (Distro) Codename

func (d Distro) Codename() string

func (Distro) String

func (d Distro) String() string

func (*Distro) UnmarshalYAML

func (d *Distro) UnmarshalYAML(unmarshal func(interface{}) error) error

func (Distro) Version

func (d Distro) Version() int

type Packages

type Packages map[Arch]map[Distro]map[string]bool

func LoadPackages

func LoadPackages(path string) (Packages, error)

func (Packages) Get

func (ps Packages) Get(arch Arch, distro Distro) (map[string]bool, error)

type PackagesYaml

type PackagesYaml struct {
	Packages []string
	Archs    []Arch
	Distros  []Distro
}

type Snapshots

type Snapshots struct {
	Debian   string
	Security string
}

func LoadSnapshots

func LoadSnapshots(path string) (*Snapshots, error)

func (*Snapshots) Equivalent

func (s1 *Snapshots) Equivalent(s2 *Snapshots) bool

Jump to

Keyboard shortcuts

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