Documentation
¶
Overview ¶
Package domain contains domain area types/functions for builder hub
Index ¶
Constants ¶
View Source
const EventGetConfig = "GetConfig"
View Source
const ProductionNetwork = "production"
Variables ¶
Functions ¶
func Bytes2Address ¶
Types ¶
type BuilderServices ¶
type BuilderWithServices ¶
type BuilderWithServices struct {
Builder Builder
Services []BuilderServices
}
type InmemorySecretService ¶ added in v0.2.0
type InmemorySecretService struct {
// contains filtered or unexported fields
}
func NewMockSecretService ¶ added in v0.2.0
func NewMockSecretService() *InmemorySecretService
func (*InmemorySecretService) GetSecretValues ¶ added in v0.2.0
func (mss *InmemorySecretService) GetSecretValues(builderName string) (json.RawMessage, error)
func (*InmemorySecretService) SetSecretValues ¶ added in v0.2.0
func (mss *InmemorySecretService) SetSecretValues(builderName string, values json.RawMessage) error
type Measurement ¶
type Measurement struct {
Name string
AttestationType string
Measurement map[string]SingleMeasurement
}
func NewMeasurement ¶
func NewMeasurement(name, attestationType string, measurements map[string]SingleMeasurement) *Measurement
type SingleMeasurement ¶
type SingleMeasurement struct {
Expected string `json:"expected,omitempty"`
ExpectedAny []string `json:"expected_any,omitempty"`
}
SingleMeasurement represents a single measurement with one or more expected values. Use Expected for a single value, or ExpectedAny for multiple values with OR semantics.
func (SingleMeasurement) GetExpectedValues ¶ added in v0.4.0
func (s SingleMeasurement) GetExpectedValues() []string
GetExpectedValues returns the list of expected values. If ExpectedAny is set, it returns those values. Otherwise, it returns Expected as a single-element slice.
Click to show internal directories.
Click to hide internal directories.