freeway

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLinks(obj interface{}) ([]string, []error)

FindLinks .....

func FindLinksArray

func FindLinksArray(array []interface{}) ([]string, []error)

FindLinksArray .....

func FindLinksDict

func FindLinksDict(dict map[string]interface{}) ([]string, []error)

FindLinksDict .....

Types

type Config

type Config struct {
	LogLevel string

	Port int

	HubHost     string
	HubUser     string
	HubPassword string
}

Config .....

func ReadConfig

func ReadConfig(configPath string) (*Config, error)

ReadConfig .....

func (*Config) GetLogLevel

func (config *Config) GetLogLevel() (log.Level, error)

GetLogLevel .....

type LinkType

type LinkType int

LinkType .....

const (
	LinkTypeProjs                LinkType = iota
	LinkTypeVersions             LinkType = iota
	LinkTypeVersion              LinkType = iota
	LinkTypeAssignableUsers      LinkType = iota
	LinkTypeAssignableUserGroups LinkType = iota
	LinkTypeUsers                LinkType = iota
	LinkTypeUserGroups           LinkType = iota
	LinkTypeTags                 LinkType = iota
	LinkTypeVersionReport        LinkType = iota
	LinkTypeLicenseReports       LinkType = iota
	LinkTypeRiskProfile          LinkType = iota
	LinkTypeComponents           LinkType = iota
	LinkTypeVulnerableComponents LinkType = iota
	LinkTypePolicyStatus         LinkType = iota
	LinkTypeCodeLocations        LinkType = iota
	LinkTypeScanSummaries        LinkType = iota
)
func AnalyzeLink(link string) (*LinkType, error)

AnalyzeLink .....

func (LinkType) MarshalJSON

func (l LinkType) MarshalJSON() ([]byte, error)

MarshalJSON .....

func (LinkType) MarshalText

func (l LinkType) MarshalText() (text []byte, err error)

MarshalText .....

func (LinkType) Regex

func (l LinkType) Regex() *regexp.Regexp

Regex .....

func (LinkType) String

func (l LinkType) String() string

String .....

type PerformanceResults

type PerformanceResults struct {
	LinkTypeTimings map[string][]float64
}

PerformanceResults .....

type PerformanceTester

type PerformanceTester struct {
	HubClient        *hubclient.Client
	HubUsername      string
	HubPassword      string
	DurationsResults []map[LinkType][]*time.Duration
	AddResults       chan map[LinkType][]*time.Duration
	GetResults       chan func([]*PerformanceResults)
}

PerformanceTester .....

func NewPerformanceTester

func NewPerformanceTester(hubHost string, username string, password string) (*PerformanceTester, error)

NewPerformanceTester .....

func (*PerformanceTester) AddFreewayResultsHandler

func (pt *PerformanceTester) AddFreewayResultsHandler()

AddFreewayResultsHandler .....

func (pt *PerformanceTester) FetchLink(link string) (map[string]interface{}, error)

FetchLink .....

func (*PerformanceTester) GetGroupedDurations

func (pt *PerformanceTester) GetGroupedDurations() (map[LinkType][]*time.Duration, []error)

GetGroupedDurations .....

func (*PerformanceTester) GetProjects

func (pt *PerformanceTester) GetProjects() (*hubapi.ProjectList, error)

GetProjects .....

func (*PerformanceTester) StartHittingHub

func (pt *PerformanceTester) StartHittingHub()

StartHittingHub .....

func (*PerformanceTester) StartReducer

func (pt *PerformanceTester) StartReducer()

StartReducer .....

func (*PerformanceTester) TraverseGraph

func (pt *PerformanceTester) TraverseGraph(root string) (map[string]*time.Duration, []error)

TraverseGraph .....

Jump to

Keyboard shortcuts

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