Documentation
¶
Overview ¶
Package chartstamptest serves the part of the OCI distribution API that a push and a helm pull use, so a test can run both against the bytes they would write to a real registry, with no daemon and no network. Like a public GHCR package, it reads for anyone and writes only for the credential it was given.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// Username and Password, when set, are what a write has to present.
Username, Password string
// Private makes every read need that credential too, as a package does on
// GHCR until someone makes it public.
Private bool
// contains filtered or unexported fields
}
Registry is an in-memory OCI registry.
func NewRegistry ¶
NewRegistry starts a registry for the length of a test.
func (*Registry) Blobs ¶
Blobs is how many blobs the registry holds, which a test reads to show a refused push wrote nothing.
Click to show internal directories.
Click to hide internal directories.