Documentation
¶
Index ¶
- type ICliSession
- type Option
- func WithAllowedBackends(backends []keyring.BackendType) Option
- func WithFileDir(dir string) Option
- func WithFilePasswordFunc(fn keyring.PromptFunc) Option
- func WithKeychainName(name string) Option
- func WithKeychainPasswordFunc(fn keyring.PromptFunc) Option
- func WithKeychainTrustApplication(trust bool) Option
- func WithServiceName(name string) Option
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
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
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
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
WithKeychainTrustApplication sets whether to trust the application for the keychain backend.
func WithServiceName ¶ added in v0.1.5
WithServiceName sets the service name for the keyring.
Click to show internal directories.
Click to hide internal directories.