Documentation ¶
Overview ¶
Package reqresp is used to create mock web servers for testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseEntries = []ReqResp{ { ReqEntry: ReqEntry{ Method: "GET", Path: "/v2/", }, RespEntry: RespEntry{ Status: http.StatusOK, Headers: http.Header(map[string][]string{ "Docker-Distribution-API-Version": {"registry/2.0"}, }), }, }, }
BaseEntries initial entries for a generic docker registry
Functions ¶
func NewRandomBlob ¶
NewRandomBlob outputs a reproducible random blob (based on the seed) for testing
func NewRandomID ¶ added in v0.6.0
NewRandomID outputs a reproducible random ID (based on the seed) appropriate for blob upload URLs.
Types ¶
Click to show internal directories.
Click to hide internal directories.