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 ¶
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.