Documentation
¶
Index ¶
- func AWSGetClusters(accessKeyId, secretAccessKey, region string) (string, error)
- func AWSGetToken(accessKeyId, secretAccessKey, region, clusterID string) (string, error)
- func AzureGetClusters(subscriptionID, clientID, clientSecret, tenantID, resourceGroupName string, ...) (string, error)
- func Do(method, url, body, certificateAuthorityData, clientCertificateData, ... string, ...) (string, error)
- func OIDCGetAccessToken(discoveryURL, clientID, clientSecret, redirectURL, refreshToken string) (string, error)
- func OIDCGetLink(discoveryURL, clientID, clientSecret, redirectURL string) (string, error)
- func OIDCGetRefreshToken(discoveryURL, clientID, clientSecret, redirectURL, code string) (string, error)
- type APIError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSGetClusters ¶
AWSGetClusters returns all EKS clusters from AWS.
func AWSGetToken ¶
AWSGetToken returns a bearer token for Kubernetes API requests. See: https://github.com/kubernetes-sigs/aws-iam-authenticator/blob/7547c74e660f8d34d9980f2c69aa008eed1f48d0/pkg/token/token.go#L310
func AzureGetClusters ¶
func AzureGetClusters(subscriptionID, clientID, clientSecret, tenantID, resourceGroupName string, admin bool) (string, error)
AzureGetClusters return all Kubeconfigs for all AKS clusters for the provided subscription and resource group.
func Do ¶
func Do(method, url, body, certificateAuthorityData, clientCertificateData, clientKeyData, token, username, password string, insecureSkipTLSVerify bool, timeout int64) (string, error)
Do runs the given HTTP request.
func OIDCGetAccessToken ¶
func OIDCGetAccessToken(discoveryURL, clientID, clientSecret, redirectURL, refreshToken string) (string, error)
OIDCGetAccessToken is used to retrieve an access token from a refresh token.
func OIDCGetLink ¶
OIDCGetLink returns the link for the configured OIDC provider. The Link can then be used by the user to login.
func OIDCGetRefreshToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.