// Verb is the kube verb associated with the request, not the http verb. This includes things like list and watch.
Verbstring
APIPrefixstring
APIGroupstring
APIVersionstring
Namespacestring
// Resource is the name of the resource being requested. This is not the kind. For example: pods
...
...
@@ -415,66 +417,68 @@ type APIRequestInfo struct {
}
typeAPIRequestInfoResolverstruct{
APIPrefixessets.String
RestMappermeta.RESTMapper
APIPrefixessets.String
GrouplessAPIPrefixessets.String
RestMappermeta.RESTMapper
}
// 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