Index: logdog/api/config/svcconfig/util.go |
diff --git a/logdog/api/config/svcconfig/util.go b/logdog/api/config/svcconfig/util.go |
index 126dc8d0a7b82c757902e16ec79f5194b05bb2c0..f40b388d8392da09bf1c4668d1dff5b79e8a3edd 100644 |
--- a/logdog/api/config/svcconfig/util.go |
+++ b/logdog/api/config/svcconfig/util.go |
@@ -4,7 +4,15 @@ |
package svcconfig |
+import ( |
+ "fmt" |
+) |
+ |
const ( |
- // ServiceConfigFilename is the config service path of the Config protobuf. |
- ServiceConfigFilename = "services.cfg" |
+ // ServiceConfigPath is the config service path of the Config protobuf. |
+ ServiceConfigPath = "services.cfg" |
) |
+ |
+// ProjectConfigPath returns the path of a LogDog project config given the |
+// LogDog service's name. |
+func ProjectConfigPath(serviceName string) string { return fmt.Sprintf("%s.cfg", serviceName) } |