hub

package
v2.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterface

type ClientInterface interface {
	Login() error
	Dump() (*Dump, error)
}

ClientInterface .....

type CodeLocation

type CodeLocation struct {
	ScanSummaries        []*ScanSummary
	CreatedAt            string
	MappedProjectVersion string
	Meta                 hubapi.Meta
	Name                 string
	Type                 string
	URL                  string
	UpdatedAt            string
}

CodeLocation .....

type ComponentVersionStatusCount

type ComponentVersionStatusCount struct {
	Name  string
	Value int
}

ComponentVersionStatusCount .....

type Dump

type Dump struct {
	Version       string
	Projects      []*Project
	Scans         []*CodeLocation
	ScansByName   map[string]*CodeLocation
	DuplicateShas map[string]bool
}

Dump .....

func NewDump

func NewDump(version string, projects []*Project) *Dump

NewDump .....

type HubDumper

type HubDumper struct {
	HubClient   *hubclient.Client
	HubUsername string
	HubPassword string
}

HubDumper .....

func NewHubDumper

func NewHubDumper(hubHost string, username string, password string) (*HubDumper, error)

NewHubDumper .....

func (*HubDumper) Dump

func (hd *HubDumper) Dump() (*Dump, error)

Dump .....

func (*HubDumper) DumpAllProjects

func (hd *HubDumper) DumpAllProjects() ([]*Project, error)

DumpAllProjects .....

func (*HubDumper) DumpCodeLocation

func (hd *HubDumper) DumpCodeLocation(hubCodeLocation *hubapi.CodeLocation) (*CodeLocation, error)

DumpCodeLocation .....

func (*HubDumper) DumpPolicyStatus

func (hd *HubDumper) DumpPolicyStatus(hubPolicyStatus *hubapi.ProjectVersionPolicyStatus) (*PolicyStatus, error)

DumpPolicyStatus .....

func (*HubDumper) DumpProject

func (hd *HubDumper) DumpProject(hubProject *hubapi.Project) (*Project, error)

DumpProject .....

func (*HubDumper) DumpRiskProfile

func (hd *HubDumper) DumpRiskProfile(hubRiskProfile *hubapi.ProjectVersionRiskProfile) (*RiskProfile, error)

DumpRiskProfile .....

func (*HubDumper) DumpScanSummary

func (hd *HubDumper) DumpScanSummary(hubScanSummary *hubapi.ScanSummary) (*ScanSummary, error)

DumpScanSummary .....

func (*HubDumper) DumpVersion

func (hd *HubDumper) DumpVersion(hubVersion *hubapi.ProjectVersion) (*Version, error)

DumpVersion .....

func (*HubDumper) Login

func (hd *HubDumper) Login() error

Login .....

func (*HubDumper) Version

func (hd *HubDumper) Version() (string, error)

Version .....

type PolicyStatus

type PolicyStatus struct {
	ComponentVersionStatusCounts []*ComponentVersionStatusCount
	Meta                         hubapi.Meta
	OverallStatus                string
	UpdatedAt                    string
}

PolicyStatus .....

type Project

type Project struct {
	Name        string
	Versions    []*Version
	Description string
	Source      string
}

Project .....

type RiskProfile

type RiskProfile struct {
	BomLastUpdatedAt string
	Categories       map[string]map[string]int
	Meta             hubapi.Meta
}

RiskProfile .....

type ScanSummary

type ScanSummary struct {
	CreatedAt string
	Meta      hubapi.Meta
	Status    string
	UpdatedAt string
}

ScanSummary .....

type Version

type Version struct {
	Name            string
	CodeLocations   []*CodeLocation
	RiskProfile     *RiskProfile
	Distribution    string
	Meta            hubapi.Meta
	ReleasedOn      string
	ReleaseComments string
	Phase           string
	Nickname        string
	PolicyStatus    *PolicyStatus
}

Version .....

Jump to

Keyboard shortcuts

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