...
1
2
3
4
5
6
7
8
9
10
11
12
13
14 package cache
15
16 type nullCredentialsCache struct{}
17
18 func NewNullCredentialsCache() CredentialsCache {
19 return &nullCredentialsCache{}
20 }
21
22 func (n *nullCredentialsCache) Get(_ string) *AuthEntry {
23 return nil
24 }
25
26 func (n *nullCredentialsCache) GetPublic() *AuthEntry {
27 return nil
28 }
29
30 func (n *nullCredentialsCache) Set(_ string, _ *AuthEntry) {
31 }
32
33 func (n *nullCredentialsCache) List() []*AuthEntry {
34 return []*AuthEntry{}
35 }
36
37 func (n *nullCredentialsCache) Clear() {
38 }
39
View as plain text