Chromium Code Reviews| Index: logdog/client/butlerlib/bootstrap/bootstrap.go |
| diff --git a/logdog/client/butlerlib/bootstrap/bootstrap.go b/logdog/client/butlerlib/bootstrap/bootstrap.go |
| index 7264f63ca4fd65de3ddda508641a3ad0c2294f05..1f1887a2a151491a9bf594ec45e60fef456c4d58 100644 |
| --- a/logdog/client/butlerlib/bootstrap/bootstrap.go |
| +++ b/logdog/client/butlerlib/bootstrap/bootstrap.go |
| @@ -20,6 +20,14 @@ var ErrNotBootstrapped = errors.New("not bootstrapped") |
| // Bootstrap contains information about the |
|
Vadim Sh.
2016/10/27 04:48:05
about the what?
|
| type Bootstrap struct { |
| + // CoordinatorHost is the name of the upstream Coordinator host. |
| + // |
| + // This is just the host name ("example.appspot.com"), not a full URL. |
| + // |
| + // If this instance is not configured using a production Coordinator Output, |
| + // this will be empty. |
| + CoordinatorHost string |
| + |
| // Project is the Butler instance project name. |
| Project config.ProjectName |
| // Prefix is the Butler instance prefix. |
| @@ -38,8 +46,9 @@ func getFromEnv(env environ.Environment, reg *streamclient.Registry) (*Bootstrap |
| } |
| bs := &Bootstrap{ |
| - Prefix: types.StreamName(prefix), |
| - Project: config.ProjectName(env[EnvStreamProject]), |
| + CoordinatorHost: env[EnvCoordinatorHost], |
| + Prefix: types.StreamName(prefix), |
| + Project: config.ProjectName(env[EnvStreamProject]), |
| } |
| if err := bs.Prefix.Validate(); err != nil { |
| return nil, fmt.Errorf("bootstrap: failed to validate prefix %q: %s", prefix, err) |