initialize

package
v4.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 30 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