Documentation
¶
Overview ¶
Package cache provides commands for managing the scafctl cache.
Index ¶
- Constants
- Variables
- func CommandCache(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
- func CommandClear(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command
- func CommandInfo(cliParams *settings.Run, ioStreams *terminal.IOStreams, _ string) *cobra.Command
- type ClearOptions
- type InfoOptions
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 ¶
CommandClear creates the clear 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.
Click to show internal directories.
Click to hide internal directories.