| 12 | const RevokedReasonExpired string = "expired" |
| 13 | |
| 14 | type UpdateKey struct { |
| 15 | Name string `json:"name"` |
| 16 | UpdatedAt int64 `json:"updatedAt"` |
| 17 | Tags []string `json:"tags"` |
| 18 | Revoked *bool `json:"revoked"` |
| 19 | RevokedReason string `json:"revokedReason"` |
| 20 | Key string `json:"key"` |
| 21 | SettingId string `json:"settingId"` |
| 22 | SettingIds []string `json:"settingIds"` |
| 23 | CostLimitInUsd *float64 `json:"costLimitInUsd"` |
| 24 | CostLimitInUsdOverTime *float64 `json:"costLimitInUsdOverTime"` |
| 25 | CostLimitInUsdUnit *TimeUnit `json:"costLimitInUsdUnit"` |
| 26 | RateLimitOverTime *int `json:"rateLimitOverTime"` |
| 27 | RateLimitUnit *TimeUnit `json:"rateLimitUnit"` |
| 28 | AllowedPaths *[]PathConfig `json:"allowedPaths,omitempty"` |
| 29 | ShouldLogRequest *bool `json:"shouldLogRequest"` |
| 30 | ShouldLogResponse *bool `json:"shouldLogResponse"` |
| 31 | RotationEnabled *bool `json:"rotationEnabled"` |
| 32 | PolicyId *string `json:"policyId"` |
| 33 | IsKeyNotHashed *bool `json:"isKeyNotHashed"` |
| 34 | } |
| 35 | |
| 36 | func (uk *UpdateKey) Validate() error { |
| 37 | invalid := []string{} |
nothing calls this directly
no outgoing calls
no test coverage detected