Documentation
¶
Index ¶
- func NewGithubClient(queries *queries.Queries) (gitShared.Client, error)
- type BadTokenTripper
- type GithubAppClient
- type GithubClient
- func (c *GithubClient) NewAppClient(ctx context.Context) (gitShared.AppClient, error)
- func (c *GithubClient) NewGithubInstallationClient(ctx context.Context, installationID string) (*GithubInstallationClient, error)
- func (c *GithubClient) NewInstallationClient(ctx context.Context, installationID string) (gitShared.InstallationClient, error)
- func (c *GithubClient) NewUserClient(ctx context.Context, user types.User) (gitShared.UserClient, error)
- func (c *GithubClient) RefreshOAuthTokens(ctx context.Context, user types.User, account *typesDB.UserAccount, ...) error
- type GithubInstallationClient
- func (c *GithubInstallationClient) GetProjectGitRepoData(ctx context.Context, project typesDB.Project) (*types.GitRepoData, error)
- func (c *GithubInstallationClient) GetUserIDFromUsername(ctx context.Context, username string) (int64, error)
- func (c *GithubInstallationClient) GetWorkflowFiles(ctx context.Context, project typesDB.Project, event types.TriggerEvent) ([]types.WorkflowFile, error)
- func (c *GithubInstallationClient) RepoExists(ctx context.Context, repoID string) (bool, error)
- func (c *GithubInstallationClient) UpdateRunInRepo(ctx context.Context, org typesDB.OrgDB, project typesDB.Project, ...) error
- type GithubUserClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BadTokenTripper ¶
type BadTokenTripper struct { Transport http.RoundTripper GetRedirectURL func() (string, error) }
type GithubAppClient ¶
type GithubAppClient struct {
// contains filtered or unexported fields
}
func (*GithubAppClient) GetInstallation ¶
func (c *GithubAppClient) GetInstallation(ctx context.Context, installationID string) (*typesHTTP.GitInstallation, error)
type GithubClient ¶
func (*GithubClient) NewAppClient ¶
func (*GithubClient) NewGithubInstallationClient ¶
func (c *GithubClient) NewGithubInstallationClient(ctx context.Context, installationID string) (*GithubInstallationClient, error)
TODO - We should cache these clients to avoid having to regenerate access tokens
func (*GithubClient) NewInstallationClient ¶
func (c *GithubClient) NewInstallationClient(ctx context.Context, installationID string) (gitShared.InstallationClient, error)
func (*GithubClient) NewUserClient ¶
func (c *GithubClient) NewUserClient(ctx context.Context, user types.User) (gitShared.UserClient, error)
func (*GithubClient) RefreshOAuthTokens ¶
func (c *GithubClient) RefreshOAuthTokens(ctx context.Context, user types.User, account *typesDB.UserAccount, refreshToken *string, code *string) error
type GithubInstallationClient ¶
type GithubInstallationClient struct { Client *github.Client // contains filtered or unexported fields }
func (*GithubInstallationClient) GetProjectGitRepoData ¶
func (c *GithubInstallationClient) GetProjectGitRepoData(ctx context.Context, project typesDB.Project) (*types.GitRepoData, error)
func (*GithubInstallationClient) GetUserIDFromUsername ¶
func (*GithubInstallationClient) GetWorkflowFiles ¶
func (c *GithubInstallationClient) GetWorkflowFiles(ctx context.Context, project typesDB.Project, event types.TriggerEvent) ([]types.WorkflowFile, error)
func (*GithubInstallationClient) RepoExists ¶
func (*GithubInstallationClient) UpdateRunInRepo ¶
func (c *GithubInstallationClient) UpdateRunInRepo(ctx context.Context, org typesDB.OrgDB, project typesDB.Project, run typesDB.WorkflowRun) error
type GithubUserClient ¶
type GithubUserClient struct {
// contains filtered or unexported fields
}
func (*GithubUserClient) GetInstallations ¶
func (c *GithubUserClient) GetInstallations(ctx context.Context, options gitShared.GetInstallationsOptions) (*typesHTTP.GitInstallations, error)
func (*GithubUserClient) GetRepositories ¶
func (c *GithubUserClient) GetRepositories(ctx context.Context, installationID string, options gitShared.GetRepositoriesOptions) (*typesHTTP.GitRepositories, error)
Click to show internal directories.
Click to hide internal directories.