cnirpc

package module
v0.0.0-...-146e1bb Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppPod

type AppPod struct {
	Name string
	// NetNsPath references network namespace of the Kubernetes pod
	// inside which the application is running.
	NetNsPath string
}

AppPod is defined only in the Kubernetes mode. It describes Kubernetes Pod under which a given app is running.

type CheckPodConnectionArgs

type CheckPodConnectionArgs struct {
	CommonCNIRPCArgs
}

CheckPodConnectionArgs : arguments for the CheckPodConnection RPC method.

type CheckPodConnectionRetval

type CheckPodConnectionRetval struct {
	CommonCNIRPCRetval
	UsesDHCP bool
}

CheckPodConnectionRetval : type of the value returned by the CheckPodConnection RPC method.

type CommonCNIRPCArgs

type CommonCNIRPCArgs struct {
	Pod AppPod
	// Interface inside the pod.
	PodInterface NetInterfaceWithNs
}

CommonCNIRPCArgs : arguments used for every CNI RPC method (called by eve-bridge, served by zedrouter).

type CommonCNIRPCRetval

type CommonCNIRPCRetval struct {
	AppUUID uuid.UUID
}

CommonCNIRPCRetval : a set of values returned by every CNI RPC method.

type ConnectPodAtL2Args

type ConnectPodAtL2Args struct {
	CommonCNIRPCArgs
}

ConnectPodAtL2Args : arguments for the ConnectPodAtL2 RPC method.

type ConnectPodAtL2Retval

type ConnectPodAtL2Retval struct {
	CommonCNIRPCRetval
	UseDHCP bool
	// Interfaces include the bridge interface and both sides of the VETH connecting
	// pod with the host.
	Interfaces []NetInterfaceWithNs
}

ConnectPodAtL2Retval : type of the value returned by the ConnectPodAtL2 RPC method.

type ConnectPodAtL3Args

type ConnectPodAtL3Args struct {
	CommonCNIRPCArgs
	PodIPAMConfig
}

ConnectPodAtL3Args : arguments for the ConnectPodAtL3 RPC method.

type ConnectPodAtL3Retval

type ConnectPodAtL3Retval struct {
	CommonCNIRPCRetval
}

ConnectPodAtL3Retval : type of the value returned by the ConnectPodAtL3 RPC method.

type DisconnectPodArgs

type DisconnectPodArgs struct {
	CommonCNIRPCArgs
}

DisconnectPodArgs : arguments for the DisconnectPod RPC method.

type DisconnectPodRetval

type DisconnectPodRetval struct {
	CommonCNIRPCRetval
	UsedDHCP bool
}

DisconnectPodRetval : type of the value returned by the DisconnectPod RPC method.

type NetInterfaceWithNs

type NetInterfaceWithNs struct {
	Name      string
	MAC       net.HardwareAddr
	NetNsPath string
}

NetInterfaceWithNs : single network interface (configured by zedrouter for Kube CNI).

type PodDNS

type PodDNS struct {
	Nameservers []string
	Domain      string
	Search      []string
	Options     []string
}

PodDNS : settings for DNS resolver inside a kubernetes pod.

type PodIPAMConfig

type PodIPAMConfig struct {
	IPs    []PodIPAddress
	Routes []PodRoute
	DNS    PodDNS
}

PodIPAMConfig : IP config assigned to Pod by a Kubernetes IPAM plugin.

type PodIPAddress

type PodIPAddress struct {
	Address *net.IPNet
	Gateway net.IP
}

PodIPAddress : ip address assigned to kubernetes pod network interface.

type PodRoute

type PodRoute struct {
	Dst *net.IPNet
	GW  net.IP
}

PodRoute : network IP route configured for kubernetes pod network interface.

Jump to

Keyboard shortcuts

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