-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
59 lines (52 loc) · 2.13 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package main
import "time"
type VaultHealth struct {
Initialized bool `json:"initialized"`
Sealed bool `json:"sealed"`
Standby bool `json:"standby"`
PerformanceStandby bool `json:"performance_standby"`
ReplicationPerformanceMode string `json:"replication_performance_mode"`
ReplicationDRMode string `json:"replication_dr_mode"`
ServerTimeUTC int64 `json:"server_time_utc"`
Version string `json:"version"`
Enterprise bool `json:"enterprise"`
ClusterName string `json:"cluster_name"`
ClusterID string `json:"cluster_id"`
EchoDurationMs int64 `json:"echo_duration_ms"`
ClockSkewMs int64 `json:"clock_skew_ms"`
}
type VaultRekeyProcess struct {
Nonce string `json:"nonce"`
Started bool `json:"started"`
T int64 `json:"t"`
N int64 `json:"n"`
Progress int64 `json:"progress"`
Required int64 `json:"required"`
PGPFingerprints any `json:"pgp_fingerprints"`
Backup bool `json:"backup"`
VerificationRequired bool `json:"verification_required"`
}
type VaultRekeyUpdatedResponse struct {
Nonce string `json:"nonce"`
Complete bool `json:"complete"`
Keys []string `json:"keys"`
KeysBase64 []string `json:"keys_base64"`
PGPFingerprints any `json:"pgp_fingerprints"`
Backup bool `json:"backup"`
VerificationRequired bool `json:"verification_required"`
}
type VaultRekeyStatus struct {
Nonce string `json:"nonce"`
Started bool `json:"started"`
T int64 `json:"t"`
N int64 `json:"n"`
Progress int64 `json:"progress"`
Required int64 `json:"required"`
Complete bool `json:"complete"`
VerificationRequired bool `json:"verification_required"`
}
type TelegramUserDetails struct {
UserName string
LastUpdated time.Time
}
var rekeyNonce string