(k identity.APIKey)
| 32 | } |
| 33 | |
| 34 | func apiKeyView(k identity.APIKey) APIKeyView { |
| 35 | agent := "" |
| 36 | if k.AgentID != nil { |
| 37 | agent = *k.AgentID |
| 38 | } |
| 39 | return APIKeyView{ |
| 40 | ID: k.ID, |
| 41 | Name: k.Name, |
| 42 | KeyPrefix: k.KeyPrefix, |
| 43 | Scope: k.Scope, |
| 44 | Agent: agent, |
| 45 | CreatedAt: k.CreatedAt, |
| 46 | LastUsedAt: k.LastUsedAt, |
| 47 | ExpiresAt: k.ExpiresAt, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | type listAPIKeysOutput struct{ Body Page[APIKeyView] } |
| 52 |
no outgoing calls
no test coverage detected