()
| 45 | } |
| 46 | |
| 47 | func existingCachedClusterConfigPaths() []string { |
| 48 | paths, err := files.ListDir(_localDir, false) |
| 49 | if err != nil { |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | var matches []string |
| 54 | for _, p := range paths { |
| 55 | if _cachedClusterConfigRegex.MatchString(path.Base(p)) { |
| 56 | matches = append(matches, p) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return matches |
| 61 | } |
| 62 | |
| 63 | func readCachedClusterConfigFile(clusterConfig *clusterconfig.Config, filePath string) error { |
| 64 | errs := cr.ParseYAMLFile(clusterConfig, clusterconfig.FullConfigValidation, filePath) |
no test coverage detected