worker

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package worker implements the logic to extract useful informations from a container layer and store it in the database.

Index

Constants

View Source
const (
	// Version (integer) represents the worker version.
	// Increased each time the engine changes.
	Version = 2
)

Variables

View Source
var (

	// ErrUnsupported is the error that should be raised when an OS or package
	// manager is not supported.
	ErrUnsupported = cerrors.NewBadRequestError("worker: OS and/or package manager are not supported")

	// ErrParentUnknown is the error that should be raised when a parent layer
	// has yet to be processed for the current layer.
	ErrParentUnknown = cerrors.NewBadRequestError("worker: parent layer is unknown, it must be processed first")
)

Functions

func Process

func Process(datastore database.Datastore, imageFormat, name, parentName, path string, headers map[string]string) error

Process detects the Namespace of a layer, the features it adds/removes, and then stores everything in the database. TODO(Quentin-M): We could have a goroutine that looks for layers that have been analyzed with an older engine version and that processes them.

Types

This section is empty.

Directories

Path Synopsis
Package detectors exposes functions to register and use container information extractors.
Package detectors exposes functions to register and use container information extractors.

Jump to

Keyboard shortcuts

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