aboutsummaryrefslogtreecommitdiff
path: root/pkg/server/messages.go
blob: a6ea243658b75dabc4903b75e44a2d3d0927df35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package server

import (
	"fmt"
	"time"
)

type MessageNodeSubmission struct {
	SerialNumber string
	NotBefore    time.Time
	DomainNames  []string
	PEMChain     []byte
}

type ErrorUnauthorizedDomainName struct {
	PEMChain []byte
	Node     Node
	Err      error
}

func (e ErrorUnauthorizedDomainName) Error() string {
	return fmt.Sprintf("%v", e.Err)
}