MCPcopy Index your code
hub / github.com/apache/devlake / ApiKey

Struct ApiKey

backend/core/models/api_key.go:26–36  ·  view source on GitHub ↗

ApiKey is the basic of api key management.

Source from the content-addressed store, hash-verified

24
25// ApiKey is the basic of api key management.
26type ApiKey struct {
27 common.Model
28 common.Creator
29 common.Updater
30 Name string `json:"name"`
31 ApiKey string `json:"apiKey,omitempty"`
32 ExpiredAt *time.Time `json:"expiredAt"`
33 AllowedPath string `json:"allowedPath"`
34 Type string `json:"type"`
35 Extra string `json:"extra"`
36}
37
38func (apiKey *ApiKey) TableName() string {
39 return "_devlake_api_keys"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected