initialize

package
v4.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NotifierIssuer is the value used for the issuer claim of any outgoing
	// HTTP requests the notifier makes, if PSK auth is configured.
	NotifierIssuer = `clair-notifier`
)

Variables

This section is empty.

Functions

func Logging added in v4.1.0

func Logging(ctx context.Context, cfg *config.Config) error

Logging configures zlog according to the provided configuration.

Types

type Srv added in v4.1.0

type Srv struct {
	Indexer  indexer.Service
	Matcher  matcher.Service
	Notifier notifier.Service
}

Srv is a bundle of configured Services.

The members are populated according to the configuration that was passed to Services.

func Services added in v4.1.0

func Services(ctx context.Context, cfg *config.Config) (*Srv, error)

Services configures the services needed for a given mode according to the provided configuration.

Jump to

Keyboard shortcuts

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