Documentation
¶
Index ¶
Constants ¶
View Source
const ( DeviceCodeLogin = "devicecode" 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 Options ¶
type Options struct {
LoginMethod string
ClientID string
ClientSecret string
ClientCert string
Username string
Password string
ServerID string
TenantID string
Environment string
IsLegacy bool
TokenCacheDir string
IdentityResourceId string
FederatedTokenFile string
AuthorityHost string
// 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.