cache

package
v0.27.1 Latest Latest
Warning

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

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

Documentation

Overview

Package cache manages the local cache directory for librarian operations.

Index

Constants

View Source
const (
	// EnvLibrarianBin is the environment variable used to override the default bin directory.
	EnvLibrarianBin = "LIBRARIAN_BIN"
	// EnvLibrarianCache is the environment variable used to override the default cache directory.
	EnvLibrarianCache = "LIBRARIAN_CACHE"
)

Variables

This section is empty.

Functions

func BinDirectory

func BinDirectory() (string, error)

BinDirectory returns the directory where librarian bin files are stored. It checks the $LIBRARIAN_BIN environment variable, falling back to the "bin" subdirectory under the cache directory if not set.

func Directory

func Directory() (string, error)

Directory returns the root cache directory for librarian operations. It checks the $LIBRARIAN_CACHE environment variable, falling back to $HOME/.cache/librarian if not set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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