Ankur | cc04385 | 2015-04-14 13:10:28 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // This file was auto-generated by the vanadium vdl tool. |
| 6 | // Source: type.vdl |
| 7 | |
| 8 | package security |
| 9 | |
| 10 | import ( |
| 11 | // VDL system imports |
| 12 | "v.io/v23/vdl" |
| 13 | |
| 14 | // VDL user imports |
| 15 | "v.io/v23/security" |
| 16 | ) |
| 17 | |
| 18 | type blessingRootsState map[string][]security.BlessingPattern |
| 19 | |
| 20 | func (blessingRootsState) __VDLReflect(struct { |
Suharsh Sivakumar | 071d1c8 | 2015-05-08 14:45:10 -0700 | [diff] [blame] | 21 | Name string `vdl:"v.io/x/ref/lib/security.blessingRootsState"` |
Ankur | cc04385 | 2015-04-14 13:10:28 -0700 | [diff] [blame] | 22 | }) { |
| 23 | } |
| 24 | |
| 25 | type blessingStoreState struct { |
| 26 | // PeerBlessings maps BlessingPatterns to the Blessings object that is to |
| 27 | // be shared with peers which present blessings of their own that match the |
| 28 | // pattern. |
| 29 | // |
| 30 | // All blessings bind to the same public key. |
| 31 | PeerBlessings map[security.BlessingPattern]security.Blessings |
| 32 | // DefaultBlessings is the default Blessings to be shared with peers for which |
| 33 | // no other information is available to select blessings. |
| 34 | DefaultBlessings security.Blessings |
Suharsh Sivakumar | d7d4e22 | 2015-06-22 11:10:44 -0700 | [diff] [blame] | 35 | // DischargeCache is the cache of discharges. |
| 36 | DischargeCache map[dischargeCacheKey]security.Discharge |
| 37 | // CacheKeyFormat is the dischargeCacheKey format version. It should incremented |
| 38 | // any time the format of the dischargeCacheKey is changed. |
| 39 | CacheKeyFormat uint32 |
Ankur | cc04385 | 2015-04-14 13:10:28 -0700 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | func (blessingStoreState) __VDLReflect(struct { |
Suharsh Sivakumar | 071d1c8 | 2015-05-08 14:45:10 -0700 | [diff] [blame] | 43 | Name string `vdl:"v.io/x/ref/lib/security.blessingStoreState"` |
Ankur | cc04385 | 2015-04-14 13:10:28 -0700 | [diff] [blame] | 44 | }) { |
| 45 | } |
| 46 | |
Suharsh Sivakumar | d7d4e22 | 2015-06-22 11:10:44 -0700 | [diff] [blame] | 47 | type dischargeCacheKey [32]byte |
| 48 | |
| 49 | func (dischargeCacheKey) __VDLReflect(struct { |
| 50 | Name string `vdl:"v.io/x/ref/lib/security.dischargeCacheKey"` |
| 51 | }) { |
| 52 | } |
| 53 | |
Ankur | cc04385 | 2015-04-14 13:10:28 -0700 | [diff] [blame] | 54 | func init() { |
| 55 | vdl.Register((*blessingRootsState)(nil)) |
| 56 | vdl.Register((*blessingStoreState)(nil)) |
Suharsh Sivakumar | d7d4e22 | 2015-06-22 11:10:44 -0700 | [diff] [blame] | 57 | vdl.Register((*dischargeCacheKey)(nil)) |
Ankur | cc04385 | 2015-04-14 13:10:28 -0700 | [diff] [blame] | 58 | } |