testarchive

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallWalkFunc

func CallWalkFunc(this Item, f func(Item) error, items ...Item) error

func MergeSections

func MergeSections(items []Item) []byte

Types

type Gzip

type Gzip struct {
	Item Item
}

func (*Gzip) Content

func (gz *Gzip) Content() []byte

func (*Gzip) Path

func (gz *Gzip) Path() string

func (*Gzip) Section

func (gz *Gzip) Section() []byte

func (*Gzip) Walk

func (gz *Gzip) Walk(f func(Item) error) error

type Item

type Item interface {
	Path() string
	Walk(f func(Item) error) error
	Section() []byte
	Content() []byte
}

type Package

type Package struct {
	Name      string
	Version   string
	Arch      string
	Component string
	Data      []byte
}

func (*Package) Content

func (p *Package) Content() []byte

func (*Package) Path

func (p *Package) Path() string

func (*Package) Section

func (p *Package) Section() []byte

func (*Package) Walk

func (p *Package) Walk(f func(Item) error) error

type PackageIndex

type PackageIndex struct {
	Component string
	Arch      string
	Packages  []Item
}

func (*PackageIndex) Content

func (pi *PackageIndex) Content() []byte

func (*PackageIndex) Path

func (pi *PackageIndex) Path() string

func (*PackageIndex) Section

func (pi *PackageIndex) Section() []byte

func (*PackageIndex) Walk

func (pi *PackageIndex) Walk(f func(Item) error) error

type Release

type Release struct {
	Suite   string
	Version string
	Label   string
	Items   []Item
	PrivKey *packet.PrivateKey
}

func (*Release) Content

func (r *Release) Content() []byte

func (*Release) Path

func (r *Release) Path() string

func (*Release) Render

func (r *Release) Render(prefix string, content map[string][]byte) error

func (*Release) Section

func (r *Release) Section() []byte

func (*Release) Walk

func (r *Release) Walk(f func(Item) error) error

Jump to

Keyboard shortcuts

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