Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceCache ¶
func NewServiceCache() *serviceCache
func NewWorkloadCache ¶
func NewWorkloadCache() *cache
Types ¶
type NetworkAddress ¶
type ServiceCache ¶
type ServiceCache interface {
List() []*workloadapi.Service
AddOrUpdateService(svc *workloadapi.Service)
DeleteService(resourceName string)
GetService(resourceName string) *workloadapi.Service
}
type WorkloadCache ¶
type WorkloadCache interface {
GetWorkloadByUid(uid string) *workloadapi.Workload
GetWorkloadByAddr(networkAddress NetworkAddress) *workloadapi.Workload
AddOrUpdateWorkload(workload *workloadapi.Workload)
DeleteWorkload(uid string)
List() []*workloadapi.Workload
}
Click to show internal directories.
Click to hide internal directories.