cache

package
v1.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 11 Imported by: 0

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

func NewCacheCmd() *cobra.Command

NewCacheCmd creates the cache command group with all subcommands.

func NewCleanCmd

func NewCleanCmd() *cobra.Command

NewCleanCmd creates the cache clean command.

func NewInfoCmd

func NewInfoCmd() *cobra.Command

NewInfoCmd creates the cache info command.

func NewListCmd

func NewListCmd() *cobra.Command

NewListCmd creates the cache list command.

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.

Jump to

Keyboard shortcuts

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