| 6 | ) |
| 7 | |
| 8 | type AuthInfo struct { |
| 9 | Type string `json:"type"` |
| 10 | Identity string `json:"identity"` |
| 11 | Permissions []string `json:"permissions"` |
| 12 | Metadata map[string]interface{} `json:"metadata"` |
| 13 | } |
| 14 | |
| 15 | type Authenticator interface { |
| 16 | Authenticate(ctx context.Context, credentials string) (*AuthInfo, error) |
nothing calls this directly
no outgoing calls
no test coverage detected