package disablecompression
import "k8s.io/apiserver/pkg/util/disablecompression"
Index ¶
Types ¶
type ClientIPPredicate ¶
type ClientIPPredicate struct {
// contains filtered or unexported fields
}
ClientIPPredicate.Predicate implements CompressionDisabledFunc interface that decides based on client IP.
func NewClientIPPredicate ¶
func NewClientIPPredicate(cidrStrings []string) (*ClientIPPredicate, error)
NewClientIPPredicate creates a new ClientIPPredicate instance.
func (*ClientIPPredicate) Predicate ¶
func (c *ClientIPPredicate) Predicate(req *http.Request) (bool, error)
Predicate checks if ClientIP matches any cidr.
Source Files ¶
disablecompression.go
- Version
- v0.25.0-rc.1
- Published
- Aug 17, 2022
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 minutes ago –
Tools for package owners.