credentials

package
v0.1.0-dev.20260219091620 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package credentials provides secure credential storage using native OS keychains (macOS Keychain, Linux libsecret, Windows Credential Manager) with file-based fallback.

Keychain entries use:

  • Service: com.noblefactor.DevLore
  • Account: the key (e.g., "ai/anthropic", "ai/openai")
  • Password: the secret value

Lookup priority: Native keystore > Credentials file Environment variables are handled by the caller, not here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string) error

Delete removes a credential from keychain and/or file.

func Get

func Get(key string) (string, error)

Get retrieves a credential with priority: keychain > file. Environment variables should be checked by the caller before calling this.

func Set

func Set(key, secret string) error

Set stores a credential in keychain (preferred) or file fallback.

Types

This section is empty.

Jump to

Keyboard shortcuts

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