Documentation
¶
Overview ¶
Package cache provides commands for managing the scafctl cache.
Index ¶
- 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 ClearOutput
- type Info
- type InfoOptions
- type InfoOutput
- type Kind
Constants ¶
This section is empty.
Variables ¶
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 ClearOutput ¶
type ClearOutput struct {
RemovedFiles int64 `json:"removedFiles" yaml:"removedFiles"`
RemovedBytes int64 `json:"removedBytes" yaml:"removedBytes"`
RemovedHuman string `json:"reclaimedHuman" yaml:"reclaimedHuman"`
Kind string `json:"kind,omitempty" yaml:"kind,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
}
ClearOutput represents the clear command output.
type Info ¶
type Info struct {
Name string `json:"name" yaml:"name"`
Path string `json:"path" yaml:"path"`
Size int64 `json:"size" yaml:"size"`
SizeHuman string `json:"sizeHuman" yaml:"sizeHuman"`
FileCount int64 `json:"fileCount" yaml:"fileCount"`
Description string `json:"description" yaml:"description"`
}
Info represents information about a cache directory.
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.