Documentation ¶
Index ¶
- func GetGithubClient(gh GithubClientProvider, installationId int64, repoFullName string) (*github.Client, *string, error)
- func GetGithubHostname() string
- func GetGithubService(gh GithubClientProvider, installationId int64, repoFullName string, ...) (*github2.GithubService, *string, error)
- func GetWorkflowIdAndUrlFromDiggerJobId(client *github.Client, repoOwner string, repoName string, diggerJobID string) (int64, string, error)
- func MatchesCrontab(cronString string, timestamp time.Time) (bool, error)
- func SetPRStatusForJobs(prService ci.PullRequestService, prNumber int, jobs []scheduler.Job) error
- type DiggerGithubClientMockProvider
- func (gh DiggerGithubClientMockProvider) FetchCredentials(githubAppId string) (string, string, string, string, error)
- func (gh DiggerGithubClientMockProvider) Get(githubAppId int64, installationId int64) (*github.Client, *string, error)
- func (gh DiggerGithubClientMockProvider) NewClient(netClient *net.Client) (*github.Client, error)
- type DiggerGithubRealClientProvider
- func (gh DiggerGithubRealClientProvider) FetchCredentials(githubAppId string) (string, string, string, string, error)
- func (gh DiggerGithubRealClientProvider) Get(githubAppId int64, installationId int64) (*github.Client, *string, error)
- func (gh DiggerGithubRealClientProvider) NewClient(netClient *net.Client) (*github.Client, error)
- type GithubClientProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGithubClient ¶
func GetGithubHostname ¶
func GetGithubHostname() string
func GetGithubService ¶
func GetGithubService(gh GithubClientProvider, installationId int64, repoFullName string, repoOwner string, repoName string) (*github2.GithubService, *string, error)
func SetPRStatusForJobs ¶
Types ¶
type DiggerGithubClientMockProvider ¶
func (DiggerGithubClientMockProvider) FetchCredentials ¶
type DiggerGithubRealClientProvider ¶
type DiggerGithubRealClientProvider struct { }
just a wrapper around github client to be able to use mocks
func (DiggerGithubRealClientProvider) FetchCredentials ¶
Click to show internal directories.
Click to hide internal directories.