auth

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func New

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

Types

type Provider

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

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