credentials

package
v0.11.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package credentials stores application credentials in the operating system's credential vault. It intentionally has no plaintext-file fallback.

Index

Constants

View Source
const Service = "Overkill CLI credentials"

Variables

This section is empty.

Functions

This section is empty.

Types

type NativeStore

type NativeStore struct{}

NativeStore uses macOS Keychain, Windows Credential Manager, or Linux Secret Service through go-keyring. Constructing it does not access a vault.

func (NativeStore) Delete

func (NativeStore) Delete(account string) error

func (NativeStore) Get

func (NativeStore) Get(account string) (string, error)

func (NativeStore) Set

func (NativeStore) Set(account, secret string) error

type Store

type Store interface {
	Set(account, secret string) error
	Get(account string) (string, error)
	Delete(account string) error
}

Store is injected by acceptance tests and embedders. Accounts are opaque, profile-bound identifiers; callers must never use credential text as an ID.

Jump to

Keyboard shortcuts

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