Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterfaceCacheFactory ¶
func NewInterfaceCacheFactory() *interfaceCacheFactory
func NewInterfaceCacheFactoryWithBasePath ¶ added in v0.44.1
func NewInterfaceCacheFactoryWithBasePath(rootPath string) *interfaceCacheFactory
Types ¶
type DHCPConfig ¶ added in v0.43.0
type DHCPConfig struct {
Name string
IP netlink.Addr
IPv6 netlink.Addr
MAC net.HardwareAddr
AdvertisingIPAddr net.IP
AdvertisingIPv6Addr net.IP
Routes *[]netlink.Route
Mtu uint16
IPAMDisabled bool
Gateway net.IP
}
type DHCPConfigStore ¶ added in v0.43.0
type DHCPConfigStore interface {
Read(ifaceName string) (*DHCPConfig, error)
Write(ifaceName string, cacheInterface *DHCPConfig) error
}
type DomainInterfaceStore ¶
type DomainInterfaceStore interface {
Read(ifaceName string) (*api.Interface, error)
Write(ifaceName string, cacheInterface *api.Interface) error
}
type InterfaceCacheFactory ¶
type InterfaceCacheFactory interface {
CacheForVMI(vmi *v1.VirtualMachineInstance) PodInterfaceCacheStore
CacheDomainInterfaceForPID(pid string) DomainInterfaceStore
CacheDHCPConfigForPid(pid string) DHCPConfigStore
}
type PodCacheInterface ¶
type PodCacheInterface struct {
Iface *v1.Interface `json:"iface,omitempty"`
PodIP string `json:"podIP,omitempty"`
PodIPs []string `json:"podIPs,omitempty"`
State PodIfaceState `json:"networkState,omitempty"`
}
type PodIfaceState ¶ added in v0.44.1
type PodIfaceState int
const (
PodIfaceNetworkPreparationPending PodIfaceState = iota
PodIfaceNetworkPreparationStarted
PodIfaceNetworkPreparationFinished
)
type PodInterfaceCacheStore ¶
type PodInterfaceCacheStore interface {
Read(ifaceName string) (*PodCacheInterface, error)
Write(ifaceName string, cacheInterface *PodCacheInterface) error
Remove() error
}
Click to show internal directories.
Click to hide internal directories.