| OLD | NEW |
| (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 // MintOAuthTokenViaGrantRPC implements TokenMinter.MintOAuthTokenViaGrant |
| 16 // method. |
| 17 type MintOAuthTokenViaGrantRPC struct { |
| 18 } |
| 19 |
| 20 // MintOAuthTokenViaGrant produces new OAuth token given a grant. |
| 21 func (r *MintOAuthTokenViaGrantRPC) MintOAuthTokenViaGrant(c context.Context, re
q *minter.MintOAuthTokenViaGrantRequest) (*minter.MintOAuthTokenViaGrantResponse
, error) { |
| 22 return nil, grpc.Errorf(codes.Unavailable, "not implemented") |
| 23 } |
| OLD | NEW |