resolver

package
v1.300032.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const AttributePlatformGeneric = "Generic"
View Source
const IP_PORT_PATTERN = `^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d+)$`

Variables

View Source
var DefaultHostedInAttributes = map[string]string{
	attr.AWSHostedInEnvironment: attr.HostedInEnvironment,
}

Functions

func NewAttributesResolver

func NewAttributesResolver(resolvers []appsignalsconfig.Resolver, logger *zap.Logger) *attributesResolver

create a new attributes resolver

Types

type Deleter

type Deleter interface {
	DeleteWithDelay(m *sync.Map, key interface{})
}

Deleter represents a type that can delete a key from a map after a certain delay.

type PodWatcher

type PodWatcher struct {
	// contains filtered or unexported fields
}

func NewPodWatcher

func NewPodWatcher(logger *zap.Logger, informer cache.SharedIndexInformer, deleter Deleter) *PodWatcher

func (*PodWatcher) Run

func (p *PodWatcher) Run(stopCh chan struct{})

func (*PodWatcher) WaitForCacheSync

func (p *PodWatcher) WaitForCacheSync(stopCh chan struct{})

type ServiceToWorkloadMapper

type ServiceToWorkloadMapper struct {
	// contains filtered or unexported fields
}

func NewServiceToWorkloadMapper

func NewServiceToWorkloadMapper(serviceAndNamespaceToSelectors, workloadAndNamespaceToLabels, serviceToWorkload *sync.Map, logger *zap.Logger, deleter Deleter) *ServiceToWorkloadMapper

func (*ServiceToWorkloadMapper) MapServiceToWorkload

func (m *ServiceToWorkloadMapper) MapServiceToWorkload()

func (*ServiceToWorkloadMapper) Start

func (m *ServiceToWorkloadMapper) Start(stopCh chan struct{})

type ServiceWatcher

type ServiceWatcher struct {
	// contains filtered or unexported fields
}

func NewServiceWatcher

func NewServiceWatcher(logger *zap.Logger, informer cache.SharedIndexInformer, deleter Deleter) *ServiceWatcher

func (*ServiceWatcher) Run

func (s *ServiceWatcher) Run(stopCh chan struct{})

func (*ServiceWatcher) WaitForCacheSync

func (s *ServiceWatcher) WaitForCacheSync(stopCh chan struct{})

type TimedDeleter

type TimedDeleter struct {
	Delay time.Duration
}

TimedDeleter deletes a key after a specified delay.

func (*TimedDeleter) DeleteWithDelay

func (td *TimedDeleter) DeleteWithDelay(m *sync.Map, key interface{})

Jump to

Keyboard shortcuts

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