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

Side by Side Diff: tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_grant.go

Issue 2785973002: token-server: Add protos for new API for generating service account tokens. (Closed)
Patch Set: more nits Created 3 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
(Empty)
1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 package serviceaccounts
6
7 import (
8 "golang.org/x/net/context"
9 "google.golang.org/grpc"
10 "google.golang.org/grpc/codes"
11
12 "github.com/luci/luci-go/tokenserver/api/minter/v1"
13 )
14
15 // MintOAuthTokenGrantRPC implements TokenMinter.MintOAuthTokenGrant method.
16 type MintOAuthTokenGrantRPC struct {
17 }
18
19 // MintOAuthTokenGrant produces new OAuth token grant.
20 func (r *MintOAuthTokenGrantRPC) MintOAuthTokenGrant(c context.Context, req *min ter.MintOAuthTokenGrantRequest) (*minter.MintOAuthTokenGrantResponse, error) {
21 return nil, grpc.Errorf(codes.Unavailable, "not implemented")
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698