cache

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cache provides commands for managing the scafctl cache.

Index

Constants

This section is empty.

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 ClearOutput deprecated

type ClearOutput = cachelib.ClearOutput

ClearOutput is an alias for cachelib.ClearOutput.

Deprecated: Use cache.ClearOutput from pkg/cache instead.

type Info deprecated

type Info = cachelib.Info

Info is an alias for cache.Info.

Deprecated: Use cache.Info from pkg/cache instead.

type InfoOptions

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

InfoOptions holds options for the info command.

type InfoOutput deprecated

type InfoOutput = cachelib.InfoOutput

InfoOutput is an alias for cache.InfoOutput.

Deprecated: Use cache.InfoOutput from pkg/cache instead.

type Kind deprecated

type Kind = cachelib.Kind

Kind is an alias for cachelib.Kind.

Deprecated: Use cache.Kind from pkg/cache instead.

const (
	// KindAll clears all caches.
	KindAll Kind = cachelib.KindAll
	// KindHTTP clears the HTTP response cache.
	KindHTTP Kind = cachelib.KindHTTP
	// KindBuild clears the build cache (incremental build fingerprints).
	KindBuild Kind = cachelib.KindBuild
)

Jump to

Keyboard shortcuts

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