Documentation
¶
Overview ¶
Package registryauth carries short-lived registry authorization between Gantry's mirror, peer, coordination, and origin request boundaries.
Index ¶
Constants ¶
View Source
const MaxAuthorizationBytes = 64 * 1024
MaxAuthorizationBytes bounds delegated credentials accepted from containerd or another Gantry peer. Registry credentials are normally a few KiB.
Variables ¶
This section is empty.
Functions ¶
func Authorization ¶
Authorization returns the delegated registry Authorization header in ctx.
func Detach ¶
Detach returns a background context containing only the delegated registry authorization. It is used for bounded work that must outlive the inbound mirror or coordination request without retaining unrelated request values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.