cache

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 27 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cache implements the `atmos ci cache` subcommand group (restore/save/list/delete) for the CI build cache. The commands are attached to the parent `ci` command via Command(); business logic lives in pkg/ci/cache so the CLI and the automatic lifecycle hooks share one implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRestore

func AutoRestore(cmd *cobra.Command, atmosConfig *schema.AtmosConfiguration)

AutoRestore performs automatic restore-on-start when the CI cache is enabled with auto restore, a cache-capable CI provider is detected, and the current command is eligible. It also registers an automatic save-on-exit when auto save is configured. All paths are no-ops (with a debug log) outside a supported CI provider, so this is safe to call for every invocation.

func Command

func Command() *cobra.Command

Command returns the `cache` command group with its subcommands attached. The parent `ci` command calls this to mount the group.

func RunPendingSave

func RunPendingSave()

RunPendingSave performs the registered automatic save-on-exit, if any. It is invoked from the CLI Cleanup path so it runs on normal exit and on signal termination.

Types

This section is empty.

Jump to

Keyboard shortcuts

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