store

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 8

README

Store

The store module is a strict interface for storing credentials and secrets. It is tightly coupled to the secrets engine and requires a valid secrets.ID.

Supported stores include:

  • Linux keychain (gnome-keyring and kdewallet)
  • macOS keychain
  • windows credential management API
  • file encryption via age

Local Testing

You can run all tests using go test. For the keychain package the tests use the supported keychain of your host OS. Linux keychain tests can also be run inside Docker.

More information can be found at ./docs/test.md.

Documentation

Overview

Package store holds aliases of the types and helpers that moved to github.com/docker/secrets-engine/secrets.

Deprecated: Use github.com/docker/secrets-engine/secrets instead. The store backends in the keychain and posixage subpackages are not deprecated.

Index

Constants

This section is empty.

Variables

View Source
var ErrCredentialNotFound = secrets.ErrNotFound

Deprecated: Use secrets.ErrNotFound instead.

View Source
var ErrEmptySecret = secrets.ErrEmptySecret

ErrEmptySecret is returned by Save and Upsert when the secret's value is empty.

Deprecated: Use secrets.ErrEmptySecret instead.

Functions

func MustParseID deprecated added in v0.0.6

func MustParseID(s string) secrets.ID

Deprecated: Use secrets.MustParseID instead.

func MustParsePattern deprecated added in v0.0.7

func MustParsePattern(s string) secrets.Pattern

Deprecated: Use secrets.MustParsePattern instead.

func ParseID deprecated

func ParseID(s string) (secrets.ID, error)

Deprecated: Use secrets.ParseID instead.

func ParsePattern deprecated added in v0.0.7

func ParsePattern(s string) (secrets.Pattern, error)

Deprecated: Use secrets.ParsePattern instead.

Types

type Factory deprecated added in v0.0.11

type Factory[T secrets.Secret] = secrets.Factory[T]

Deprecated: Use secrets.Factory instead.

type ID deprecated

type ID = secrets.ID

Deprecated: Use secrets.ID instead.

type Pattern deprecated added in v0.0.7

type Pattern = secrets.Pattern

Deprecated: Use secrets.Pattern instead.

type Secret deprecated

type Secret = secrets.Secret

Deprecated: Use secrets.Secret instead.

type Store deprecated

type Store = secrets.Store

Deprecated: Use secrets.Store instead.

Directories

Path Synopsis
The keychain package for Linux uses the org.freedesktop.secret service API over dbus.
The keychain package for Linux uses the org.freedesktop.secret service API over dbus.
Package posixage provides a file-based secret store secured with age(https://github.com/FiloSottile/age) encryption.
Package posixage provides a file-based secret store secured with age(https://github.com/FiloSottile/age) encryption.

Jump to

Keyboard shortcuts

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