Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPublicKey ¶
GetPublicKey marshals a ssh certificate to a string.
Types ¶
type SignRequest ¶
type SignRequest struct { Key string `json:"key"` ValidUntil time.Time `json:"valid_until"` Message string `json:"message"` }
SignRequest represents a signing request sent to the server.
type SignResponse ¶
type SignResponse struct { Status string `json:"status"` // Status will be "ok" or "error". Response string `json:"response"` // Response will contain either the signed certificate or the error message. }
SignResponse is sent by the server.
Click to show internal directories.
Click to hide internal directories.