scanner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HubHost                 string
	HubUser                 string
	HubUserPassword         string
	HubClientTimeoutSeconds int
	Port                    int
	ImageFacadePort         int
	PerceptorPort           int
}

func GetConfig

func GetConfig() (*Config, error)

type HubScanClient

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

HubScanClient implements ScanClientInterface using the Black Duck hub and scan client programs.

func NewHubScanClient

func NewHubScanClient(host string, username string, password string, scanClientInfo *scanClientInfo, imagePuller ImagePullerInterface) (*HubScanClient, error)

NewHubScanClient requires hub login credentials

func (*HubScanClient) Scan

func (hsc *HubScanClient) Scan(job ScanJob) error

type ImageFacadePuller

type ImageFacadePuller struct {
	ImageFacadeBaseURL string
	ImageFacadePort    int
	// contains filtered or unexported fields
}

func NewImageFacadePuller

func NewImageFacadePuller(imageFacadeBaseURL string, imageFacadePort int) *ImageFacadePuller

func (*ImageFacadePuller) PullImage

func (ifp *ImageFacadePuller) PullImage(image *common.Image) error

type ImagePullerInterface

type ImagePullerInterface interface {
	PullImage(image *common.Image) error
}

type ScanClientInterface

type ScanClientInterface interface {
	Scan(job ScanJob) error
}

type ScanJob

type ScanJob struct {
	PullSpec              string
	Sha                   string
	HubProjectName        string
	HubProjectVersionName string
	HubScanName           string
}

func NewScanJob

func NewScanJob(pullSpec string, sha string, hubProjectName string, hubProjectVersionName string, hubScanName string) *ScanJob

type Scanner

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

func NewScanner

func NewScanner(config *Config) (*Scanner, error)

Jump to

Keyboard shortcuts

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