MCPcopy
hub / github.com/cortexlabs/cortex / readCachedClusterConfigFile

Function readCachedClusterConfigFile

cli/cmd/lib_cluster_config.go:63–70  ·  view source on GitHub ↗
(clusterConfig *clusterconfig.Config, filePath string)

Source from the content-addressed store, hash-verified

61}
62
63func readCachedClusterConfigFile(clusterConfig *clusterconfig.Config, filePath string) error {
64 errs := cr.ParseYAMLFile(clusterConfig, clusterconfig.FullConfigValidation, filePath)
65 if errors.HasError(errs) {
66 return errors.FirstError(errs...)
67 }
68
69 return nil
70}
71
72func readUserClusterConfigFile(clusterConfig *clusterconfig.Config, filePath string) error {
73 errs := cr.ParseYAMLFile(clusterConfig, clusterconfig.FullConfigValidation, filePath)

Callers 1

Calls 2

HasErrorFunction · 0.92
FirstErrorFunction · 0.92

Tested by

no test coverage detected