package
1.2.2
Repository: https://github.com/grafeas/voucher.git
Documentation: pkg.go.dev

# Functions

NewAuth creates a new Auth suitable for testing with.
NewBadTestReference creates a new reference to be used throughout the docker tests.
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.
NewTestImageConfig creates a test image Config for our mock Docker API.
NewTestManifest creates a test manifest for our mock Docker API.
NewTestReference creates a new reference to be used throughout the docker tests.
NewTransport creates a new Transport which wraps the http.Transport.
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.

# Structs

Transport wraps the http.Transport, but overwrites the URL of all requests to point to the same path on the passed hostname.