validate

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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
}

func CreateValidator

func CreateValidator(ctx context.Context, clienset *kubernetes.Clientset, config *rest.Config, namespace, cni string, restartCase bool, os string) (*Validator, error)

func (*Validator) Validate

func (v *Validator) Validate(ctx context.Context) error

func (*Validator) ValidateRestartNetwork

func (v *Validator) ValidateRestartNetwork(ctx context.Context) error

func (*Validator) ValidateStateFile

func (v *Validator) ValidateStateFile(ctx context.Context) error

Jump to

Keyboard shortcuts

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