MCPcopy Index your code
hub / github.com/cortexlabs/cortex / getCachedClusterConfigPath

Function getCachedClusterConfigPath

cli/cmd/lib_cluster_config.go:43–45  ·  view source on GitHub ↗
(clusterName string, region string)

Source from the content-addressed store, hash-verified

41var _cachedClusterConfigRegex = regexp.MustCompile(`^cluster_\S+\.yaml$`)
42
43func getCachedClusterConfigPath(clusterName string, region string) string {
44 return filepath.Join(_localDir, fmt.Sprintf("cluster_%s_%s.yaml", clusterName, region))
45}
46
47func existingCachedClusterConfigPaths() []string {
48 paths, err := files.ListDir(_localDir, false)

Callers 3

cluster.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected