Documentation ¶
Overview ¶
Package network contains network validation methods.
Index ¶
- func BuildValidationResult(rule networkRule, validationType string) *types.ValidationRuleResult
- type Option
- type RuleService
- func (n *RuleService) ReconcileDNSRule(rule v1alpha1.DNSRule) *types.ValidationRuleResult
- func (n *RuleService) ReconcileHTTPFileRule(rule v1alpha1.HTTPFileRule) *types.ValidationRuleResult
- func (n *RuleService) ReconcileICMPRule(rule v1alpha1.ICMPRule) *types.ValidationRuleResult
- func (n *RuleService) ReconcileIPRangeRule(rule v1alpha1.IPRangeRule) *types.ValidationRuleResult
- func (n *RuleService) ReconcileMTURule(rule v1alpha1.MTURule) *types.ValidationRuleResult
- func (n *RuleService) ReconcileTCPConnRule(rule v1alpha1.TCPConnRule) *types.ValidationRuleResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildValidationResult ¶
func BuildValidationResult(rule networkRule, validationType string) *types.ValidationRuleResult
BuildValidationResult builds a default ValidationResult for a given validation type.
Types ¶
type Option ¶
type Option func(*RuleService)
Option allows customizing the RuleService.
func WithTLSConfig ¶
WithTLSConfig allows callers to provide a custom TLS config for the RuleService.
func WithTransport ¶
func WithTransport(transport http.RoundTripper) Option
WithTransport allows callers to provide a custom transport for the RuleService's HTTP client.
type RuleService ¶
type RuleService struct {
// contains filtered or unexported fields
}
RuleService is a service for network validation.
func NewRuleService ¶
func NewRuleService(log logr.Logger, opts ...Option) *RuleService
NewRuleService creates a new RuleService.
func (*RuleService) ReconcileDNSRule ¶
func (n *RuleService) ReconcileDNSRule(rule v1alpha1.DNSRule) *types.ValidationRuleResult
ReconcileDNSRule reconciles a DNS rule from a NetworkValidator config.
func (*RuleService) ReconcileHTTPFileRule ¶
func (n *RuleService) ReconcileHTTPFileRule(rule v1alpha1.HTTPFileRule) *types.ValidationRuleResult
ReconcileHTTPFileRule reconciles an HTTP file rule from a NetworkValidator config.
func (*RuleService) ReconcileICMPRule ¶
func (n *RuleService) ReconcileICMPRule(rule v1alpha1.ICMPRule) *types.ValidationRuleResult
ReconcileICMPRule reconciles a ICMP rule from a NetworkValidator config.
func (*RuleService) ReconcileIPRangeRule ¶
func (n *RuleService) ReconcileIPRangeRule(rule v1alpha1.IPRangeRule) *types.ValidationRuleResult
ReconcileIPRangeRule reconciles an IP range rule from a NetworkValidator config.
func (*RuleService) ReconcileMTURule ¶
func (n *RuleService) ReconcileMTURule(rule v1alpha1.MTURule) *types.ValidationRuleResult
ReconcileMTURule reconciles an MTU rule from a NetworkValidator config.
func (*RuleService) ReconcileTCPConnRule ¶
func (n *RuleService) ReconcileTCPConnRule(rule v1alpha1.TCPConnRule) *types.ValidationRuleResult
ReconcileTCPConnRule reconciles a TCP connection rule from a NetworkValidator config.