validators

package
v0.0.21 Latest Latest
Warning

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

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

Documentation

Overview

Package validators contains network plugin validators.

Index

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

func WithTLSConfig(tlsConfig *tls.Config) Option

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.

Jump to

Keyboard shortcuts

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