- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for shouldCache (0.14 sec)
-
pkg/credentialprovider/provider.go
// for a pre-specified lifetime. type CachingDockerConfigProvider struct { Provider DockerConfigProvider Lifetime time.Duration // ShouldCache is an optional function that returns true if the specific config should be cached. // If nil, all configs are treated as cacheable. ShouldCache func(DockerConfig) bool // cache fields cacheDockerConfig DockerConfig expiration time.Time mu sync.Mutex }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 00:08:54 UTC 2021 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go
} return subjectAccessReview, statusCode, err } // shouldCache determines whether it is safe to cache the given request attributes. If the // requester-controlled attributes are too large, this may be a DoS attempt, so we skip the cache. func shouldCache(attr authorizer.Attributes) bool { controlledAttrSize := int64(len(attr.GetNamespace())) + int64(len(attr.GetVerb())) +
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:01:15 UTC 2024 - 18.4K bytes - Viewed (0)