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

Side by Side Diff: tokenserver/api/admin/v1/adminserver_dec.go

Issue 2413683004: token-server: Delegation config import, validation and evaluation. (Closed)
Patch Set: also check validity_duration Created 4 years, 1 month 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 // Code generated by svcdec; DO NOT EDIT 1 // Code generated by svcdec; DO NOT EDIT
2 2
3 package admin 3 package admin
4 4
5 import ( 5 import (
6 proto "github.com/golang/protobuf/proto" 6 proto "github.com/golang/protobuf/proto"
7 context "golang.org/x/net/context" 7 context "golang.org/x/net/context"
8 8
9 google_protobuf "github.com/luci/luci-go/common/proto/google" 9 google_protobuf "github.com/luci/luci-go/common/proto/google"
10 ) 10 )
(...skipping 21 matching lines...) Expand all
32 if err == nil { 32 if err == nil {
33 c = newCtx 33 c = newCtx
34 rsp, err = s.Service.ImportCAConfigs(c, req) 34 rsp, err = s.Service.ImportCAConfigs(c, req)
35 } 35 }
36 if s.Postlude != nil { 36 if s.Postlude != nil {
37 err = s.Postlude(c, "ImportCAConfigs", rsp, err) 37 err = s.Postlude(c, "ImportCAConfigs", rsp, err)
38 } 38 }
39 return 39 return
40 } 40 }
41 41
42 func (s *DecoratedAdmin) ImportDelegationConfigs(c context.Context, req *google_ protobuf.Empty) (rsp *ImportedConfigs, err error) {
43 var newCtx context.Context
44 if s.Prelude != nil {
45 newCtx, err = s.Prelude(c, "ImportDelegationConfigs", req)
46 }
47 if err == nil {
48 c = newCtx
49 rsp, err = s.Service.ImportDelegationConfigs(c, req)
50 }
51 if s.Postlude != nil {
52 err = s.Postlude(c, "ImportDelegationConfigs", rsp, err)
53 }
54 return
55 }
56
42 func (s *DecoratedAdmin) InspectMachineToken(c context.Context, req *InspectMach ineTokenRequest) (rsp *InspectMachineTokenResponse, err error) { 57 func (s *DecoratedAdmin) InspectMachineToken(c context.Context, req *InspectMach ineTokenRequest) (rsp *InspectMachineTokenResponse, err error) {
43 var newCtx context.Context 58 var newCtx context.Context
44 if s.Prelude != nil { 59 if s.Prelude != nil {
45 newCtx, err = s.Prelude(c, "InspectMachineToken", req) 60 newCtx, err = s.Prelude(c, "InspectMachineToken", req)
46 } 61 }
47 if err == nil { 62 if err == nil {
48 c = newCtx 63 c = newCtx
49 rsp, err = s.Service.InspectMachineToken(c, req) 64 rsp, err = s.Service.InspectMachineToken(c, req)
50 } 65 }
51 if s.Postlude != nil { 66 if s.Postlude != nil {
52 err = s.Postlude(c, "InspectMachineToken", rsp, err) 67 err = s.Postlude(c, "InspectMachineToken", rsp, err)
53 } 68 }
54 return 69 return
55 } 70 }
OLDNEW
« no previous file with comments | « tokenserver/api/admin/v1/admin.pb.go ('k') | tokenserver/api/admin/v1/certificate_authorities.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698