scan

package
v0.0.0-...-977965f Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type All

type All struct {
	// contains filtered or unexported fields
}

All query the DB and Registry for all image and tags, then call Harbor's API to scan each of them. 获取数据库中的所有镜像信息,然后调用 Harbor API 来扫描镜像

func (*All) MaxFails

func (sa *All) MaxFails() uint

MaxFails implements the interface in job/Interface

func (*All) Run

func (sa *All) Run(ctx env.JobContext, params map[string]interface{}) error

Run implements the interface in job/Interface

func (*All) ShouldRetry

func (sa *All) ShouldRetry() bool

ShouldRetry implements the interface in job/Interface

func (*All) Validate

func (sa *All) Validate(params map[string]interface{}) error

Validate implements the interface in job/Interface

type ClairJob

type ClairJob struct {
	// contains filtered or unexported fields
}

ClairJob is the struct to scan Harbor's Image with Clair

func (*ClairJob) MaxFails

func (cj *ClairJob) MaxFails() uint

MaxFails implements the interface in job/Interface

func (*ClairJob) Run

func (cj *ClairJob) Run(ctx env.JobContext, params map[string]interface{}) error

Run implements the interface in job/Interface

func (*ClairJob) ShouldRetry

func (cj *ClairJob) ShouldRetry() bool

ShouldRetry implements the interface in job/Interface

func (*ClairJob) Validate

func (cj *ClairJob) Validate(params map[string]interface{}) error

Validate implements the interface in job/Interface

Jump to

Keyboard shortcuts

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