mirror of
https://github.com/int128/kubelogin.git
synced 2026-02-14 16:39:51 +00:00
* Refactor: extract kubeconfig package * Refactor: use pass by value instead of reference
24 lines
1.0 KiB
Go
24 lines
1.0 KiB
Go
package kubeconfig
|
|
|
|
// ContextName represents name of a context.
|
|
type ContextName string
|
|
|
|
// UserName represents name of a user.
|
|
type UserName string
|
|
|
|
// AuthProvider represents the authentication provider,
|
|
// i.e. context, user and auth-provider in a kubeconfig.
|
|
type AuthProvider struct {
|
|
LocationOfOrigin string // Path to the kubeconfig file which contains the user
|
|
UserName UserName // User name
|
|
ContextName ContextName // (optional) Context name
|
|
IDPIssuerURL string // idp-issuer-url
|
|
ClientID string // client-id
|
|
ClientSecret string // (optional) client-secret
|
|
IDPCertificateAuthority string // (optional) idp-certificate-authority
|
|
IDPCertificateAuthorityData string // (optional) idp-certificate-authority-data
|
|
ExtraScopes []string // (optional) extra-scopes
|
|
IDToken string // (optional) id-token
|
|
RefreshToken string // (optional) refresh-token
|
|
}
|