Documentation
¶
Index ¶
- Constants
- type Address
- type AddressPool
- type AddressRecord
- type AddressSpace
- type AddressSpaces
- type AzureCniState
- type AzureVnet
- type AzureVnetEndpointInfo
- type AzureVnetInfo
- type AzureVnetIpam
- type AzureVnetNetwork
- type AzureVnetNetworkInfo
- type CNSLocalCache
- type CiliumEndpointStatus
- type CnsManagedState
- type Endpoint
- type ExternalInterface
- type HNSEndpoint
- type HNSNetwork
- type InterfaceInfo
- type Network
- type NetworkInfo
- type NetworkingAddressing
- type NetworkingStatus
- type Prefix
- type Subnet
- type Validator
- func (v *Validator) Cleanup(ctx context.Context)
- func (v *Validator) Validate(ctx context.Context) error
- func (v *Validator) ValidateDualStackControlPlane(ctx context.Context) error
- func (v *Validator) ValidateStateFile(ctx context.Context) error
- func (v *Validator) ValidateV4OverlayControlPlane(ctx context.Context) error
Constants ¶
View Source
const ( IPv4ExpectedIPCount = 1 DualstackExpectedIPCount = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressPool ¶
type AddressPool struct {
Addresses map[string]AddressRecord `json:"Addresses"`
}
type AddressRecord ¶
type AddressSpace ¶
type AddressSpace struct {
Pools map[string]AddressPool `json:"Pools"`
}
type AddressSpaces ¶
type AddressSpaces struct {
AddrSpaces map[string]AddressSpace `json:"AddressSpaces"`
}
type AzureCniState ¶
type AzureCniState struct {
AzureCniState AzureVnetNetwork `json:"Network"`
}
parse azure-vnet.json azure cni manages endpoint state
type AzureVnet ¶
type AzureVnet struct {
NetworkInfo NetworkInfo `json:"Network"`
}
type AzureVnetEndpointInfo ¶
type AzureVnetInfo ¶
type AzureVnetInfo struct {
Name string
Networks map[string]AzureVnetNetworkInfo // key: network name, value: NetworkInfo
}
type AzureVnetIpam ¶
type AzureVnetIpam struct {
IPAM AddressSpaces `json:"IPAM"`
}
type AzureVnetNetwork ¶
type AzureVnetNetwork struct {
Version string `json:"Version"`
TimeStamp string `json:"TimeStamp"`
ExternalInterfaces map[string]InterfaceInfo `json:"ExternalInterfaces"`
}
type AzureVnetNetworkInfo ¶
type CNSLocalCache ¶
type CNSLocalCache struct {
IPConfigurationStatus []cns.IPConfigurationStatus `json:"IPConfigurationStatus"`
}
type CiliumEndpointStatus ¶
type CiliumEndpointStatus struct {
Status NetworkingStatus `json:"status"`
}
type CnsManagedState ¶
type CnsManagedState struct {
Endpoints map[string]restserver.EndpointInfo `json:"Endpoints"`
}
type ExternalInterface ¶
type HNSEndpoint ¶
type HNSNetwork ¶
type InterfaceInfo ¶
type InterfaceInfo struct {
Name string `json:"Name"`
Networks map[string]AzureVnetNetworkInfo `json:"Networks"` // key: networkName, value: AzureVnetNetworkInfo
}
type NetworkInfo ¶
type NetworkInfo struct {
ExternalInterfaces map[string]ExternalInterface `json:"ExternalInterfaces"`
}
type NetworkingAddressing ¶
type NetworkingStatus ¶
type NetworkingStatus struct {
Networking NetworkingAddressing `json:"networking"`
}
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func CreateValidator ¶
func (*Validator) ValidateDualStackControlPlane ¶
func (*Validator) ValidateStateFile ¶
Click to show internal directories.
Click to hide internal directories.