cache

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndicesSync

func IndicesSync(ctx context.Context, indices []string, force bool, disableUI bool) error

IndicesSync runs the sync-download-extract-catalog pipeline for the requested indices. Pass disableUI=true to suppress the taskin progress bar — required whenever stdout must stay parseable (--json mode) or when there is no TTY to render into.

func PurgeIndices added in v0.7.3

func PurgeIndices() error

Types

type IndexInfo

type IndexInfo struct {
	Name        string    `yaml:"name"`
	LastSync    time.Time `yaml:"last_sync"`
	Size        uint64    `yaml:"size"`         // Size in bytes
	LastUpdated string    `yaml:"last_updated"` // From the server
}

type InfoFile

type InfoFile struct {
	Indices []IndexInfo `yaml:"indices"`
}

func Indices

func Indices() (InfoFile, error)

func (*InfoFile) GetIndex

func (i *InfoFile) GetIndex(name string) *IndexInfo

func (*InfoFile) IndexExists

func (i *InfoFile) IndexExists(name string) bool

Jump to

Keyboard shortcuts

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