Documentation ¶
Index ¶
- func FindLinks(obj interface{}) ([]string, []error)
- func FindLinksArray(array []interface{}) ([]string, []error)
- func FindLinksDict(dict map[string]interface{}) ([]string, []error)
- type Config
- type LinkType
- type PerformanceResults
- type PerformanceTester
- func (pt *PerformanceTester) AddFreewayResultsHandler()
- func (pt *PerformanceTester) FetchLink(link string) (map[string]interface{}, error)
- func (pt *PerformanceTester) GetGroupedDurations() (map[LinkType][]*time.Duration, []error)
- func (pt *PerformanceTester) GetProjects() (*hubapi.ProjectList, error)
- func (pt *PerformanceTester) StartHittingHub()
- func (pt *PerformanceTester) StartReducer()
- func (pt *PerformanceTester) TraverseGraph(root string) (map[string]*time.Duration, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindLinksArray ¶
FindLinksArray .....
func FindLinksDict ¶
FindLinksDict .....
Types ¶
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 (LinkType) MarshalText ¶
MarshalText .....
type PerformanceResults ¶
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 (*PerformanceTester) FetchLink ¶
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 ¶
TraverseGraph .....
Click to show internal directories.
Click to hide internal directories.