alpine

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPackageExpired = errors.New("package has expired")

Functions

This section is empty.

Types

type AlpineDownloader

type AlpineDownloader struct {
	Mirror   string
	Version  string
	Arch     string
	Repo     string
	CacheDir string
}

func (*AlpineDownloader) Download

func (d *AlpineDownloader) Download(name string) (*AlpinePackage, error)

func (*AlpineDownloader) SetForArchitecture

func (d *AlpineDownloader) SetForArchitecture(arch hv.CpuArchitecture, cacheDir string) error

type AlpinePackage

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

func (*AlpinePackage) Close

func (p *AlpinePackage) Close() error

func (*AlpinePackage) ListFiles

func (p *AlpinePackage) ListFiles() []string

func (*AlpinePackage) Open

func (p *AlpinePackage) Open(filename string) (File, error)

func (*AlpinePackage) Size

func (p *AlpinePackage) Size(filename string) (int64, error)

type File

type File interface {
	io.Reader
	io.ReaderAt
}

Jump to

Keyboard shortcuts

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