blob: 5681451f9da4ab9e53b0b3e17db2c2c8e1199d27 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file was auto-generated by the vanadium vdl tool.
// Source: type.vdl
package security
import (
// VDL system imports
"v.io/v23/vdl"
// VDL user imports
"v.io/v23/security"
)
type blessingRootsState map[string][]security.BlessingPattern
func (blessingRootsState) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/lib/security.blessingRootsState"`
}) {
}
type blessingStoreState struct {
// PeerBlessings maps BlessingPatterns to the Blessings object that is to
// be shared with peers which present blessings of their own that match the
// pattern.
//
// All blessings bind to the same public key.
PeerBlessings map[security.BlessingPattern]security.Blessings
// DefaultBlessings is the default Blessings to be shared with peers for which
// no other information is available to select blessings.
DefaultBlessings security.Blessings
// DischargeCache is the cache of discharges.
DischargeCache map[dischargeCacheKey]security.Discharge
// CacheKeyFormat is the dischargeCacheKey format version. It should incremented
// any time the format of the dischargeCacheKey is changed.
CacheKeyFormat uint32
}
func (blessingStoreState) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/lib/security.blessingStoreState"`
}) {
}
type dischargeCacheKey [32]byte
func (dischargeCacheKey) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/lib/security.dischargeCacheKey"`
}) {
}
func init() {
vdl.Register((*blessingRootsState)(nil))
vdl.Register((*blessingStoreState)(nil))
vdl.Register((*dischargeCacheKey)(nil))
}