MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / UpdateKey

Struct UpdateKey

internal/key/key.go:14–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12const RevokedReasonExpired string = "expired"
13
14type 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
36func (uk *UpdateKey) Validate() error {
37 invalid := []string{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected