acr

package
v0.19.786 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultACRUsername string = "00000000-0000-0000-0000-000000000000"
)

Variables

This section is empty.

Functions

func GetRepositoryToken

func GetRepositoryToken(ctx context.Context, cfg *credentials.Config, acrService string, logger *zap.Logger) (string, error)

getACRRepositorToken exchanges an Azure credential, and creates a refresh token that can be used to authenticate with the registry. It has a timeout of 60 minutes.

NOTE: we do this, instead of using the ACR repository client to simplify our dependencies, however, at some point we plan on moving this into a package, like we have with `pkg/aws`.

Types

type JWTClaims

type JWTClaims struct {
	Audience   string `json:"aud"`
	Issuer     string `json:"iss"`
	TenantID   string `json:"tid"`
	Subject    string `json:"sub"`
	Expiration int64  `json:"exp"`
}

Jump to

Keyboard shortcuts

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