Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v1.233.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

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