worker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2015 License: Apache-2.0 Imports: 10 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 = 1
)

Variables

View Source
var (

	// ErrUnsupported is the error that should be raised when an OS or package
	// manager is not supported.
	ErrUnsupported = errors.New("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 = errors.New("worker: parent layer is unknown, it must be processed first")

	// SupportedOS is the list of operating system names that the worker supports.
	SupportedOS = []string{"debian", "ubuntu", "centos"}
)

Functions

func Process

func Process(ID, parentID, path string) error

Process detects the OS of a layer, the packages it installs/removes, and then stores everything in the database.

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.
os
Package os defines OSDetector for several sources.
Package os defines OSDetector for several sources.
packages
Package packages defines PackagesDetector for several sources.
Package packages defines PackagesDetector for several sources.

Jump to

Keyboard shortcuts

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