cache

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package cache provides commands for managing the scafctl cache.

Index

Constants

View Source
const (
	// KindAll clears all caches.
	KindAll cachelib.Kind = cachelib.KindAll
	// KindHTTP clears the HTTP response cache.
	KindHTTP cachelib.Kind = cachelib.KindHTTP
	// KindBuild clears the build cache (incremental build fingerprints).
	KindBuild cachelib.Kind = cachelib.KindBuild
	// KindArtifact clears the artifact cache (downloaded catalog artifacts with TTL).
	KindArtifact cachelib.Kind = cachelib.KindArtifact
)

Variables

View Source
var ValidKinds = cachelib.ValidKinds

ValidKinds lists all valid cache kinds.

Functions

func CommandCache

func CommandCache(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command

CommandCache creates the cache command group.

func CommandClear

func CommandClear(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command

CommandClear creates the clear command.

func CommandInfo

func CommandInfo(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command

CommandInfo creates the info command.

Types

type ClearOptions

type ClearOptions struct {
	CliParams *settings.Run
	IOStreams *terminal.IOStreams
	Kind      string
	Name      string
	Force     bool
	flags.KvxOutputFlags
}

ClearOptions holds options for the clear command.

type InfoOptions

type InfoOptions struct {
	CliParams *settings.Run
	IOStreams *terminal.IOStreams
	flags.KvxOutputFlags
}

InfoOptions holds options for the info command.

Jump to

Keyboard shortcuts

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