inspector

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION_TAG        = "v1"
	DOCKER_TAR_PREFIX  = "rootfs/"
	OWNER_PERM_RW      = 0600
	HEALTHZ_URL_PATH   = "/healthz"
	API_URL_PREFIX     = "/api"
	CONTENT_URL_PREFIX = API_URL_PREFIX + "/" + VERSION_TAG + "/content/"
	METADATA_URL_PATH  = API_URL_PREFIX + "/" + VERSION_TAG + "/metadata"
	OPENSCAP_URL_PATH  = API_URL_PREFIX + "/" + VERSION_TAG + "/openscap"
	CHROOT_SERVE_PATH  = "/"
	OSCAP_CVE_DIR      = "/tmp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIVersions

type APIVersions struct {
	Versions []string `json:"versions"`
}

type ImageInspector

type ImageInspector interface {
	// Inspect inspects and serves the image based on the ImageInspectorOptions.
	Inspect() error
}

ImageInspector is the interface for all image inspectors.

func NewDefaultImageInspector

func NewDefaultImageInspector(opts iicmd.ImageInspectorOptions) ImageInspector

NewDefaultImageInspector provides a new default inspector.

type InspectorMetadata

type InspectorMetadata struct {
	docker.Image // Metadata about the inspected image

	OpenSCAP *openSCAPMetadata
}

InspectorMetadata is the metadata type with information about image-inspector's operation

func NewInspectorMetadata

func NewInspectorMetadata(imageMetadata *docker.Image) *InspectorMetadata

NewInspectorMetadata returns a new InspectorMetadata out of *docker.Image The OpenSCAP status will be NotRequested

type OpenSCAPStatus

type OpenSCAPStatus string

OpenSCAPStatus is the status of openscap scan

const (
	StatusNotRequested OpenSCAPStatus = "NotRequested"
	StatusSuccess      OpenSCAPStatus = "Success"
	StatusError        OpenSCAPStatus = "Error"
)

Jump to

Keyboard shortcuts

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