Documentation
¶
Index ¶
- func ReadDomainInterfaceCache(c cacheCreator, pid, ifaceName string) (*api.Interface, error)
- func WriteDHCPInterfaceCache(c cacheCreator, pid, ifaceName string, dhcpConfig *DHCPConfig) error
- func WriteDomainInterfaceCache(c cacheCreator, pid, ifaceName string, domainInterface *api.Interface) error
- func WritePodInterfaceCache(c cacheCreator, uid, ifaceName string, cacheInterface *PodIfaceCacheData) error
- type Cache
- type CacheCreator
- type DHCPConfig
- type DHCPInterfaceCache
- type DomainInterfaceCache
- type PodIfaceCacheData
- type PodIfaceState
- type PodInterfaceCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadDomainInterfaceCache ¶ added in v0.50.0
func ReadDomainInterfaceCache(c cacheCreator, pid, ifaceName string) (*api.Interface, error)
func WriteDHCPInterfaceCache ¶ added in v0.50.0
func WriteDHCPInterfaceCache(c cacheCreator, pid, ifaceName string, dhcpConfig *DHCPConfig) error
func WriteDomainInterfaceCache ¶ added in v0.50.0
func WriteDomainInterfaceCache(c cacheCreator, pid, ifaceName string, domainInterface *api.Interface) error
func WritePodInterfaceCache ¶ added in v0.50.0
func WritePodInterfaceCache(c cacheCreator, uid, ifaceName string, cacheInterface *PodIfaceCacheData) error
Types ¶
type Cache ¶ added in v0.50.0
type Cache struct {
// contains filtered or unexported fields
}
func NewCustomCache ¶ added in v0.50.0
func NewCustomCache(path string, fs cacheFS) *Cache
type CacheCreator ¶ added in v0.50.0
type CacheCreator struct{}
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
Subdomain string
}
func ReadDHCPInterfaceCache ¶ added in v0.50.0
func ReadDHCPInterfaceCache(c cacheCreator, pid, ifaceName string) (*DHCPConfig, error)
type DHCPInterfaceCache ¶ added in v0.50.0
type DHCPInterfaceCache struct {
// contains filtered or unexported fields
}
func NewDHCPInterfaceCache ¶ added in v0.50.0
func NewDHCPInterfaceCache(creator cacheCreator, pid string) DHCPInterfaceCache
func (DHCPInterfaceCache) IfaceEntry ¶ added in v0.50.0
func (d DHCPInterfaceCache) IfaceEntry(ifaceName string) (DHCPInterfaceCache, error)
type DomainInterfaceCache ¶ added in v0.50.0
type DomainInterfaceCache struct {
// contains filtered or unexported fields
}
func NewDomainInterfaceCache ¶ added in v0.50.0
func NewDomainInterfaceCache(creator cacheCreator, pid string) DomainInterfaceCache
func (DomainInterfaceCache) IfaceEntry ¶ added in v0.50.0
func (d DomainInterfaceCache) IfaceEntry(ifaceName string) (DomainInterfaceCache, error)
type PodIfaceCacheData ¶ added in v0.50.0
type PodIfaceCacheData struct {
Iface *v1.Interface `json:"iface,omitempty"`
PodIP string `json:"podIP,omitempty"`
PodIPs []string `json:"podIPs,omitempty"`
State PodIfaceState `json:"networkState,omitempty"`
}
func ReadPodInterfaceCache ¶ added in v0.50.0
func ReadPodInterfaceCache(c cacheCreator, uid, ifaceName string) (*PodIfaceCacheData, error)
type PodIfaceState ¶ added in v0.44.1
type PodIfaceState int
const (
PodIfaceNetworkPreparationPending PodIfaceState = iota
PodIfaceNetworkPreparationStarted
PodIfaceNetworkPreparationFinished
)
type PodInterfaceCache ¶ added in v0.50.0
type PodInterfaceCache struct {
// contains filtered or unexported fields
}
func NewPodInterfaceCache ¶ added in v0.50.0
func NewPodInterfaceCache(creator cacheCreator, uid string) PodInterfaceCache
func (PodInterfaceCache) IfaceEntry ¶ added in v0.50.0
func (p PodInterfaceCache) IfaceEntry(ifaceName string) (PodInterfaceCache, error)
Click to show internal directories.
Click to hide internal directories.