prow/plugins/plugins.go
func (pa *ConfigAgent) Start(path string) error {
	if err := pa.Load(path); err != nil {
		return err
	}
	ticker := time.Tick(1 * time.Minute)
	go func() {
		for range ticker {
			if err := pa.Load(path); err != nil {
				logrus.WithField("path", path).WithError(err).Error("Error loading plugin config.")
			}
		}
	}()
	return nil
}
func (pa *ConfigAgent) Start(path string) error {
	if err := pa.Load(path); err != nil {
		return err
	}
	ticker := time.Tick(1 * time.Minute)
	go func() {
		for range ticker {
			if err := pa.Load(path); err != nil {
				logrus.WithField("path", path).WithError(err).Error("Error loading plugin config.")
			}
		}
	}()
	return nil
}
func ( pa * ConfigAgent ) Start ( path string ) error { if err := pa . Load ( path ) ; err != nil { return err } ticker := time . Tick ( 1 * time . Minute ) go func ( ) { for range ticker { if err := pa . Load ( path ) ; err != nil { logrus . WithField ( " " , path ) . WithError ( err ) . Error ( " " ) } } } ( ) return nil }
// Start starts polling path for plugin config. If the first attempt fails,
// then start returns the error. Future errors will halt updates but not stop.
Start starts polling path for plugin config . If the first attempt fails then start returns the error . Future errors will halt updates but not stop .