Documentation ¶
Index ¶
- func NewProvider(opts ProviderOptions) serviceaccounttokens.Provider
- type Provider
- func (p *Provider) GetGoogleAccessToken(ctx context.Context, saToken string, googleEmail *string) (string, time.Time, error)
- func (p *Provider) GetGoogleIdentityToken(ctx context.Context, saToken, googleEmail, audience string) (string, time.Time, error)
- func (p *Provider) GetServiceAccountToken(ctx context.Context, ref *serviceaccounts.Reference) (string, time.Time, error)
- type ProviderOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(opts ProviderOptions) serviceaccounttokens.Provider
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) GetGoogleAccessToken ¶
func (*Provider) GetGoogleIdentityToken ¶
type ProviderOptions ¶
type ProviderOptions struct { GoogleCredentialsConfig *googlecredentials.Config KubeClient *kubernetes.Clientset }
Click to show internal directories.
Click to hide internal directories.