Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: logdog/client/butlerlib/bootstrap/bootstrap.go

Issue 2626433004: Move "common/config" common types into cfgtypes. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « logdog/client/butler/output/logdog/output.go ('k') | logdog/client/cli/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/butlerlib/bootstrap/bootstrap.go
diff --git a/logdog/client/butlerlib/bootstrap/bootstrap.go b/logdog/client/butlerlib/bootstrap/bootstrap.go
index c9e9bc8370027a2018f15ffc7b35c65a8dde647a..ce39b7fb042fbc22a9aca642b8e3bb5164cf0ca4 100644
--- a/logdog/client/butlerlib/bootstrap/bootstrap.go
+++ b/logdog/client/butlerlib/bootstrap/bootstrap.go
@@ -8,11 +8,11 @@ import (
"fmt"
"github.com/luci/luci-go/client/environ"
- "github.com/luci/luci-go/common/config"
"github.com/luci/luci-go/common/errors"
"github.com/luci/luci-go/logdog/client/butlerlib/streamclient"
"github.com/luci/luci-go/logdog/common/types"
"github.com/luci/luci-go/logdog/common/viewer"
+ "github.com/luci/luci-go/luci_config/common/cfgtypes"
)
// ErrNotBootstrapped is returned by Get when the current process is not
@@ -33,7 +33,7 @@ type Bootstrap struct {
CoordinatorHost string
// Project is the Butler instance project name.
- Project config.ProjectName
+ Project cfgtypes.ProjectName
// Prefix is the Butler instance prefix.
Prefix types.StreamName
@@ -52,7 +52,7 @@ func getFromEnv(env environ.Environment, reg *streamclient.Registry) (*Bootstrap
bs := &Bootstrap{
CoordinatorHost: env[EnvCoordinatorHost],
Prefix: types.StreamName(prefix),
- Project: config.ProjectName(env[EnvStreamProject]),
+ Project: cfgtypes.ProjectName(env[EnvStreamProject]),
}
if err := bs.Prefix.Validate(); err != nil {
return nil, fmt.Errorf("bootstrap: failed to validate prefix %q: %s", prefix, err)
« no previous file with comments | « logdog/client/butler/output/logdog/output.go ('k') | logdog/client/cli/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698