Help us shape the future of Go! Take the 2026 Go Developer Survey

keychain

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const KeychainBackend = keyring.KeychainBackend

Variables

View Source
var (
	ErrAccessDenied             = keyring.ErrAccessDenied
	ErrKeyNotFound              = keyring.ErrKeyNotFound
	ErrMetadataNeedsCredentials = keyring.ErrMetadataNeedsCredentials
)

Functions

func Provider

func Provider(opts ...Option) keyring.Provider

Types

type Config

type Config struct {
	ServiceName                    string
	KeychainName                   string
	KeychainTrustApplication       bool
	KeychainSynchronizable         bool
	KeychainAccessibleWhenUnlocked bool
	KeychainPasswordFunc           keyring.PromptFunc
}

type Item

type Item = keyring.Item

type Metadata

type Metadata = keyring.Metadata

type Option

type Option func(*Config)

func AccessibleWhenUnlocked

func AccessibleWhenUnlocked(enabled bool) Option

func Name

func Name(name string) Option

func Prompt

func Prompt(prompt keyring.PromptFunc) Option

func Synchronizable

func Synchronizable(enabled bool) Option

func TrustApplication

func TrustApplication(enabled bool) Option

type PromptFunc

type PromptFunc = keyring.PromptFunc

Jump to

Keyboard shortcuts

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