cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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