Documentation
¶
Index ¶
Constants ¶
View Source
const ( DeviceCodeLogin = "devicecode" InteractiveLogin = "interactive" ServicePrincipalLogin = "spn" ROPCLogin = "ropc" MSILogin = "msi" AzureCLILogin = "azurecli" WorkloadIdentityLogin = "workloadidentity" )
Variables ¶
View Source
var (
DefaultTokenCacheDir = homedir.HomeDir() + "/.kube/cache/kubelogin/"
)
Functions ¶
func GetSupportedLogins ¶
func GetSupportedLogins() string
Types ¶
type AzureCLIToken ¶ added in v0.0.9
type AzureCLIToken struct {
// contains filtered or unexported fields
}
type ExecCredentialPlugin ¶
type ExecCredentialPlugin interface {
Do() error
}
func New ¶
func New(o *Options) (ExecCredentialPlugin, error)
type ExecCredentialWriter ¶
type InteractiveToken ¶ added in v0.0.21
type InteractiveToken struct {
// contains filtered or unexported fields
}
type Options ¶
type Options struct {
LoginMethod string
ClientID string
ClientSecret string
ClientCert string
ClientCertPassword string
Username string
Password string
ServerID string
TenantID string
Environment string
IsLegacy bool
TokenCacheDir string
IdentityResourceId string
FederatedTokenFile string
AuthorityHost string
UseAzureRMTerraformEnv bool
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions() Options
func (*Options) UpdateFromEnv ¶
func (o *Options) UpdateFromEnv()
type TokenCache ¶
type TokenProvider ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_token is a generated GoMock package.
|
Package mock_token is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.