Documentation
¶
Index ¶
- type Dependencies
- type Github
- func (g *Github) CreateHook(ctx context.Context, repo *models.Repository) error
- func (g *Github) GetEventID(ctx context.Context, r *http.Request) (string, error)
- func (g *Github) GetEventType(ctx context.Context, r *http.Request) (string, error)
- func (g *Github) ValidateRequest(ctx context.Context, req *http.Request, repoID int) error
- type GoogleGithubClient
- type GoogleGithubRepoService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct { Logger zerolog.Logger PlatformTokenProvider providers.PlatformTokenProvider AuthProvider providers.RepositoryAuth }
Dependencies defines the dependencies for the plugin provider.
type Github ¶
type Github struct { Dependencies // contains filtered or unexported fields }
Github is a GitHub based platform implementation.
func NewGithubPlatformProvider ¶
func NewGithubPlatformProvider(deps Dependencies) *Github
NewGithubPlatformProvider creates a new hook platform provider for GitHub.
func (*Github) CreateHook ¶
CreateHook can create a hook for the GitHub platform.
func (*Github) GetEventID ¶
GetEventID Based on the platform, retrieve the ID of the event.
func (*Github) GetEventType ¶ added in v0.0.11
GetEventType Based on the platform, retrieve the Type of the event.
type GoogleGithubClient ¶
type GoogleGithubClient struct { Repositories GoogleGithubRepoService *ggithub.Client }
GoogleGithubClient is a client that has the ability to replace the actual git client.
func NewGoogleGithubClient ¶
func NewGoogleGithubClient(httpClient *http.Client, repoMock GoogleGithubRepoService) GoogleGithubClient
NewGoogleGithubClient creates a wrapper around the GitHub client.
Click to show internal directories.
Click to hide internal directories.