app

package
v2.2.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 12 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 {
	LogLevel                string
	Perceptor               PerceptorConfig
	Perceiver               PerceiverConfig
	PrivateDockerRegistries []*utils.RegistryAuth
}

Config return the Artifactory Perceiver configurations

func GetConfig

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

GetConfig returns a configuration object to configure a ImagePerceiver

func (*Config) GetLogLevel

func (config *Config) GetLogLevel() (log.Level, error)

GetLogLevel returns the log level set in Opssight Spec Config

func (*Config) StartWatch

func (config *Config) 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

type PerceiverConfig

type PerceiverConfig struct {
	AnnotationIntervalSeconds int
	DumpIntervalMinutes       int
	Port                      int
}

PerceiverConfig contains general Perceiver config

type PerceptorConfig

type PerceptorConfig struct {
	Host string
	Port int
}

PerceptorConfig contains Perceptor config

type QuayPerceiver

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

QuayPerceiver handles watching and annotating Images

func NewQuayPerceiver

func NewQuayPerceiver(configPath string) (*QuayPerceiver, error)

NewQuayPerceiver creates a new ImagePerceiver object

func (*QuayPerceiver) Run

func (qp *QuayPerceiver) Run(stopCh <-chan struct{})

Run starts the QuayPerceiver watching and annotating Images

Jump to

Keyboard shortcuts

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