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

Side by Side Diff: common/gcloud/pubsub/scopes.go

Issue 2219023003: Update APIs to use new Google cloud paths. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package pubsub 5 package pubsub
6 6
7 import ( 7 import (
8 » "google.golang.org/cloud/pubsub" 8 » "cloud.google.com/go/pubsub"
9 ) 9 )
10 10
11 var ( 11 var (
12 // PublisherScopes is the set of OAuth2 scopes needed for a publisher to 12 // PublisherScopes is the set of OAuth2 scopes needed for a publisher to
13 // publish messages. 13 // publish messages.
14 PublisherScopes = []string{ 14 PublisherScopes = []string{
15 pubsub.ScopePubSub, 15 pubsub.ScopePubSub,
16 } 16 }
17 17
18 // SubscriberScopes is the set of OAuth2 scopes needed for a subscriber to 18 // SubscriberScopes is the set of OAuth2 scopes needed for a subscriber to
19 // pull and acknowledge messages. 19 // pull and acknowledge messages.
20 SubscriberScopes = []string{ 20 SubscriberScopes = []string{
21 pubsub.ScopePubSub, 21 pubsub.ScopePubSub,
22 } 22 }
23 ) 23 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698