github

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	AuthTokenForHost(host string) (string, error)
}

type GitHubAuthenticator

type GitHubAuthenticator struct{}

func (*GitHubAuthenticator) AuthTokenForHost

func (ga *GitHubAuthenticator) AuthTokenForHost(host string) (string, error)

type RateLimitError added in v0.2.0

type RateLimitError struct {
	Err error
}

func (RateLimitError) Error added in v0.2.0

func (e RateLimitError) Error() string

type WorkflowRunsConfig

type WorkflowRunsConfig struct {
	Org              string
	Repo             string
	WorkflowFileName string
	WorkflowID       int64
}

type WorkflowRunsOptions

type WorkflowRunsOptions struct {
	Actor               string
	Branch              string
	Event               string
	Status              string
	Created             string
	HeadSHA             string
	ExcludePullRequests bool
	CheckSuiteID        int64
	All                 bool
}

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

Jump to

Keyboard shortcuts

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