Documentation ¶
Index ¶
- Constants
- type Github
- func (p Github) AcceptRepoInvitation(ctx context.Context, invitationID int) error
- func (p Github) AddCollaborator(ctx context.Context, owner, repo, username string) (*provider.RepoInvitation, error)
- func (p Github) CreateRepoHook(ctx context.Context, owner, repo string, hook *provider.HookConfig) (*provider.Hook, error)
- func (p Github) DeleteRepoHook(ctx context.Context, owner, repo string, hookID int) error
- func (p Github) GetBranch(ctx context.Context, owner, repo, branch string) (*provider.Branch, error)
- func (p Github) GetOrgMembershipByName(ctx context.Context, org string) (*provider.OrgMembership, error)
- func (p Github) GetPullRequest(ctx context.Context, owner, repo string, number int) (*provider.PullRequest, error)
- func (p Github) GetRepoByName(ctx context.Context, owner, repo string) (*provider.Repo, error)
- func (p Github) LinkToPullRequest(repo *models.Repo, num int) string
- func (p Github) ListOrgMemberships(ctx context.Context, cfg *provider.ListOrgsConfig) ([]provider.OrgMembership, error)
- func (p Github) ListPullRequestCommits(ctx context.Context, owner, repo string, number int) ([]*provider.Commit, error)
- func (p Github) ListRepoHooks(ctx context.Context, owner, repo string) ([]provider.Hook, error)
- func (p Github) ListRepos(ctx context.Context, cfg *provider.ListReposConfig) ([]provider.Repo, error)
- func (p Github) Name() string
- func (p Github) ParsePullRequestEvent(ctx context.Context, payload []byte) (*provider.PullRequestEvent, error)
- func (p Github) RemoveCollaborator(ctx context.Context, owner, repo, username string) error
- func (p *Github) SetBaseURL(s string) error
- func (p Github) SetCommitStatus(ctx context.Context, owner, repo, ref string, status *provider.CommitStatus) error
- type StableProvider
- func (p StableProvider) AcceptRepoInvitation(ctx context.Context, invitationID int) error
- func (p StableProvider) AddCollaborator(ctx context.Context, owner, repo, username string) (ret *provider.RepoInvitation, err error)
- func (p StableProvider) CreateRepoHook(ctx context.Context, owner, repo string, hook *provider.HookConfig) (ret *provider.Hook, err error)
- func (p StableProvider) DeleteRepoHook(ctx context.Context, owner, repo string, hookID int) error
- func (p StableProvider) GetBranch(ctx context.Context, owner, repo, branch string) (ret *provider.Branch, err error)
- func (p StableProvider) GetOrgMembershipByName(ctx context.Context, org string) (retOrg *provider.OrgMembership, err error)
- func (p StableProvider) GetPullRequest(ctx context.Context, owner, repo string, number int) (ret *provider.PullRequest, err error)
- func (p StableProvider) GetRepoByName(ctx context.Context, owner, repo string) (retRepo *provider.Repo, err error)
- func (p StableProvider) LinkToPullRequest(repo *models.Repo, num int) string
- func (p StableProvider) ListOrgMemberships(ctx context.Context, cfg *provider.ListOrgsConfig) (ret []provider.OrgMembership, err error)
- func (p StableProvider) ListPullRequestCommits(ctx context.Context, owner, repo string, number int) (ret []*provider.Commit, err error)
- func (p StableProvider) ListRepoHooks(ctx context.Context, owner, repo string) (ret []provider.Hook, err error)
- func (p StableProvider) ListRepos(ctx context.Context, cfg *provider.ListReposConfig) (ret []provider.Repo, err error)
- func (p StableProvider) Name() string
- func (p StableProvider) ParsePullRequestEvent(ctx context.Context, payload []byte) (ret *provider.PullRequestEvent, err error)
- func (p StableProvider) RemoveCollaborator(ctx context.Context, owner, repo, username string) error
- func (p StableProvider) SetBaseURL(s string) error
- func (p StableProvider) SetCommitStatus(ctx context.Context, owner, repo, ref string, status *provider.CommitStatus) error
Constants ¶
View Source
const GithubProviderName = "github.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func (Github) AcceptRepoInvitation ¶
func (Github) AddCollaborator ¶
func (Github) CreateRepoHook ¶
func (Github) DeleteRepoHook ¶
func (Github) GetOrgMembershipByName ¶
func (Github) GetPullRequest ¶
func (Github) GetRepoByName ¶
func (Github) LinkToPullRequest ¶
func (Github) ListOrgMemberships ¶
func (p Github) ListOrgMemberships(ctx context.Context, cfg *provider.ListOrgsConfig) ([]provider.OrgMembership, error)
func (Github) ListPullRequestCommits ¶
func (Github) ListRepoHooks ¶
func (Github) ParsePullRequestEvent ¶
func (Github) RemoveCollaborator ¶
func (*Github) SetBaseURL ¶
func (Github) SetCommitStatus ¶
type StableProvider ¶
type StableProvider struct {
// contains filtered or unexported fields
}
func NewStableProvider ¶
func (StableProvider) AcceptRepoInvitation ¶
func (p StableProvider) AcceptRepoInvitation(ctx context.Context, invitationID int) error
func (StableProvider) AddCollaborator ¶
func (p StableProvider) AddCollaborator(ctx context.Context, owner, repo, username string) (ret *provider.RepoInvitation, err error)
func (StableProvider) CreateRepoHook ¶
func (p StableProvider) CreateRepoHook(ctx context.Context, owner, repo string, hook *provider.HookConfig) (ret *provider.Hook, err error)
func (StableProvider) DeleteRepoHook ¶
func (StableProvider) GetOrgMembershipByName ¶
func (p StableProvider) GetOrgMembershipByName(ctx context.Context, org string) (retOrg *provider.OrgMembership, err error)
func (StableProvider) GetPullRequest ¶
func (p StableProvider) GetPullRequest(ctx context.Context, owner, repo string, number int) (ret *provider.PullRequest, err error)
func (StableProvider) GetRepoByName ¶
func (StableProvider) LinkToPullRequest ¶
func (p StableProvider) LinkToPullRequest(repo *models.Repo, num int) string
func (StableProvider) ListOrgMemberships ¶
func (p StableProvider) ListOrgMemberships(ctx context.Context, cfg *provider.ListOrgsConfig) (ret []provider.OrgMembership, err error)
func (StableProvider) ListPullRequestCommits ¶
func (StableProvider) ListRepoHooks ¶
func (StableProvider) ListRepos ¶
func (p StableProvider) ListRepos(ctx context.Context, cfg *provider.ListReposConfig) (ret []provider.Repo, err error)
func (StableProvider) Name ¶
func (p StableProvider) Name() string
func (StableProvider) ParsePullRequestEvent ¶
func (p StableProvider) ParsePullRequestEvent(ctx context.Context, payload []byte) (ret *provider.PullRequestEvent, err error)
func (StableProvider) RemoveCollaborator ¶
func (p StableProvider) RemoveCollaborator(ctx context.Context, owner, repo, username string) error
func (StableProvider) SetBaseURL ¶
func (p StableProvider) SetBaseURL(s string) error
func (StableProvider) SetCommitStatus ¶
func (p StableProvider) SetCommitStatus(ctx context.Context, owner, repo, ref string, status *provider.CommitStatus) error
Click to show internal directories.
Click to hide internal directories.