watchpods

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener interface {
	AddPod(*corev1.Pod)
	DeletePod(*corev1.Pod)
}

type Provider

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

func NewProvider

func NewProvider(opts ProviderOptions) *Provider

func (*Provider) AddListener

func (p *Provider) AddListener(l Listener)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) GetByIP

func (p *Provider) GetByIP(ctx context.Context, ipAddr string) (*corev1.Pod, error)

func (*Provider) Start

func (p *Provider) Start(ctx context.Context)

type ProviderOptions

type ProviderOptions struct {
	NodeName         string
	MetricsSubsystem string
	FallbackSource   pods.Provider
	KubeClient       *kubernetes.Clientset
	MetricsRegistry  *prometheus.Registry
	ResyncPeriod     time.Duration
}

Jump to

Keyboard shortcuts

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