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

Side by Side Diff: appengine/swarming/server/bot_auth.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 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
« no previous file with comments | « appengine/swarming/server/bot_archive.py ('k') | appengine/swarming/server/bot_code.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 by the Apache v2.0 license that can be 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """A registry of known bots and server-side assigned (trusted) dimensions. 5 """A registry of known bots and server-side assigned (trusted) dimensions.
6 6
7 It is fetched from the config service. Functions here are used by bot API 7 It is fetched from the config service. Functions here are used by bot API
8 handlers in handlers_bot.py. 8 handlers in handlers_bot.py.
9 """ 9 """
10 10
11 from components import auth 11 from components import auth
12 12
13 13
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 def fetch_trusted_dimensions(bot_id): # pylint: disable=unused-argument 46 def fetch_trusted_dimensions(bot_id): # pylint: disable=unused-argument
47 """Returns a dict with bot dimensions, fetching them from the config. 47 """Returns a dict with bot dimensions, fetching them from the config.
48 48
49 Expected to be called in a context of some bot API request handler. 49 Expected to be called in a context of some bot API request handler.
50 50
51 Dimensions returned here override corresponding dimensions reported by the 51 Dimensions returned here override corresponding dimensions reported by the
52 bot itself (if any), that's why they are trusted: bot can't "spoof" them. 52 bot itself (if any), that's why they are trusted: bot can't "spoof" them.
53 """ 53 """
54 # TODO(vadimsh): Implement. 54 # TODO(vadimsh): Implement.
55 return {} 55 return {}
OLDNEW
« no previous file with comments | « appengine/swarming/server/bot_archive.py ('k') | appengine/swarming/server/bot_code.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698