Skip to content

Commit d6281e9

Browse files
Wilson Husink8s-publishing-bot
Wilson Husin
authored andcommitted
Fix golint failures in client-go/transport
Signed-off-by: Wilson Husin <[email protected]> Kubernetes-commit: 889ffb04d03e49cdbb481b86ea233d0aa3143db6
1 parent 30548ac commit d6281e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

transport/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (c *Config) HasCertAuth() bool {
108108
return (len(c.TLS.CertData) != 0 || len(c.TLS.CertFile) != 0) && (len(c.TLS.KeyData) != 0 || len(c.TLS.KeyFile) != 0)
109109
}
110110

111-
// HasCertCallbacks returns whether the configuration has certificate callback or not.
111+
// HasCertCallback returns whether the configuration has certificate callback or not.
112112
func (c *Config) HasCertCallback() bool {
113113
return c.TLS.GetCert != nil
114114
}

transport/round_trippers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ type userAgentRoundTripper struct {
146146
rt http.RoundTripper
147147
}
148148

149+
// NewUserAgentRoundTripper will add User-Agent header to a request unless it has already been set.
149150
func NewUserAgentRoundTripper(agent string, rt http.RoundTripper) http.RoundTripper {
150151
return &userAgentRoundTripper{agent, rt}
151152
}
@@ -260,7 +261,7 @@ func NewBearerAuthRoundTripper(bearer string, rt http.RoundTripper) http.RoundTr
260261
return &bearerAuthRoundTripper{bearer, nil, rt}
261262
}
262263

263-
// NewBearerAuthRoundTripper adds the provided bearer token to a request
264+
// NewBearerAuthWithRefreshRoundTripper adds the provided bearer token to a request
264265
// unless the authorization header has already been set.
265266
// If tokenFile is non-empty, it is periodically read,
266267
// and the last successfully read content is used as the bearer token.

0 commit comments

Comments
 (0)