app

package
v0.0.0-...-93c0e2b Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(ctx context.Context, dsn string, from time.Time, fileName string) error

Export vulnerability updates

func Import

func Import(ctx context.Context, srcFile string, dsn string) error

Import import an update package and load it into specified database

func Inspect

func Inspect(ctx context.Context, r string) (*claircore.Manifest, error)

Inspect calls external commands to inspect the specified image.

The command (skopeo or docker) needs to be configured with any needed permissions.

func InspectLocal

func InspectLocal(ctx context.Context, r string) (*claircore.Manifest, error)

InspectLocal get image info from local

func NewInfraScanCommand

func NewInfraScanCommand() *cobra.Command

NewInfraScanCommand scans infrastruture

func NewLunaCommand

func NewLunaCommand() *cobra.Command

NewLunaCommand create command for luna controller klog provided hidden flags and must use flag.Parse() before using klog

func NewUpdateCommand

func NewUpdateCommand() *cobra.Command

NewUpdateCommand new command

func Scan

func Scan(ctx context.Context, imageRef string, remote bool) error

Scan an image

func ScanInfra

func ScanInfra(ctx context.Context, dsn string) error

ScanInfra scan infra

func ScanLocal

func ScanLocal(ctx context.Context, imageRef, dsn string) error

ScanLocal scan a local image

func Update

func Update(ctx context.Context, dsn string) error

Update do an update online

Types

type CommonEntry

type CommonEntry struct {
	Updater     string
	Fingerprint driver.Fingerprint
	Date        time.Time
}

CommonEntry is an embedded type that's shared between the "normal" Entry type and the on-disk json produced by a Store's Load method.

type DiskEntry

type DiskEntry struct {
	CommonEntry
	Ref  uuid.UUID
	Vuln *claircore.Vulnerability
}

DiskEntry to write to exported files

type Entry

type Entry struct {
	CommonEntry
	Vuln []*claircore.Vulnerability
}

Entry is a record of all information needed to record a vulnerability at a later date.

type Manifest

type Manifest struct {
	Config   string
	RepoTags []string
	Layers   []string
}

Manifest in docker json

type Options

type Options struct {
	DSN string `yaml:"dsn" validate:"required"`
}

Options for luna controller

Jump to

Keyboard shortcuts

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