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)
}
Click to show internal directories.
Click to hide internal directories.