Documentation
¶
Index ¶
- func Export(ctx context.Context, dsn string, from time.Time, fileName string) error
- func Import(ctx context.Context, srcFile string, dsn string) error
- func Inspect(ctx context.Context, r string) (*claircore.Manifest, error)
- func InspectLocal(ctx context.Context, r string) (*claircore.Manifest, error)
- func NewInfraScanCommand() *cobra.Command
- func NewLunaCommand() *cobra.Command
- func NewUpdateCommand() *cobra.Command
- func Scan(ctx context.Context, imageRef string, remote bool) error
- func ScanInfra(ctx context.Context, dsn string) error
- func ScanLocal(ctx context.Context, imageRef, dsn string) error
- func Update(ctx context.Context, dsn string) error
- type CommonEntry
- type DiskEntry
- type Entry
- type Manifest
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inspect ¶
Inspect calls external commands to inspect the specified image.
The command (skopeo or docker) needs to be configured with any needed permissions.
func InspectLocal ¶
InspectLocal get image info from local
func NewInfraScanCommand ¶
NewInfraScanCommand scans infrastruture
func NewLunaCommand ¶
NewLunaCommand create command for luna controller klog provided hidden flags and must use flag.Parse() before using klog
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.