@@ -20,11 +20,11 @@ import (
20
20
const PASS_FOLDER = "docker-credential-helpers"
21
21
22
22
var (
23
- passInitialized bool
23
+ PassInitialized bool
24
24
)
25
25
26
26
func init () {
27
- passInitialized = exec .Command ("pass" ).Run () == nil
27
+ PassInitialized = exec .Command ("pass" ).Run () == nil
28
28
}
29
29
30
30
func runPass (stdinContent string , args ... string ) (string , error ) {
@@ -82,7 +82,7 @@ type Pass struct{}
82
82
83
83
// Add adds new credentials to the keychain.
84
84
func (h Pass ) Add (creds * credentials.Credentials ) error {
85
- if ! passInitialized {
85
+ if ! PassInitialized {
86
86
return errors .New ("pass store is uninitialized" )
87
87
}
88
88
@@ -98,7 +98,7 @@ func (h Pass) Add(creds *credentials.Credentials) error {
98
98
99
99
// Delete removes credentials from the store.
100
100
func (h Pass ) Delete (serverURL string ) error {
101
- if ! passInitialized {
101
+ if ! PassInitialized {
102
102
return errors .New ("pass store is uninitialized" )
103
103
}
104
104
@@ -145,7 +145,7 @@ func listPassDir(args ...string) ([]os.FileInfo, error) {
145
145
146
146
// Get returns the username and secret to use for a given registry server URL.
147
147
func (h Pass ) Get (serverURL string ) (string , string , error ) {
148
- if ! passInitialized {
148
+ if ! PassInitialized {
149
149
return "" , "" , errors .New ("pass store is uninitialized" )
150
150
}
151
151
@@ -171,7 +171,7 @@ func (h Pass) Get(serverURL string) (string, string, error) {
171
171
172
172
// List returns the stored URLs and corresponding usernames for a given credentials label
173
173
func (h Pass ) List () (map [string ]string , error ) {
174
- if ! passInitialized {
174
+ if ! PassInitialized {
175
175
return nil , errors .New ("pass store is uninitialized" )
176
176
}
177
177
0 commit comments