mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
SealInterface
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user