Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptServerData ¶
type CryptServerData struct { Pass string `schema:"recovery_password"` Serialnum string `schema:"serial"` Hostname string `schema:"macname"` Username string `schema:"username"` }
CryptServerData stores the data to be escrowed cryptserver expects the following form data recovery_password, serial, macname, username see: https://github.com/grahamgilbert/Crypt-Server/blob/master/server/views.py#L442
func (CryptServerData) PostCryptServer ¶
func (data CryptServerData) PostCryptServer(escrowServer CryptServerInfo) (*http.Response, error)
PostCryptServer submits the luks password and machine info to crypt-server
type CryptServerInfo ¶
type CryptServerInfo struct {
Server, URI, Username, Password string
}
CryptServerInfo is used to create an object with info about the escrow server
Click to show internal directories.
Click to hide internal directories.