initialize

package
v4.4.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 29 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.

Notes

Bugs

  • The various resources (database connections, lock services) constructed in some internal functions are not properly cleaned up.

Directories

Path Synopsis
Package auto does automatic detection and runtime configuration for certain environments.
Package auto does automatic detection and runtime configuration for certain environments.

Jump to

Keyboard shortcuts

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