apk

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package apk provides Alpine package index search functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name        string
	Description string
}

Package represents an Alpine package entry.

func FetchAndSearch

func FetchAndSearch(query string) ([]Package, error)

FetchAndSearch handles download/cache/parse/search in one call. It loads the index if needed and searches for the query.

func LoadIndex

func LoadIndex() ([]Package, error)

LoadIndex downloads (if needed) and parses the full Alpine package index.

func Search(index []Package, query string, maxResults int) []Package

Search filters packages by case-insensitive substring match on name and description. Returns at most maxResults results.

Jump to

Keyboard shortcuts

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