gar

package
v0.0.0-...-1502a4b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceAccountKeyProvider

func NewServiceAccountKeyProvider() credentials.Provider

func NewWorkloadIdentityFederationProvider

func NewWorkloadIdentityFederationProvider(ctx context.Context) credentials.Provider

Types

type ServiceAccountKeyProvider

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

func (*ServiceAccountKeyProvider) GetCredentials

func (p *ServiceAccountKeyProvider) GetCredentials(
	ctx context.Context,
	_ string,
	credType credentials.Type,
	repoURL string,
	data map[string][]byte,
	metadata map[string]string,
) (*credentials.Credentials, error)

func (*ServiceAccountKeyProvider) Supports

func (p *ServiceAccountKeyProvider) Supports(
	credType credentials.Type,
	repoURL string,
	data map[string][]byte,
	_ map[string]string,
) bool

type WorkloadIdentityFederationProvider

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

func (*WorkloadIdentityFederationProvider) GetCredentials

func (p *WorkloadIdentityFederationProvider) GetCredentials(
	ctx context.Context,
	project string,
	credType credentials.Type,
	repoURL string,
	data map[string][]byte,
	meta map[string]string,
) (*credentials.Credentials, error)

func (*WorkloadIdentityFederationProvider) Supports

func (p *WorkloadIdentityFederationProvider) Supports(
	credType credentials.Type,
	repoURL string,
	_ map[string][]byte,
	_ map[string]string,
) bool

Jump to

Keyboard shortcuts

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