auto

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package auto picks the credential backend for the platform it is built for.

It exists for multiplatform CLIs that just want "whatever this machine has". Code that knows its environment should skip it and inject the backend directly — a browser application imports keyring/browser, not this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *keyring.KeyManager

New is keyring.New with the platform's provider already chosen.

func Provider

func Provider() keyring.Provider

Provider returns the Secret Service backend.

Types

type Keyring

type Keyring = keyring.Keyring

Keyring is an alias so callers need only this import.

func NewKeyring

func NewKeyring(service string) (*Keyring, error)

NewKeyring is keyring.NewKeyring with the platform's provider already chosen.

func OpenKeyring

func OpenKeyring(service string) *Keyring

OpenKeyring is keyring.OpenKeyring with the platform's provider already chosen.

Jump to

Keyboard shortcuts

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