ApiKey is the basic of api key management.
| 24 | |
| 25 | // ApiKey is the basic of api key management. |
| 26 | type 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 | |
| 38 | func (apiKey *ApiKey) TableName() string { |
| 39 | return "_devlake_api_keys" |
nothing calls this directly
no outgoing calls
no test coverage detected