acr

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, jsonSpec *apiextensions.JSON, crClient client.Client, namespace string) (map[string][]byte, error)

Generate generates a token that can be used to authenticate against Azure Container Registry. First, an Azure Active Directory access token is obtained with the desired authentication method. This AAD access token will be used to authenticate against ACR. Depending on the generator spec it generates an ACR access token or an ACR refresh token. * access tokens are scoped to a specific repository or action (pull,push) * refresh tokens can are scoped to whatever policy is attached to the identity that creates the acr refresh token details can be found here: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md#overview

type TokenGetter

type TokenGetter interface {
	GetToken(ctx context.Context, opts policy.TokenRequestOptions) (azcore.AccessToken, error)
}

Jump to

Keyboard shortcuts

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