mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-21 23:32:48 +00:00
23 lines
522 B
Go
23 lines
522 B
Go
// Package credentialplugin provides models for the credential plugin.
|
|
package credentialplugin
|
|
|
|
import "time"
|
|
|
|
// TokenCacheKey represents a key of a token cache.
|
|
type TokenCacheKey struct {
|
|
IssuerURL string
|
|
ClientID string
|
|
}
|
|
|
|
// TokenCache represents a token cache.
|
|
type TokenCache struct {
|
|
IDToken string `json:"id_token,omitempty"`
|
|
RefreshToken string `json:"refresh_token,omitempty"`
|
|
}
|
|
|
|
// Output represents an output object of the credential plugin.
|
|
type Output struct {
|
|
Token string
|
|
Expiry time.Time
|
|
}
|