Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImagePerceiver ¶
type ImagePerceiver struct {
ImageController *controller.ImageController
ImageAnnotator *annotator.ImageAnnotator
ImageDumper *dumper.ImageDumper
// contains filtered or unexported fields
}
ImagePerceiver handles watching and annotating Images
func NewImagePerceiver ¶
func NewImagePerceiver(config *ImagePerceiverConfig) (*ImagePerceiver, error)
NewImagePerceiver creates a new ImagePerceiver object
func (*ImagePerceiver) Run ¶
func (ip *ImagePerceiver) Run(stopCh <-chan struct{})
Run starts the ImagePerceiver watching and annotating Images
type ImagePerceiverConfig ¶
type ImagePerceiverConfig struct {
PerceptorHost string
PerceptorPort int
AnnotationIntervalSeconds int
DumpIntervalMinutes int
Port int
}
ImagePerceiverConfig contains all configuration for a ImagePerceiver
func GetImagePerceiverConfig ¶
func GetImagePerceiverConfig() (*ImagePerceiverConfig, error)
GetImagePerceiverConfig returns a configuration object to configure a ImagePerceiver
func (*ImagePerceiverConfig) StartWatch ¶
func (p *ImagePerceiverConfig) StartWatch(handler func(fsnotify.Event))
StartWatch will start watching the ImagePerceiver configuration file and call the passed handler function when the configuration file has changed
Click to show internal directories.
Click to hide internal directories.