Documentation ¶
Index ¶
Constants ¶
View Source
const GetOutput = `` /* 950-byte string literal not displayed */
GetOutput is a sample response to a Get call.
Variables ¶
View Source
var LimitsResult = limits.Limits{ Rate: []limits.Rate{ { Regex: ".*", URI: "*", Limit: []limits.Limit{ { Verb: "GET", NextAvailable: "1970-01-01T00:00:00", Unit: "MINUTE", Value: 10, Remaining: 10, }, { Verb: "POST", NextAvailable: "1970-01-01T00:00:00", Unit: "HOUR", Value: 5, Remaining: 5, }, }, }, { Regex: "changes-since", URI: "changes-since*", Limit: []limits.Limit{ { Verb: "GET", NextAvailable: "1970-01-01T00:00:00", Unit: "MINUTE", Value: 5, Remaining: 5, }, }, }, }, Absolute: limits.Absolute{ MaxTotalVolumes: 40, MaxTotalSnapshots: 40, MaxTotalVolumeGigabytes: 1000, MaxTotalBackups: 10, MaxTotalBackupGigabytes: 1000, TotalVolumesUsed: 1, TotalGigabytesUsed: 100, TotalSnapshotsUsed: 1, TotalBackupsUsed: 1, TotalBackupGigabytesUsed: 50, }, }
LimitsResult is the result of the limits in GetOutput.
Functions ¶
func HandleGetSuccessfully ¶
HandleGetSuccessfully configures the test server to respond to a Get request for a limit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.