Documentation ¶
Index ¶
Constants ¶
const ( GlobalPullSecretUser = "global-pull-secret-user" GlobalPullSecretPassword = "global-pull-secret-password" GlobalRepo = "global-repo" LocalPullSecretUser1 = "local-secret-user-1" LocalPullSecretPassword1 = "local-secret-password-1" User1Repo = "user-1-repo" LocalPullSecretUser2 = "local-secret-user-2" LocalPullSecretPassword2 = "local-secret-password-2" User2Repo = "user-2-repo" CommonRepo = "common-repo" PublicRepo = "public-repo" )
Variables ¶
This section is empty.
Functions ¶
func ComputeNameByMediaType ¶
ComputeNameByMediaType returns the name of the image given the media type. The name of the image is given by the media type, replacing the "." with "-" and removing the "+...." suffix and "application/" prefix. The tag is given by the indices of the for loops.
func RunRegistry ¶
RunRegistry starts a registry server in a goroutine and returns the url and the caCertBytes It is the only one function that should be called from outside this package to instantiate a registry server
func SeedMockRegistry ¶
Types ¶
type MockImage ¶
type MockImage struct { Architectures sets.Set[string] MediaType string Repository string Name string Tag string // contains filtered or unexported fields }
MockImage is a mock image that can be pushed to a registry. It carries only the information needed for the tests. The final image is either a single architecture image or a manifest list and has no data in the layers. The methods of the MockImage should not be considered for production use and are only meant to facilitate the tests of this operator.
func GetMockImages ¶
func GetMockImages() []MockImage
GetMockImages returns a list of mock images. In particular, it generates a list of images for each MediaType and available repository. For List types, it generates both a list of images with multiple architectures and a list of images with a single architecture.
Directories ¶
Path | Synopsis |
---|---|
auth
|
|
htpasswd
Package htpasswd provides a simple authentication scheme that checks for the user credential hash in an htpasswd formatted file in a configuration-determined location.
|
Package htpasswd provides a simple authentication scheme that checks for the user credential hash in an htpasswd formatted file in a configuration-determined location. |