configdir

package
v0.7.32 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package configdir resolves the agentry client configuration directory (default ~/.config/agentry, relocated by AGENTRY_CONFIG_DIR). Every file any agentry client keeps on disk — config.yaml, installed.yaml, pinned signing keys, cached rule bundles — lives under this one root, so a single environment variable relocates all of it (container volumes, tests).

It is a separate package so pkg/installed and pkg/trust can share the resolution with the CLI without importing the CLI's command wiring.

Index

Constants

View Source
const EnvVar = "AGENTRY_CONFIG_DIR"

EnvVar relocates the config directory (default ~/.config/agentry).

Variables

This section is empty.

Functions

func Dir

func Dir() (string, error)

Dir returns the agentry config directory, honoring EnvVar.

Types

This section is empty.

Jump to

Keyboard shortcuts

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