audit

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright 2019 Sonatype Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogVulnerablePackage added in v0.1.0

func LogVulnerablePackage(sb *strings.Builder, noColor bool, idx int, packageCount int, coordinate types.Coordinate)

Types

type Audit added in v0.1.0

type Audit struct {
	OssiConfig config.OSSIConfig
}

func New added in v0.1.0

func New(ossiConfig config.OSSIConfig) *Audit

func (Audit) AuditBom added in v0.1.0

func (a Audit) AuditBom(deps []packageurl.PackageURL, fileLookup map[string]string) (r *AuditResult)

func (Audit) GetPurls added in v0.1.0

func (a Audit) GetPurls(libPaths []string, libs []string, files []string) ([]packageurl.PackageURL, map[string]string)

func (Audit) HasProperOssiCredentials added in v0.1.0

func (a Audit) HasProperOssiCredentials() bool

func (Audit) ProcessPaths added in v0.1.0

func (a Audit) ProcessPaths(libPaths []string, libs []string, files []string) (r *AuditResult)

type AuditResult added in v0.1.0

type AuditResult struct {
	Coordinates []types.Coordinate
	Count       int
}

Jump to

Keyboard shortcuts

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