app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodPerceiver

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

PodPerceiver handles watching and annotating pods

func NewPodPerceiver

func NewPodPerceiver(config *PodPerceiverConfig) (*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 {
	PerceptorHost             string
	PerceptorPort             int
	AnnotationIntervalSeconds int
	DumpIntervalMinutes       int
	Port                      int
}

PodPerceiverConfig contains all configuration for a PodPerceiver

func GetPodPerceiverConfig

func GetPodPerceiverConfig() (*PodPerceiverConfig, error)

GetPodPerceiverConfig returns a configuration object to configure a PodPerceiver

func (*PodPerceiverConfig) StartWatch

func (p *PodPerceiverConfig) 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

Jump to

Keyboard shortcuts

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