MCPcopy Create free account
hub / github.com/VersusControl/devops-ai-guidelines / APIKeyInfo

Struct APIKeyInfo

02-mcp-for-devops/code/06/pkg/auth/apikey.go:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17type APIKeyInfo struct {
18 ID string `json:"id"`
19 Name string `json:"name"`
20 Permissions []string `json:"permissions"`
21 CreatedAt time.Time `json:"created_at"`
22 ExpiresAt *time.Time `json:"expires_at,omitempty"`
23 LastUsed *time.Time `json:"last_used,omitempty"`
24}
25
26type InMemoryAPIKeyStore struct {
27 keys map[string]*APIKeyInfo

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected