cacheserviceaccounttokens

package
v0.4.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(ctx context.Context, opts ProviderOptions) *Provider

func (*Provider) AddPod

func (p *Provider) AddPod(pod *corev1.Pod)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) DeletePod

func (p *Provider) DeletePod(pod *corev1.Pod)

func (*Provider) GetGoogleAccessToken

func (p *Provider) GetGoogleAccessToken(ctx context.Context, saToken, googleEmail string) (string, time.Duration, error)

func (*Provider) GetGoogleIdentityToken

func (p *Provider) GetGoogleIdentityToken(ctx context.Context, saToken, googleEmail, audience string) (string, time.Duration, error)

func (*Provider) GetServiceAccountToken

func (p *Provider) GetServiceAccountToken(ctx context.Context, namespace, name string) (string, time.Duration, error)

func (*Provider) UpdateServiceAccount

func (p *Provider) UpdateServiceAccount(ksa *corev1.ServiceAccount)

type ProviderOptions

type ProviderOptions struct {
	Source           serviceaccounttokens.Provider
	ServiceAccounts  serviceaccounts.Provider
	MetricsSubsystem string
	MetricsRegistry  *prometheus.Registry
	Concurrency      int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL