prow/config/secret/secret.go
func LoadSecrets(paths []string) (map[string][]byte, error) {
	secretsMap := make(map[string][]byte, len(paths))

	for _, path := range paths {
		secretValue, err := LoadSingleSecret(path)
		if err != nil {
			return nil, err
		}
		secretsMap[path] = secretValue
	}
	return secretsMap, nil
}
func LoadSecrets(paths []string) (map[string][]byte, error) {
	secretsMap := make(map[string][]byte, len(paths))

	for _, path := range paths {
		secretValue, err := LoadSingleSecret(path)
		if err != nil {
			return nil, err
		}
		secretsMap[path] = secretValue
	}
	return secretsMap, nil
}
func LoadSecrets ( paths [ ] string ) ( map [ string ] [ ] byte , error ) { secretsMap := make ( map [ string ] [ ] byte , len ( paths ) ) for _ , path := range paths { secretValue , err := LoadSingleSecret ( path ) if err != nil { return nil , err } secretsMap [ path ] = secretValue } return secretsMap , nil }
// LoadSecrets loads multiple paths of secrets and add them in a map.
LoadSecrets loads multiple paths of secrets and add them in a map .