mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-03 20:44:14 -04:00
internal: use config to create attestation validators (#1561)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
2b962598bf
commit
ec01c57661
38 changed files with 649 additions and 274 deletions
26
internal/attestation/idkeydigest/enforcement_string.go
Normal file
26
internal/attestation/idkeydigest/enforcement_string.go
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Code generated by "stringer -type=Enforcement"; DO NOT EDIT.
|
||||
|
||||
package idkeydigest
|
||||
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[Unknown-0]
|
||||
_ = x[Equal-1]
|
||||
_ = x[MAAFallback-2]
|
||||
_ = x[WarnOnly-3]
|
||||
}
|
||||
|
||||
const _Enforcement_name = "UnknownEqualMAAFallbackWarnOnly"
|
||||
|
||||
var _Enforcement_index = [...]uint8{0, 7, 12, 23, 31}
|
||||
|
||||
func (i Enforcement) String() string {
|
||||
if i >= Enforcement(len(_Enforcement_index)-1) {
|
||||
return "Enforcement(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _Enforcement_name[_Enforcement_index[i]:_Enforcement_index[i+1]]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue