Documentation ¶
Index ¶
Constants ¶
View Source
const ( TopologyAnnotationsKey = "topologyKeys" EdgeLocalEndpoint = "superedge.io/local-endpoint" EdgeLocalPort = "superedge.io/local-port" MasterEndpointName = "kubernetes" )
Variables ¶
This section is empty.
Functions ¶
func NewStorageCache ¶
func NewStorageCache(hostName string, wrapperInCluster, serviceAutonomyEnhancementEnabled bool, serviceBroadcaster, endpointSliceV1Broadcaster, endpointSliceV1Beta1Broadcaster, endpointBroadcaster, nodeBroadcaster *watch.Broadcaster, supportEndpointSlice bool) *storageCache
Types ¶
type Cache ¶
type Cache interface { CacheList CacheEventHandler LocalNodeInfoHandler GetNodeName() string }
type CacheEventHandler ¶
type CacheEventHandler interface { NodeEventHandler() cache.ResourceEventHandler ServiceEventHandler() cache.ResourceEventHandler EndpointsEventHandler() cache.ResourceEventHandler EndpointSliceV1EventHandler() cache.ResourceEventHandler EndpointSliceV1Beta1EventHandler() cache.ResourceEventHandler }
type CacheList ¶
type CacheList interface { GetNode(hostName string) *v1.Node GetServices() []*v1.Service GetEndpoints() []*v1.Endpoints GetEndpointSliceV1() []*discoveryv1.EndpointSlice GetEndpointSliceV1Beta1() []*discoveryv1beta1.EndpointSlice }
type LocalNodeInfoHandler ¶ added in v0.3.0
type LocalNodeInfoHandler interface { GetLocalNodeInfo() map[string]data.ResultDetail SetLocalNodeInfo(map[string]data.ResultDetail) ClearLocalNodeInfo() }
Click to show internal directories.
Click to hide internal directories.