# Functions
NewAuth creates a new Auth suitable for testing with.
NewBadTestReference creates a new reference to be used throughout the docker tests.
NewNobodyBadTestReference creates a new reference to be used for the nobody check.
NewPGPSigner creates a new signer using the test key in the testdata directory.
NewPrivateKey creates a private key that can be used to sign Docker manifests.
NewRateLimitedTestReference creates a new reference to be used to test the handling of Rate Limited docker calls.
NewScanner creates a new Scanner suitable for testing with.
NewTestClairServer creates a mock of Clair with a list of pre-defined clair vulnerabilities.
NewTestDockerServer creates a new mock of the Docker registry.
NewTestManifest creates a test schema2 manifest for our mock Docker API.
NewTestNobodyImageConfig creates a test Image Config with user as nobodoy for our mock Docker API.
NewTestReference creates a new reference to be used throughout the docker tests.
NewTestRootImageConfig creates a test Image Config with user as root for our mock Docker API.
NewTestRootManifest creates a test schema2 manifest for our mock Docker API, which points to an image whose user is configured to be root.
NewTestSchema1Manifest creates a test schema1 manifest for our mock Docker API.
NewTestSchema1Reference creates a new schema version 1 reference to be used throughout the docker tests.
NewTestSchema1SignedManifest creates a test schema1 manifest, and signs it with the passed private key, for use with our mock Docker API.
NewTestSchema1SignedReference creates a new schema version 1 reference to be used throughout the docker tests.
NewTransport creates a new Transport which wraps the http.Transport.
PrepareDockerTest creates a new http.Client and httptest.Server for testing with.
UpdateClient updates the passed http.Client's Transport to support the passed httptest.Server's server certificate, and to set a new Transport which will override the request's hostname with the testing server's hostname.
# Constants
RateLimitOutput is the data that is returned when we similuate a Docker registry call that has been rate limited.