vendor: Bump cAdvisor to v0.45.0

Signed-off-by: David Porter <david@porter.me>
This commit is contained in:
David Porter
2022-08-02 13:53:04 -07:00
parent 1a916f278b
commit d9fda8ab3b
37 changed files with 618 additions and 177 deletions

View File

@@ -96,6 +96,9 @@ func (c *Client) Stats(name string, request *v2.RequestOptions) (map[string]v2.C
"count": []string{strconv.Itoa(request.Count)},
"recursive": []string{strconv.FormatBool(request.Recursive)},
}
if request.MaxAge != nil {
data.Set("max_age", request.MaxAge.String())
}
u = fmt.Sprintf("%s?%s", u, data.Encode())
if err := c.httpGetJSONData(&ret, nil, u, "stats"); err != nil {