discovery

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyOfChanges added in v1.11.0

func NotifyOfChanges(get func() discovery.Config, notify func(), interval time.Duration, stopCh chan struct{})

Types

type AuthChecker added in v1.3.5

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

func NewAuthChecker added in v1.3.5

func NewAuthChecker(accessGetter authv1.SelfSubjectAccessReviewInterface, namespace string, refreshInterval time.Duration, reportInterval time.Duration) *AuthChecker

func TestAuthChecker added in v1.3.5

func TestAuthChecker(accessGetter authv1.SelfSubjectAccessReviewInterface, namespace string, refreshInterval time.Duration, reportInterval time.Duration, logger func(format string, args ...interface{})) *AuthChecker

func (*AuthChecker) CanListSecrets added in v1.3.5

func (checker *AuthChecker) CanListSecrets() bool

type Manager added in v1.0.0

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

Manager manages the discovery of kubernetes targets based on annotations or configuration rules.

func NewDiscoveryManager

func NewDiscoveryManager(cfg RunConfig) *Manager

NewDiscoveryManager creates a new instance of a discovery manager based on the given configuration.

func (*Manager) Pause added in v1.0.7

func (dm *Manager) Pause()

func (*Manager) Resume added in v1.0.7

func (dm *Manager) Resume()

func (*Manager) Start added in v1.0.0

func (dm *Manager) Start()

func (*Manager) Stop added in v1.0.0

func (dm *Manager) Stop()

type RunConfig added in v1.0.0

type RunConfig struct {
	KubeClient             kubernetes.Interface
	DiscoveryConfig        discovery.Config
	Handler                metrics.ProviderHandler
	InternalPluginProvider discovery.PluginProvider
	Lister                 discovery.ResourceLister
	ScrapeCluster          bool
}

RunConfig encapsulates the runtime configuration required for a discovery manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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