aboutsummaryrefslogtreecommitdiff
path: root/lib/const.go
blob: fd771a06bba037d2ae09bdb150364fd6f4b5735d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package lib

import "time"

// SignRequest represents a signing request sent to the server.
type SignRequest struct {
	Key        string    `json:"key"`
	Principal  string    `json:"principal"`
	ValidUntil time.Time `json:"valid_until"`
}

// SignResponse is sent by the server.
// `Status' is "ok" or "error".
// `Response' contains a signed certificate or an error message.
type SignResponse struct {
	Status   string `json:"status"`
	Response string `json:"response"`
}