From 6c99a9b99de4587d389e34bfe4e2d0ceedc66cf3 Mon Sep 17 00:00:00 2001 From: Michael Kelly Date: Tue, 24 May 2022 14:13:39 -0700 Subject: [PATCH] s/getUrl/getURL golang prefers URL not Url Signed-off-by: Michael Kelly --- storage/kubernetes/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/kubernetes/client.go b/storage/kubernetes/client.go index 6676b0eb..f46a639c 100644 --- a/storage/kubernetes/client.go +++ b/storage/kubernetes/client.go @@ -177,7 +177,7 @@ func (cli *client) get(resource, name string, v interface{}) error { return cli.getResource(cli.apiVersion, cli.namespace, resource, name, v) } -func (cli *client) getUrl(url string, v interface{}) error { +func (cli *client) getURL(url string, v interface{}) error { resp, err := cli.client.Get(url) if err != nil { return err @@ -190,14 +190,14 @@ func (cli *client) getUrl(url string, v interface{}) error { } func (cli *client) getResource(apiVersion, namespace, resource, name string, v interface{}) error { - return cli.getUrl(cli.urlFor(apiVersion, namespace, resource, name), v) + return cli.getURL(cli.urlFor(apiVersion, namespace, resource, name), v) } func (cli *client) listN(resource string, v interface{}, n int) error { params := url.Values{} params.Add("limit", fmt.Sprintf("%d", n)) u := cli.urlForWithParams(cli.apiVersion, cli.namespace, resource, "", params) - return cli.getUrl(u, v) + return cli.getURL(u, v) } func (cli *client) list(resource string, v interface{}) error {