domain

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package domain contains domain area types/functions for builder hub

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound           = errors.New("not found")
	ErrIncorrectBuilder   = errors.New("incorrect builder")
	ErrInvalidMeasurement = errors.New("no such active measurement found")
)

Functions

func Bytes2Address

func Bytes2Address(b []byte) *common.Address

Types

type Builder

type Builder struct {
	Name      string `json:"name"`
	IPAddress net.IP `json:"ip_address"`
	IsActive  bool   `json:"is_active"`
}

type BuilderServices

type BuilderServices struct {
	TLSCert     string
	ECDSAPubKey *common.Address
	Service     string
}

type BuilderWithServices

type BuilderWithServices struct {
	Builder  Builder
	Services []BuilderServices
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL