Documentation
¶
Overview ¶
Package cache provides binary cache management commands for devnet-builder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheCmd ¶
NewCacheCmd creates the cache command group with all subcommands.
Types ¶
type CacheEntryJSON ¶
type CacheEntryJSON struct {
CommitHash string `json:"commit_hash"`
Ref string `json:"ref"`
BuildTime string `json:"build_time"`
Size int64 `json:"size"`
SizeHuman string `json:"size_human"`
Network string `json:"network"`
Path string `json:"path"`
}
CacheEntryJSON represents a cache entry in JSON format.
type CacheInfoJSON ¶
type CacheInfoJSON struct {
CacheDir string `json:"cache_dir"`
SymlinkPath string `json:"symlink_path"`
SymlinkExists bool `json:"symlink_exists"`
SymlinkTarget string `json:"symlink_target,omitempty"`
ActiveCommit string `json:"active_commit,omitempty"`
TotalEntries int `json:"total_entries"`
TotalSize int64 `json:"total_size"`
TotalSizeHuman string `json:"total_size_human"`
}
CacheInfoJSON represents cache info in JSON format.
type CacheListJSON ¶
type CacheListJSON struct {
TotalEntries int `json:"total_entries"`
TotalSize int64 `json:"total_size"`
TotalHuman string `json:"total_size_human"`
Entries []CacheEntryJSON `json:"entries"`
}
CacheListJSON represents the cache list in JSON format.
Click to show internal directories.
Click to hide internal directories.