Versions in this module Expand all Collapse all v0 v0.2.0 Dec 2, 2020 Changes in this version type TaskStepProfile + Percentiles map[int64]*percentileData v0.1.0 Nov 29, 2020 Changes in this version + func AvailableFormatsForCLI() string + func AvailableSortFieldsForCLI() string + func IsValidFormatName(formatName string) bool + func IsValidSortFieldName(fieldName string) bool + func NewReplaceRule(regexpStr, replace string) (*replaceRule, error) + func SortProfileBy(profile TaskStepProfileResult, fieldName string) error + func WriteJSON(w io.Writer, profileResult ProfileInput) (err error) + func WriteTSV(w io.Writer, profileResult ProfileInput) error + func WriteTable(w io.Writer, profileResult ProfileInput, markdown bool) error + func WriteWithFormat(w io.Writer, profileResult ProfileInput, format string) error + type Client struct + func NewClientWithConfig(ctx context.Context, config *ClientConfig) *Client + func (c Client) GetWorkflowJobByID(ctx context.Context, owner, repo string, jobID int64) (*github.WorkflowJob, *github.Response, error) + func (c Client) ListWorkflowJobs(ctx context.Context, owner, repo string, runID int64, ...) (*github.Jobs, *github.Response, error) + func (c Client) ListWorkflowRunsByFileName(ctx context.Context, owner, repo, workflowFileName string, ...) (*github.WorkflowRuns, *github.Response, error) + type ClientConfig struct + AccessToken string + Cache bool + CacheDirectory string + type ProfileConfig struct + AccessToken string + Cache bool + CacheDirectory string + Concurrency int + Format string + JobNameRegexp string + NumberOfJob int + Owner string + Replace []replaceRule + Repository string + Reverse bool + SortBy string + Verbose bool + WorkflowFileName string + func DefaultProfileConfig() *ProfileConfig + func LoadConfigFromTOML(filename string) (*ProfileConfig, error) + func OverrideCLIArgs(tomlConfig *ProfileConfig, cliArgs *ProfileConfigCLIArgs) (newConfig *ProfileConfig) + func (c ProfileConfig) Dump() string + func (config ProfileConfig) Validate() error + type ProfileConfigCLIArgs struct + AccessToken *string + Cache *bool + CacheDirectory *string + Concurrency *int + ConfigPath *string + Format *string + JobNameRegexp *string + NumberOfJob *int + Owner *string + Repository *string + Reverse *bool + SortBy *string + Verbose *bool + WorkflowFileName *string + type ProfileForFormatter struct + Name string + Profile []*TaskStepProfile + type ProfileInput []*ProfileForFormatter + type TaskStepProfile struct + Max float64 + Mean float64 + Median float64 + Min float64 + Name string + Number int64 + Percentile50 float64 + Percentile90 float64 + Percentile95 float64 + Percentile99 float64 + type TaskStepProfileResult = []*TaskStepProfile + func ProfileTaskStep(steps []*github.TaskStep) (profileResult TaskStepProfileResult, err error)