func httpDelete(url string) (*http.Response, error) { req, err := http.NewRequest("DELETE", url, nil) if err != nil { return nil, err } client := &http.Client{} return client.Do(req) }
func httpGetWithRV(url string) (*http.Response, error) { req, err := http.NewRequest("GET", url, nil) if err != nil { return nil, err } q := req.URL.Query() // resourceversion is part of a ListOptions q.Add("resourceversion", "0") req.URL.RawQuery = q.Encode() client := &http.Client{} return client.Do(req) }