watchpods

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 14 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 {
	AddPodServiceAccount(*serviceaccounts.Reference)
	DeletePodServiceAccount(*serviceaccounts.Reference)
}

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