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: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactoryPerceiver

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

ArtifactoryPerceiver handles watching and annotating Images

func NewArtifactoryPerceiver

func NewArtifactoryPerceiver(configPath string) (*ArtifactoryPerceiver, error)

NewArtifactoryPerceiver creates a new ArtifactoryPerceiver object

func (*ArtifactoryPerceiver) Run

func (ap *ArtifactoryPerceiver) Run(stopCh <-chan struct{})

Run starts the ArtifactoryPerceiver watching and annotating Images

type ArtifactoryPerceiverConfig

type ArtifactoryPerceiverConfig struct {
	Dumper bool
}

ArtifactoryPerceiverConfig contains config specific to pod perceivers

type Config

type Config struct {
	LogLevel                string
	Perceptor               PerceptorConfig
	Perceiver               PerceiverConfig
	PrivateDockerRegistries []*utils.RegistryAuth
}

Config contains the ArtifactoryPerceiver configurations

func GetConfig

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

GetConfig returns a configuration object to configure a ArtifactoryPerceiver

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 ArtifactoryPerceiver 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
	Artifactory               ArtifactoryPerceiverConfig
}

PerceiverConfig contains general Perceiver config

type PerceptorConfig

type PerceptorConfig struct {
	Host string
	Port int
}

PerceptorConfig contains Perceptor config

Jump to

Keyboard shortcuts

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