- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for prefixFromUserAgent (0.21 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go
func managerOrUserAgent(manager, userAgent string) string { if manager != "" { return manager } return prefixFromUserAgent(userAgent) } // prefixFromUserAgent takes the characters preceding the first /, quote // unprintable character and then trim what's beyond the // FieldManagerMaxLength limit. func prefixFromUserAgent(u string) string { m := strings.Split(u, "/")[0] buf := bytes.NewBuffer(nil) for _, r := range m {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:19:46 UTC 2023 - 10.1K bytes - Viewed (0)