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