network

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package network contains network validation methods.

Index

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

func WithTLSConfig(tlsConfig *tls.Config) Option

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL