-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.go
More file actions
101 lines (69 loc) · 3.3 KB
/
config.go
File metadata and controls
101 lines (69 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package keyring
import (
"time"
)
// Config contains configuration for keyring.
type Config struct {
// AllowedBackends is a whitelist of backend providers that can be used. Nil means all available.
AllowedBackends []BackendType
// ServiceName is a generic service name that is used by backends that support the concept
ServiceName string
// MacOSKeychainNameKeychainName is the name of the macOS keychain that is used
KeychainName string
// KeychainTrustApplication is whether the calling application should be trusted by default by items
KeychainTrustApplication bool
// KeychainSynchronizable is whether the item can be synchronized to iCloud
KeychainSynchronizable bool
// KeychainAccessibleWhenUnlocked is whether the item is accessible when the device is locked
KeychainAccessibleWhenUnlocked bool
// KeychainPasswordFunc is an optional function used to prompt the user for a password
KeychainPasswordFunc PromptFunc
// FilePasswordFunc is a required function used to prompt the user for a password
FilePasswordFunc PromptFunc
// FileDir is the directory that keyring files are stored in, ~/ is resolved to the users' home dir
FileDir string
// KeyCtlScope is the scope of the kernel keyring (either "user", "session", "process" or "thread")
KeyCtlScope string
// KeyCtlPerm is the permission mask to use for new keys
KeyCtlPerm uint32
// KWalletAppID is the application id for KWallet
KWalletAppID string
// KWalletFolder is the folder for KWallet
KWalletFolder string
// LibSecretCollectionName is the name collection in secret-service
LibSecretCollectionName string
// PassDir is the pass password-store directory, ~/ is resolved to the users' home dir
PassDir string
// PassCmd is the name of the pass executable
PassCmd string
// PassPrefix is a string prefix to prepend to the item path stored in pass
PassPrefix string
// WinCredPrefix is a string prefix to prepend to the key name
WinCredPrefix string
// UseBiometrics is whether to use biometrics (where available) to unlock the keychain
UseBiometrics bool
// TouchIDAccount is the name of the account that we store the unlock password in keychain
TouchIDAccount string
// TouchIDService is the name of the service that we store the unlock password in keychain
TouchIDService string
// OPTimeout is the timeout for 1Password API operations (1Password Service Accounts only)
OPTimeout time.Duration
// OPVaultID is the UUID of the 1Password vault
OPVaultID string
// OPItemTitlePrefix is the prefix to prepend to 1Password item titles
OPItemTitlePrefix string
// OPItemTag is the tag to apply to 1Password items
OPItemTag string
// OPItemFieldTitle is the title of the 1Password item field
OPItemFieldTitle string
// OPConnectHost is the 1Password Connect server HTTP(S) URI
OPConnectHost string
// OPConnectTokenEnv is the primary environment variable from which to look up the 1Password Connect token
OPConnectTokenEnv string
// OPTokenEnv is the primary environment variable from which to look up the 1Password service account token
OPTokenEnv string
// OPTokenFunc is the function used to prompt the user for the 1Password Connect / service account token
OPTokenFunc PromptFunc
// OPDesktopAccountID is the 1Password account name or UUIDj for Desktop Integration (1Password Desktop App only)
OPDesktopAccountID string
}