inspector

package
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// TODO: Make this const golang style
	VERSION_TAG              = "v1"
	DOCKER_TAR_PREFIX        = "rootfs/"
	OWNER_PERM_RW            = 0600
	HEALTHZ_URL_PATH         = "/healthz"
	API_URL_PREFIX           = "/api"
	RESULT_API_URL_PATH      = "/results"
	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"
	OPENSCAP_REPORT_URL_PATH = API_URL_PREFIX + "/" + VERSION_TAG + "/openscap-report"
	CHROOT_SERVE_PATH        = "/"
	OSCAP_CVE_DIR            = "/tmp"
	PULL_LOG_INTERVAL_SEC    = 10
)

Variables

This section is empty.

Functions

func NewInspectorMetadata

func NewInspectorMetadata(imageMetadata *docker.Image) iiapi.InspectorMetadata

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

Types

type DockerRuntimeClient

type DockerRuntimeClient interface {
	InspectImage(name string) (*docker.Image, error)
	ContainerChanges(id string) ([]docker.Change, error)
	PullImage(opts docker.PullImageOptions, auth docker.AuthConfiguration) error
	CreateContainer(opts docker.CreateContainerOptions) (*docker.Container, error)
	RemoveContainer(opts docker.RemoveContainerOptions) error
	InspectContainer(id string) (*docker.Container, error)
	DownloadFromContainer(id string, opts docker.DownloadFromContainerOptions) error
}

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.

Jump to

Keyboard shortcuts

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