storage

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 16 Imported by: 0

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()
}

Jump to

Keyboard shortcuts

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