Documentation ¶
Index ¶
- Variables
- func NewFromClient(client *sts.Client, clusterName string, optFns ...func(*sts.PresignOptions)) oauth2.TokenSource
- func NewFromConfig(cfg aws.Config, clusterName string, optFns ...func(*sts.Options)) oauth2.TokenSource
- func NewFromPresignClient(client *sts.PresignClient, clusterName string) oauth2.TokenSource
- type TokenSource
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEarlyExpiry = 60 * time.Second
DefaultEarlyExpiry is the delta added to expire generated tokens early to account for clock skew.
View Source
var DefaultExpiration = 15 * time.Minute
DefaultExpiration is the default expiration time for a generated EKS token.
Functions ¶
func NewFromClient ¶
func NewFromClient(client *sts.Client, clusterName string, optFns ...func(*sts.PresignOptions)) oauth2.TokenSource
NewFromClient creates a new oauth2.TokenSource from a sts.Client and an EKS cluster name
func NewFromConfig ¶
func NewFromConfig(cfg aws.Config, clusterName string, optFns ...func(*sts.Options)) oauth2.TokenSource
NewFromConfig creates a new oauth2.TokenSource from an aws.Config and an EKS cluster name
func NewFromPresignClient ¶
func NewFromPresignClient(client *sts.PresignClient, clusterName string) oauth2.TokenSource
NewFromPresignClient creates a new oauth2.TokenSource from a sts.PresignClient and an EKS cluster name
Types ¶
type TokenSource ¶
type TokenSource struct { ClusterName string Client *sts.PresignClient }
TokenSource is an oauth2.TokenSource that generates AWS EKS tokens from a sts.PresignClient. NOTE: Generally this should not be used directly, instead use the New* functions...
Click to show internal directories.
Click to hide internal directories.