credentials

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StoreAuto     = "auto"
	StoreEnv      = "env"
	StoreKeychain = "keychain"
	StoreFile     = "file"

	DefaultService = "doc7"
)

Variables

This section is empty.

Functions

func DefaultCredentialsPath

func DefaultCredentialsPath() string

func EnvironmentKeys

func EnvironmentKeys(preferred string) []string

func NormalizeStore

func NormalizeStore(value string) (string, error)

func Store

func Store(opts Options, apiKey string) (string, error)

Types

type Options

type Options struct {
	Store       string
	Account     string
	Path        string
	APIKeyEnv   string
	Environment map[string]string
}

type Result

type Result struct {
	Key    string
	Source string
}

func Resolve

func Resolve(opts Options) (Result, error)

Jump to

Keyboard shortcuts

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