Documentation ¶
Index ¶
- Constants
- func Htpasswd(c *Config)
- func Schema1(c *Config)
- func Token(tokenURL string) func(*Config)
- func URL(registryURL string) func(*Config)
- type Config
- type Mock
- type V2
- func (r *V2) Close()
- func (r *V2) Email() string
- func (r *V2) Password() string
- func (r *V2) Path() string
- func (r *V2) Ping() error
- func (r *V2) ReadBlobContents(t testing.TB, blobDigest digest.Digest) []byte
- func (r *V2) TempMoveBlobData(t testing.TB, blobDigest digest.Digest) (undo func())
- func (r *V2) Username() string
- func (r *V2) WaitReady(t testing.TB)
- func (r *V2) WriteBlobContents(t testing.TB, blobDigest digest.Digest, data []byte)
Constants ¶
View Source
const ( // V2binary is the name of the registry v2 binary V2binary = "registry-v2" // V2binarySchema1 is the name of the registry that serve schema1 V2binarySchema1 = "registry-v2-schema1" // DefaultURL is the default url that will be used by the registry (if not specified otherwise) DefaultURL = "127.0.0.1:5000" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config contains the test registry configuration
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
Mock represent a registry mock
func (*Mock) RegisterHandler ¶
RegisterHandler register the specified handler for the registry mock
type V2 ¶
type V2 struct {
// contains filtered or unexported fields
}
V2 represent a registry version 2
func (*V2) Ping ¶
Ping sends an http request to the current registry, and fail if it doesn't respond correctly
func (*V2) ReadBlobContents ¶
ReadBlobContents read the file corresponding to the specified digest
func (*V2) TempMoveBlobData ¶
TempMoveBlobData moves the existing data file aside, so that we can replace it with a malicious blob of data for example.
Click to show internal directories.
Click to hide internal directories.