auth

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AwsWebIdentityTokenFile = "/var/run/secrets/eks.amazonaws.com/serviceaccount/token"

Variables

This section is empty.

Functions

func New

func New(quaytkn, awskeyid, awskey, awsrolearn, awswebidentitytokenfile string, awsecrrolearnbyaccountid bool) session.Attachable

Types

type Provider

type Provider struct {
	QuayIOToken                                                 string
	AccessKeyID, SecretAccessKey, RoleARN, WebIdentityTokenFile string // AWS credentials scoped to ECR only
	ECRRoleArnByAccountID                                       bool
	ECRAuthClientFactoryFunc                                    func(s *awssession.Session, cfg *aws.Config) ecrapi.Client
	// contains filtered or unexported fields
}

func (*Provider) Credentials

func (*Provider) FetchToken

func (*Provider) GetECRAuth

func (p *Provider) GetECRAuth(serverURL string) (string, string, error)

func (*Provider) Register

func (p *Provider) Register(s *grpc.Server)

Jump to

Keyboard shortcuts

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