Versions in this module Expand all Collapse all v0 v0.3.0 Jun 25, 2025 Changes in this version type Builder + DNSName sql.NullString type BuilderWithCredentials + DNSName sql.NullString v0.2.1 Apr 8, 2025 v0.2.0 Apr 8, 2025 Changes in this version type Builder + Network string type Service + func (s *Service) AddBuilder(ctx context.Context, builder domain.Builder) error + func (s *Service) AddBuilderConfig(ctx context.Context, builderName string, config json.RawMessage) error + func (s *Service) AddMeasurement(ctx context.Context, measurement domain.Measurement, enabled bool) error + func (s *Service) ChangeActiveStatusForBuilder(ctx context.Context, builderName string, isActive bool) error + func (s *Service) ChangeActiveStatusForMeasurement(ctx context.Context, measurementName string, isActive bool) error v0.1.0 Nov 6, 2024 Changes in this version + type ActiveBuilder struct + BuilderID int + ECDSAPubKey []byte + IPAddress pgtype.Inet + Name string + TLSPubKey []byte + type Builder struct + CreatedAt time.Time + DeprecatedAt *time.Time + IPAddress pgtype.Inet + IsActive bool + Name string + UpdatedAt time.Time + type BuilderConfig struct + BuilderName string + Config json.RawMessage + CreatedAt time.Time + ID int + IsActive bool + UpdatedAt time.Time + type BuilderWithCredentials struct + Credentials []ServiceCredential + IPAddress pgtype.Inet + Name string + type Measurement struct + AttestationType string + CreatedAt time.Time + DeprecatedAt *time.Time + ID int + IsActive bool + Measurement json.RawMessage + Name string + UpdatedAt time.Time + type Service struct + DB *sqlx.DB + func NewDatabaseService(dsn string) (*Service, error) + func (s *Service) Close() error + func (s *Service) GetActiveBuildersWithServiceCredentials(ctx context.Context) ([]domain.BuilderWithServices, error) + func (s *Service) GetActiveConfigForBuilder(ctx context.Context, builderName string) (json.RawMessage, error) + func (s *Service) GetActiveMeasurements(ctx context.Context) ([]domain.Measurement, error) + func (s *Service) GetActiveMeasurementsByType(ctx context.Context, attestationType string) ([]domain.Measurement, error) + func (s *Service) GetBuilderByIP(ip net.IP) (*domain.Builder, error) + func (s *Service) LogEvent(ctx context.Context, eventName, builderName, name, attestationType string) error + func (s *Service) RegisterCredentialsForBuilder(ctx context.Context, builderName, service, tlsCert string, ecdsaPubKey []byte, ...) error + type ServiceCredential struct + ECDSAPubKey []byte + Service string + TLSCert sql.NullString + type ServiceCredentialRegistration struct + BuilderName string + CreatedAt time.Time + ECDSAPubKey []byte + ID int + Service string + TLSCert string