cli

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICliSession added in v0.1.7

type ICliSession interface {
	authorization_code.ISessionHooks
	SetKey(key string, value []byte) error
	GetKey(key string) ([]byte, error)
	DeleteKey(key string) error
}

func NewCliSession

func NewCliSession(serviceName string, opts ...Option) (ICliSession, error)

type Option added in v0.1.5

type Option func(*keyring.Config)

func WithAllowedBackends added in v0.1.5

func WithAllowedBackends(backends []keyring.BackendType) Option

WithAllowedBackends sets the allowed backends for the keyring.

func WithFileDir added in v0.1.5

func WithFileDir(dir string) Option

WithFileDir sets the file directory for the file backend.

func WithFilePasswordFunc added in v0.1.5

func WithFilePasswordFunc(fn keyring.PromptFunc) Option

WithFilePasswordFunc sets the password function for the file backend.

func WithKeychainName added in v0.1.5

func WithKeychainName(name string) Option

WithKeychainName sets the keychain name for the keyring.

func WithKeychainPasswordFunc added in v0.1.5

func WithKeychainPasswordFunc(fn keyring.PromptFunc) Option

WithKeychainPasswordFunc sets the password function for the keychain backend.

func WithKeychainTrustApplication added in v0.1.5

func WithKeychainTrustApplication(trust bool) Option

WithKeychainTrustApplication sets whether to trust the application for the keychain backend.

func WithServiceName added in v0.1.5

func WithServiceName(name string) Option

WithServiceName sets the service name for the keyring.

Jump to

Keyboard shortcuts

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