blob: 95e11aa21ebeca77897a54d3ea1439ec55353ec4 [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
"time"
"v.io/v23/security"
_ "v.io/v23/vdlroot/time"
)
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.
// TODO(mattr): This map is deprecated in favor of the Discharges map below.
DischargeCache map[dischargeCacheKey]security.Discharge
// DischargeCache is the cache of discharges.
Discharges map[dischargeCacheKey]CachedDischarge
// 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 CachedDischarge struct {
Discharge security.Discharge
// CacheTime is the time at which the discharge was first cached.
CacheTime time.Time
}
func (CachedDischarge) __VDLReflect(struct {
Name string `vdl:"v.io/x/ref/lib/security.CachedDischarge"`
}) {
}
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((*CachedDischarge)(nil))
vdl.Register((*dischargeCacheKey)(nil))
}