validate

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 10 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 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 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 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
}

Jump to

Keyboard shortcuts

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