Documentation
¶
Overview ¶
Package validators contains network plugin validators.
Index ¶
- type NetworkService
- func (n *NetworkService) ReconcileDNSRule(rule v1alpha1.DNSRule) *types.ValidationRuleResult
- func (n *NetworkService) ReconcileHTTPFileRule(rule v1alpha1.HTTPFileRule) *types.ValidationRuleResult
- func (n *NetworkService) ReconcileICMPRule(rule v1alpha1.ICMPRule) *types.ValidationRuleResult
- func (n *NetworkService) ReconcileIPRangeRule(rule v1alpha1.IPRangeRule) *types.ValidationRuleResult
- func (n *NetworkService) ReconcileMTURule(rule v1alpha1.MTURule) *types.ValidationRuleResult
- func (n *NetworkService) ReconcileTCPConnRule(rule v1alpha1.TCPConnRule) *types.ValidationRuleResult
- type NetworkServiceHTTPClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkService ¶
type NetworkService struct {
// contains filtered or unexported fields
}
NetworkService is a service for network validation.
func NewNetworkService ¶
func NewNetworkService(log logr.Logger, opts ...NetworkServiceHTTPClientOption) *NetworkService
NewNetworkService creates a new NetworkService.
func (*NetworkService) ReconcileDNSRule ¶
func (n *NetworkService) ReconcileDNSRule(rule v1alpha1.DNSRule) *types.ValidationRuleResult
ReconcileDNSRule reconciles a DNS rule from a NetworkValidator config.
func (*NetworkService) ReconcileHTTPFileRule ¶ added in v0.0.18
func (n *NetworkService) ReconcileHTTPFileRule(rule v1alpha1.HTTPFileRule) *types.ValidationRuleResult
ReconcileHTTPFileRule reconciles an HTTP file rule from a NetworkValidator config.
func (*NetworkService) ReconcileICMPRule ¶
func (n *NetworkService) ReconcileICMPRule(rule v1alpha1.ICMPRule) *types.ValidationRuleResult
ReconcileICMPRule reconciles a ICMP rule from a NetworkValidator config.
func (*NetworkService) ReconcileIPRangeRule ¶
func (n *NetworkService) ReconcileIPRangeRule(rule v1alpha1.IPRangeRule) *types.ValidationRuleResult
ReconcileIPRangeRule reconciles an IP range rule from a NetworkValidator config.
func (*NetworkService) ReconcileMTURule ¶
func (n *NetworkService) ReconcileMTURule(rule v1alpha1.MTURule) *types.ValidationRuleResult
ReconcileMTURule reconciles an MTU rule from a NetworkValidator config.
func (*NetworkService) ReconcileTCPConnRule ¶
func (n *NetworkService) ReconcileTCPConnRule(rule v1alpha1.TCPConnRule) *types.ValidationRuleResult
ReconcileTCPConnRule reconciles a TCP connection rule from a NetworkValidator config.
type NetworkServiceHTTPClientOption ¶ added in v0.0.18
NetworkServiceHTTPClientOption allows customizing the NetworkService's HTTP client.
func WithTransport ¶ added in v0.0.18
func WithTransport(transport http.RoundTripper) NetworkServiceHTTPClientOption
WithTransport allows callers to optionally provide a custom transport for the HTTP client.