Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( wire.Struct(new(Kubeconfig), "*"), wire.Bind(new(Interface), new(*Kubeconfig)), )
Set provides an implementation and interface for Kubeconfig.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
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 }
AuthProvider represents the authentication provider, i.e. context, user and auth-provider in a kubeconfig.
type Interface ¶
type Interface interface { GetCurrentAuthProvider(explicitFilename string, contextName ContextName, userName UserName) (*AuthProvider, error) UpdateAuthProvider(auth *AuthProvider) error }
type Kubeconfig ¶
func (*Kubeconfig) GetCurrentAuthProvider ¶
func (*Kubeconfig) GetCurrentAuthProvider(explicitFilename string, contextName ContextName, userName UserName) (*AuthProvider, error)
func (*Kubeconfig) UpdateAuthProvider ¶
func (*Kubeconfig) UpdateAuthProvider(p *AuthProvider) error
Directories ¶
Path | Synopsis |
---|---|
Package mock_kubeconfig is a generated GoMock package.
|
Package mock_kubeconfig is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.