validate

package
v1.4.52 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidatorClient added in v1.4.50

func GetValidatorClient(os string) validatorClient

Func to get the type of validator client based on the Operating system.

Types

type Address

type Address struct {
	Addr string `json:"ipv4"`
}

type AddressPool

type AddressPool struct {
	Addresses map[string]AddressRecord `json:"Addresses"`
}

type AddressRecord

type AddressRecord struct {
	Addr  net.IP
	InUse bool
}

type AddressSpace

type AddressSpace struct {
	Pools map[string]AddressPool `json:"Pools"`
}

type AddressSpaces

type AddressSpaces struct {
	AddrSpaces map[string]AddressSpace `json:"AddressSpaces"`
}

type AzureVnet

type AzureVnet struct {
	NetworkInfo NetworkInfo `json:"Network"`
}

type AzureVnetIpam

type AzureVnetIpam struct {
	IPAM AddressSpaces `json:"IPAM"`
}

type CNSLocalCache

type CNSLocalCache struct {
	IPConfigurationStatus []cns.IPConfigurationStatus `json:"IPConfigurationStatus"`
}

type CiliumEndpointStatus

type CiliumEndpointStatus struct {
	Status NetworkingStatus `json:"status"`
}

type CnsState added in v1.4.50

type CnsState struct {
	Endpoints map[string]restserver.EndpointInfo `json:"Endpoints"`
}

type Endpoint

type Endpoint struct {
	IPAddresses []net.IPNet `json:"IPAddresses"`
	IfName      string      `json:"IfName"`
}

type ExternalInterface

type ExternalInterface struct {
	Networks map[string]Network `json:"Networks"`
}

type HNSEndpoint

type HNSEndpoint struct {
	MacAddress       string `json:"MacAddress"`
	IPAddress        net.IP `json:"IPAddress"`
	IPv6Address      net.IP `json:",omitempty"`
	IsRemoteEndpoint bool   `json:",omitempty"`
}

type IValidator added in v1.4.50

type IValidator interface {
	ValidateStateFile() error
	ValidateRestartNetwork() error
}

Todo: Add the validation for the data path function for the linux/windows client.

type LinuxClient added in v1.4.50

type LinuxClient struct{}

func (*LinuxClient) CreateClient added in v1.4.50

func (l *LinuxClient) CreateClient(ctx context.Context, clienset *kubernetes.Clientset, config *rest.Config, namespace, cni string, restartCase bool) IValidator

type LinuxValidator added in v1.4.50

type LinuxValidator struct {
	Validator
}

func (*LinuxValidator) ValidateRestartNetwork added in v1.4.50

func (v *LinuxValidator) ValidateRestartNetwork() error

func (*LinuxValidator) ValidateStateFile added in v1.4.50

func (v *LinuxValidator) ValidateStateFile() error

Todo: Based on cni version validate different state files

type Network

type Network struct {
	Endpoints map[string]Endpoint `json:"Endpoints"`
}

type NetworkInfo

type NetworkInfo struct {
	ExternalInterfaces map[string]ExternalInterface `json:"ExternalInterfaces"`
}

type NetworkingAddressing

type NetworkingAddressing struct {
	Addresses     []Address `json:"addressing"`
	InterfaceName string    `json:"interface-name"`
}

type NetworkingStatus

type NetworkingStatus struct {
	Networking NetworkingAddressing `json:"networking"`
}

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

type WindowsClient added in v1.4.50

type WindowsClient struct{}

func (*WindowsClient) CreateClient added in v1.4.50

func (w *WindowsClient) CreateClient(ctx context.Context, clienset *kubernetes.Clientset, config *rest.Config, namespace, cni string, restartCase bool) IValidator

type WindowsValidator added in v1.4.50

type WindowsValidator struct {
	Validator
}

func (*WindowsValidator) ValidateRestartNetwork added in v1.4.50

func (v *WindowsValidator) ValidateRestartNetwork() error

func (*WindowsValidator) ValidateStateFile added in v1.4.50

func (v *WindowsValidator) ValidateStateFile() error

Jump to

Keyboard shortcuts

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