Skip to content

Commit c9b7632

Browse files
committed
add comment
Signed-off-by: Grant Linville <[email protected]>
1 parent 55c518f commit c9b7632

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/credentials/toolstore.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ func (h *toolCredentialStore) Get(serverAddress string) (types.AuthConfig, error
4646
}, nil
4747
}
4848

49+
// GetAll will list all credentials in the credential store.
50+
// It MAY (but is not required to) filter the credentials based on the contexts provided.
51+
// This is only supported by some credential stores, while others will ignore it and return all credentials.
52+
// The caller of this function is still required to filter the output to only include the contexts requested.
4953
func (h *toolCredentialStore) GetAll() (map[string]types.AuthConfig, error) {
5054
var (
5155
serverAddresses map[string]string

0 commit comments

Comments
 (0)