Documentation
¶
Overview ¶
Package validators contains network plugin validators.
Index ¶
- func BuildValidationResult(rule networkRule, validationType string) *types.ValidationRuleResult
- 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 Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildValidationResult ¶ added in v0.0.19
func BuildValidationResult(rule networkRule, validationType string) *types.ValidationRuleResult
BuildValidationResult builds a default ValidationResult for a given validation type.
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 ...Option) *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 Option ¶ added in v0.0.19
type Option func(*NetworkService)
Option allows customizing the NetworkService.
func WithTLSConfig ¶ added in v0.0.19
WithTLSConfig allows callers to provide a custom TLS config for the NetworkService.
func WithTransport ¶ added in v0.0.18
func WithTransport(transport http.RoundTripper) Option
WithTransport allows callers to provide a custom transport for the NetworkService's HTTP client.