kubeconfig

package
v1.16.2-pipedrive Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 ContextName

type ContextName string

ContextName represents name of a context.

type Interface

type Interface interface {
	GetCurrentAuthProvider(explicitFilename string, contextName ContextName, userName UserName) (*AuthProvider, error)
	UpdateAuthProvider(auth *AuthProvider) error
}

type Kubeconfig

type Kubeconfig struct {
	Logger logger.Interface
}

func (*Kubeconfig) GetCurrentAuthProvider

func (*Kubeconfig) GetCurrentAuthProvider(explicitFilename string, contextName ContextName, userName UserName) (*AuthProvider, error)

func (*Kubeconfig) UpdateAuthProvider

func (*Kubeconfig) UpdateAuthProvider(p *AuthProvider) error

type UserName

type UserName string

UserName represents name of a user.

Directories

Path Synopsis
Package mock_kubeconfig is a generated GoMock package.
Package mock_kubeconfig is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL