cache

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(_ context.Context, opts ListOptions) error

List prints cached downloads, optionally filtered by license.

func Path

func Path(_ context.Context) error

Path prints the cache directory without decoration for shell substitution.

func Purge

func Purge(_ context.Context, opts PurgeOptions) error

Purge removes cached downloads for a license or, when requested, all licenses.

Types

type ListOptions

type ListOptions struct {
	JSON       bool
	LicenseKey string
}

ListOptions selects JSON output and an optional license filter.

type PurgeOptions

type PurgeOptions struct {
	LicenseKey string
	All        bool
}

PurgeOptions selects a license or all cached downloads for removal.

Jump to

Keyboard shortcuts

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