events

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventInformerFuncForNamespace

func NewEventInformerFuncForNamespace(origin, namespace string) kubeinformersinterfaces.NewInformerFunc

Types

type EventWatcherConfig

type EventWatcherConfig struct {
	Kubeconfig string //Do I need this field?
	Namespaces []string
}

type GardenerEventWatcher

type GardenerEventWatcher struct {
	SeedKubeInformerFactories  []kubeinformers.SharedInformerFactory
	ShootKubeInformerFactories []kubeinformers.SharedInformerFactory
}

func (*GardenerEventWatcher) Run

func (e *GardenerEventWatcher) Run(stopCh <-chan struct{})

type GardenerEventWatcherConfig

type GardenerEventWatcherConfig struct {
	SeedEventWatcherConfig     EventWatcherConfig
	SeedKubeInformerFactories  []kubeinformers.SharedInformerFactory
	ShootEventWatcherConfig    EventWatcherConfig
	ShootKubeInformerFactories []kubeinformers.SharedInformerFactory
}

func (*GardenerEventWatcherConfig) New

type Options

type Options struct {
	Kubeconfig string
	Namespaces []string
}

Options has all the context and parameters needed to run a Gardener Event Logger.

func (*Options) ApplyTo

func (o *Options) ApplyTo(config *EventWatcherConfig) error

func (*Options) Validate

func (o *Options) Validate() []error

type SeedOptions

type SeedOptions struct {
	Options
}

func (*SeedOptions) AddFlags

func (o *SeedOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds all flags to the given FlagSet.

func (*SeedOptions) ApplyTo

func (o *SeedOptions) ApplyTo(config *EventWatcherConfig) error

func (*SeedOptions) Validate

func (o *SeedOptions) Validate() []error

Validate all flags of the given Options.

type ShootOptions

type ShootOptions struct {
	Options
}

func (*ShootOptions) AddFlags

func (o *ShootOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds all flags to the given FlagSet.

func (*ShootOptions) ApplyTo

func (o *ShootOptions) ApplyTo(config *EventWatcherConfig) error

func (*ShootOptions) Validate

func (o *ShootOptions) Validate() []error

Validate all flags of the given Options.

Jump to

Keyboard shortcuts

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