cacheserviceaccounttokens

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 10 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) AddPodServiceAccount added in v0.7.0

func (p *Provider) AddPodServiceAccount(ref *serviceaccounts.Reference)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) DeletePodServiceAccount added in v0.7.0

func (p *Provider) DeletePodServiceAccount(ref *serviceaccounts.Reference)

func (*Provider) DeleteServiceAccount added in v0.7.0

func (p *Provider) DeleteServiceAccount(ref *serviceaccounts.Reference)

func (*Provider) GetGoogleAccessToken

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

func (*Provider) GetGoogleIdentityToken

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

func (*Provider) GetServiceAccountToken

func (p *Provider) GetServiceAccountToken(ctx context.Context, ref *serviceaccounts.Reference) (string, time.Time, error)

func (*Provider) UpdateNodeServiceAccount added in v0.7.0

func (p *Provider) UpdateNodeServiceAccount(ref *serviceaccounts.Reference)

func (*Provider) UpdateServiceAccount

func (p *Provider) UpdateServiceAccount(ref *serviceaccounts.Reference)

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