Documentation
¶
Index ¶
- type Authenticator
- type GitHubAuthenticator
- type WorkflowRunsConfig
- type WorkflowRunsOptions
- type WorkflowStatsClient
- func (c *WorkflowStatsClient) FetchWorkflowJobsAttempts(ctx context.Context, runs []*github.WorkflowRun, cfg *WorkflowRunsConfig) ([]*github.WorkflowJob, error)
- func (c *WorkflowStatsClient) FetchWorkflowRuns(ctx context.Context, cfg *WorkflowRunsConfig, opt *WorkflowRunsOptions) ([]*github.WorkflowRun, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type GitHubAuthenticator ¶
type GitHubAuthenticator struct{}
func (*GitHubAuthenticator) AuthTokenForHost ¶
func (ga *GitHubAuthenticator) AuthTokenForHost(host string) (string, error)
type WorkflowRunsConfig ¶
type WorkflowRunsOptions ¶
type WorkflowStatsClient ¶
type WorkflowStatsClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(host string, authenticator Authenticator) (*WorkflowStatsClient, error)
func (*WorkflowStatsClient) FetchWorkflowJobsAttempts ¶
func (c *WorkflowStatsClient) FetchWorkflowJobsAttempts(ctx context.Context, runs []*github.WorkflowRun, cfg *WorkflowRunsConfig) ([]*github.WorkflowJob, error)
func (*WorkflowStatsClient) FetchWorkflowRuns ¶
func (c *WorkflowStatsClient) FetchWorkflowRuns(ctx context.Context, cfg *WorkflowRunsConfig, opt *WorkflowRunsOptions) ([]*github.WorkflowRun, error)
Click to show internal directories.
Click to hide internal directories.