validators

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Overview

Package validators contains network plugin validators.

Index

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

type NetworkServiceHTTPClientOption func(*http.Client)

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.

Jump to

Keyboard shortcuts

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