You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lots to do here; too many wrappers everywhere, which may become easier
when content trust is removed (which adds another level of abstraction)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
// TODO(thaJeztah): get rid of this trust.ImageRefAndAuth monstrosity; we're wrapping wrappers around wrappers; all we need here is the image ref (or even less: the registry name)
// NewAuthRequester returns a RequestPrivilegeFunc for the specified registry
39
+
// and the given cmdName (used as informational message to the user).
40
+
//
41
+
// The returned function is a [registrytypes.RequestAuthConfig] to prompt the user
42
+
// for credentials if needed. It is called as fallback if the credentials (if any)
43
+
// used for the initial operation did not work.
44
+
//
45
+
// TODO(thaJeztah): cli Cli could be a Streams if it was not for cli.SetIn to be needed?
46
+
// TODO(thaJeztah): ideally, this would accept reposName / imageRef as a regular string (we can parse it if needed!), or .. maybe generics and accept either?
0 commit comments