SealInterface

This commit is contained in:
Jeff Mitchell
2016-04-04 10:44:22 -04:00
parent 3bb3e9165d
commit ab93e3aa63
23 changed files with 1696 additions and 755 deletions

View File

@@ -31,9 +31,13 @@ func (c *Sys) Init(opts *InitRequest) (*InitResponse, error) {
}
type InitRequest struct {
SecretShares int `json:"secret_shares"`
SecretThreshold int `json:"secret_threshold"`
PGPKeys []string `json:"pgp_keys"`
SecretShares int `json:"secret_shares"`
SecretThreshold int `json:"secret_threshold"`
StoredShares int `json:"stored_shares"`
PGPKeys []string `json:"pgp_keys"`
RecoveryShares int `json:"recovery_shares"`
RecoveryThreshold int `json:"recovery_threshold"`
RecoveryPGPKeys []string `json:"recovery_pgp_keys"`
}
type InitStatusResponse struct {
@@ -41,6 +45,7 @@ type InitStatusResponse struct {
}
type InitResponse struct {
Keys []string
RootToken string `json:"root_token"`
Keys []string
RecoveryKeys []string `json:"recovery_keys"`
RootToken string `json:"root_token"`
}