provider

package
v0.0.0-...-1a421e1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsProvider

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

func NewAwsProvider

func NewAwsProvider(setters ...Option) (*AwsProvider, error)

func (*AwsProvider) GetToken

func (p *AwsProvider) GetToken(ctx context.Context, issuer string, subject string) ([]byte, string, error)

type AzureProvider

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

func NewAzureProvider

func NewAzureProvider(setters ...Option) (*AzureProvider, error)

func (*AzureProvider) GetToken

func (p *AzureProvider) GetToken(ctx context.Context, issuer string, subject string) ([]byte, string, error)

type GoogleProvider

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

func NewGoogleProvider

func NewGoogleProvider(setters ...Option) (*GoogleProvider, error)

func (*GoogleProvider) GetToken

func (p *GoogleProvider) GetToken(ctx context.Context, issuer string, subject string) ([]byte, string, error)

type Option

type Option func(*options)

func WithAzureDefaultScope

func WithAzureDefaultScope(opt string) Option

func WithAzureDefaultTenantId

func WithAzureDefaultTenantId(opt string) Option

func WithGetPrivateKeyFn

func WithGetPrivateKeyFn(opt getPrivateKeyFn) Option

func WithGetServiceAccountInfoFn

func WithGetServiceAccountInfoFn(opt getServiceAccountInfoFn) Option

func WithGoogleDefaultPoolId

func WithGoogleDefaultPoolId(opt string) Option

func WithGoogleDefaultProjectNumber

func WithGoogleDefaultProjectNumber(opt string) Option

func WithGoogleDefaultProviderId

func WithGoogleDefaultProviderId(opt string) Option

func WithGoogleDefaultScope

func WithGoogleDefaultScope(opt string) Option

Jump to

Keyboard shortcuts

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