app

package
v2.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Perceptor PerceptorConfig
	Perceiver PerceiverConfig
}

Config contains all configuration for a PodPerceiver

func GetConfig

func GetConfig(configPath string) (*Config, error)

GetConfig returns a configuration object to configure a PodPerceiver

func (*Config) StartWatch

func (p *Config) StartWatch(handler func(fsnotify.Event))

StartWatch will start watching the PodPerceiver configuration file and call the passed handler function when the configuration file has changed

type PerceiverConfig

type PerceiverConfig struct {
	AnnotationIntervalSeconds int
	DumpIntervalMinutes       int
	Port                      int
	Pod                       PodPerceiverConfig
}

PerceiverConfig contains general Perceiver config

type PerceptorConfig

type PerceptorConfig struct {
	Host string
	Port int
}

PerceptorConfig contains Perceptor config

type PodPerceiver

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

PodPerceiver handles watching and annotating pods

func NewPodPerceiver

func NewPodPerceiver(handler annotations.PodAnnotatorHandler, configPath string) (*PodPerceiver, error)

NewPodPerceiver creates a new PodPerceiver object

func (*PodPerceiver) Run

func (pp *PodPerceiver) Run(stopCh <-chan struct{})

Run starts the PodPerceiver watching and annotating pods

type PodPerceiverConfig

type PodPerceiverConfig struct {
	NamespaceFilter string
}

PodPerceiverConfig contains config specific to pod perceivers

Jump to

Keyboard shortcuts

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