keystore

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Overview

Package keystore holds a runner's runner_resident values in the operating system's keystore (design 0.9 §7.4). There is no file fallback: a keystore that cannot be written refuses the delivery.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("keystore: the OS keystore is unavailable")

ErrUnavailable marks a keystore that cannot hold or return a value.

Functions

func Delete

func Delete(account string) error

Delete removes account; one that is already gone is not an error.

func Get

func Get(account string) (string, error)

Get returns the value stored under account.

func Set

func Set(account, value string) error

Set stores value under account: the Secret Service over D-Bus on Linux; on macOS the login Keychain through /usr/bin/security, which go-keyring v0.2.8 hands the value over stdin (`security -i`), never in argv. That command line is capped at 4096 bytes, so a value over about 3 KB is refused, never sent another way.

Types

This section is empty.

Jump to

Keyboard shortcuts

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