Documentation
¶
Index ¶
- func RunScanner(configPath string, stop <-chan struct{})
- type Config
- type HubConfig
- type ImageFacadeClient
- type ImageFacadeClientInterface
- type ImageFacadeConfig
- type Manager
- type OSType
- type PerceptorClient
- type PerceptorClientInterface
- type PerceptorConfig
- type ScanClient
- type ScanClientInfo
- type ScanClientInterface
- type Scanner
- type ScannerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Hub HubConfig
ImageFacade ImageFacadeConfig
Perceptor PerceptorConfig
Scanner ScannerConfig
LogLevel string
}
Config ...
type ImageFacadeClient ¶
type ImageFacadeClient struct {
ImageFacadeHost string
ImageFacadePort int
// contains filtered or unexported fields
}
ImageFacadeClient ...
func NewImageFacadeClient ¶
func NewImageFacadeClient(imageFacadeHost string, imageFacadePort int) *ImageFacadeClient
NewImageFacadeClient ...
type ImageFacadeClientInterface ¶
ImageFacadeClientInterface ...
type ImageFacadeConfig ¶
ImageFacadeConfig ...
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager ...
func NewManager ¶
NewManager ...
func (*Manager) StartRequestingScanJobs ¶
func (sm *Manager) StartRequestingScanJobs()
StartRequestingScanJobs will start asking for work
type PerceptorClient ¶
PerceptorClient ...
func NewPerceptorClient ¶
func NewPerceptorClient(host string, port int) *PerceptorClient
NewPerceptorClient ...
func (*PerceptorClient) GetNextImage ¶
func (pc *PerceptorClient) GetNextImage() (*api.NextImage, error)
GetNextImage ...
func (*PerceptorClient) PostFinishedScan ¶
func (pc *PerceptorClient) PostFinishedScan(scan *api.FinishedScanClientJob) error
PostFinishedScan ...
type PerceptorClientInterface ¶
type PerceptorClientInterface interface {
GetNextImage() (*api.NextImage, error)
PostFinishedScan(scan *api.FinishedScanClientJob) error
}
PerceptorClientInterface ...
type ScanClient ¶
type ScanClient struct {
// contains filtered or unexported fields
}
ScanClient implements ScanClientInterface using the Black Duck hub and scan client programs.
func NewScanClient ¶
func NewScanClient(username string, password string, port int) (*ScanClient, error)
NewScanClient requires hub login credentials
func (*ScanClient) Scan ¶
func (sc *ScanClient) Scan(host string, path string, projectName string, versionName string, scanName string) error
Scan ...
func (*ScanClient) ScanSh ¶
func (sc *ScanClient) ScanSh(host string, path string, projectName string, versionName string, scanName string) error
ScanSh invokes scan.cli.sh example:
BD_HUB_PASSWORD=??? ./bin/scan.cli.sh --host ??? --port 443 --scheme https --username sysadmin --insecure --name ??? --release ??? --project ??? ???.tar
type ScanClientInfo ¶
ScanClientInfo ...
func DownloadScanClient ¶
func DownloadScanClient(osType OSType, cliRootPath string, hubHost string, hubUser string, hubPassword string, hubPort int, timeout time.Duration) (*ScanClientInfo, error)
DownloadScanClient ...
func NewScanClientInfo ¶
func NewScanClientInfo(hubVersion string, rootPath string, osType OSType) *ScanClientInfo
NewScanClientInfo ...
func (*ScanClientInfo) ScanCliImplJarPath ¶
func (sci *ScanClientInfo) ScanCliImplJarPath() string
ScanCliImplJarPath ...
func (*ScanClientInfo) ScanCliJarPath ¶
func (sci *ScanClientInfo) ScanCliJarPath() string
ScanCliJarPath ...
func (*ScanClientInfo) ScanCliJavaPath ¶
func (sci *ScanClientInfo) ScanCliJavaPath() string
ScanCliJavaPath ...
func (*ScanClientInfo) ScanCliShPath ¶
func (sci *ScanClientInfo) ScanCliShPath() string
ScanCliShPath ...
func (*ScanClientInfo) ScanCliZipPath ¶
func (sci *ScanClientInfo) ScanCliZipPath() string
ScanCliZipPath ...
type ScanClientInterface ¶
type ScanClientInterface interface {
Scan(host string, path string, projectName string, versionName string, scanName string) error
}
ScanClientInterface ...
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner ...
func NewScanner ¶
func NewScanner(ifClient ImageFacadeClientInterface, scanClient ScanClientInterface, imageDirectory string, stop <-chan struct{}) *Scanner
NewScanner ...
type ScannerConfig ¶
ScannerConfig ...
func (*ScannerConfig) GetImageDirectory ¶
func (config *ScannerConfig) GetImageDirectory() string
GetImageDirectory ...