Documentation ¶
Index ¶
- func New(quaytkn, awskeyid, awskey string) session.Attachable
- type Provider
- func (p *Provider) Credentials(ctx context.Context, req *bkauth.CredentialsRequest) (*bkauth.CredentialsResponse, error)
- func (p *Provider) FetchToken(ctx context.Context, req *bkauth.FetchTokenRequest) (*bkauth.FetchTokenResponse, error)
- func (p *Provider) GetECRAuth(serverURL string) (string, string, error)
- func (p *Provider) GetTokenAuthority(ctx context.Context, req *bkauth.GetTokenAuthorityRequest) (*bkauth.GetTokenAuthorityResponse, error)
- func (p *Provider) Register(s *grpc.Server)
- func (p *Provider) VerifyTokenAuthority(ctx context.Context, req *bkauth.VerifyTokenAuthorityRequest) (*bkauth.VerifyTokenAuthorityResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(quaytkn, awskeyid, awskey string) session.Attachable
Types ¶
type Provider ¶
type Provider struct { QuayIOToken string AccessKeyID, SecretAccessKey string // AWS credentials scoped to ECR only ECRAuthClientFactoryFunc func(s *awssession.Session, cfg *aws.Config) ecrapi.Client // contains filtered or unexported fields }
func (*Provider) Credentials ¶
func (p *Provider) Credentials(ctx context.Context, req *bkauth.CredentialsRequest) (*bkauth.CredentialsResponse, error)
func (*Provider) FetchToken ¶
func (p *Provider) FetchToken(ctx context.Context, req *bkauth.FetchTokenRequest) (*bkauth.FetchTokenResponse, error)
func (*Provider) GetECRAuth ¶
func (*Provider) GetTokenAuthority ¶
func (p *Provider) GetTokenAuthority(ctx context.Context, req *bkauth.GetTokenAuthorityRequest) (*bkauth.GetTokenAuthorityResponse, error)
func (*Provider) VerifyTokenAuthority ¶
func (p *Provider) VerifyTokenAuthority(ctx context.Context, req *bkauth.VerifyTokenAuthorityRequest) (*bkauth.VerifyTokenAuthorityResponse, error)
Click to show internal directories.
Click to hide internal directories.