// Verb is the kube verb associated with the request, not the http verb. This includes things like list and watch.
// Verb is the kube verb associated with the request, not the http verb. This includes things like list and watch.
Verbstring
Verbstring
APIPrefixstring
APIGroupstring
APIVersionstring
APIVersionstring
Namespacestring
Namespacestring
// Resource is the name of the resource being requested. This is not the kind. For example: pods
// Resource is the name of the resource being requested. This is not the kind. For example: pods
...
@@ -415,66 +417,68 @@ type APIRequestInfo struct {
...
@@ -415,66 +417,68 @@ type APIRequestInfo struct {
}
}
typeAPIRequestInfoResolverstruct{
typeAPIRequestInfoResolverstruct{
APIPrefixessets.String
APIPrefixessets.String
RestMappermeta.RESTMapper
GrouplessAPIPrefixessets.String
RestMappermeta.RESTMapper
}
}
// TODO write an integration test against the swagger doc to test the APIRequestInfo and match up behavior to responses
// TODO write an integration test against the swagger doc to test the APIRequestInfo and match up behavior to responses
// GetAPIRequestInfo returns the information from the http request. If error is not nil, APIRequestInfo holds the information as best it is known before the failure
// GetAPIRequestInfo returns the information from the http request. If error is not nil, APIRequestInfo holds the information as best it is known before the failure