cache

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cache implements a live check that verifies the CLI cache directory is available and writable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheStatus

type CacheStatus struct {
	OK           bool
	Path         string
	ErrorMessage string
}

CacheStatus is the outcome of the cache directory check.

func Check

func Check(invocationCtx workflow.InvocationContext) CacheStatus

Check verifies that the configured cache directory exists and is writable by creating (and immediately removing) a temporary file inside it.

func (CacheStatus) Findings

func (c CacheStatus) Findings() []diagnosis.Finding

Findings maps the cache status into the generic Finding contract.

Jump to

Keyboard shortcuts

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