Documentation
¶
Index ¶
- type Dependencies
- type Gitlab
- func (g *Gitlab) CreateHook(ctx context.Context, repo *models.Repository) error
- func (g *Gitlab) GetEventID(ctx context.Context, r *http.Request) (string, error)
- func (g *Gitlab) GetEventType(ctx context.Context, r *http.Request) (string, error)
- func (g *Gitlab) ValidateRequest(ctx context.Context, req *http.Request, repoID int) error
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 UUIDGenerator providers.UUIDGenerator }
Dependencies defines the dependencies for the plugin provider.
type Gitlab ¶
type Gitlab struct { Dependencies // contains filtered or unexported fields }
Gitlab is a gitlab based platform implementation.
func NewGitlabPlatformProvider ¶
func NewGitlabPlatformProvider(deps Dependencies) *Gitlab
NewGitlabPlatformProvider creates a new hook platform provider for Gitlab.
func (*Gitlab) CreateHook ¶
CreateHook can create a hook for the Gitlab platform.
func (*Gitlab) GetEventID ¶
GetEventID Based on the platform, retrieve the ID of the event.
func (*Gitlab) GetEventType ¶ added in v0.0.11
GetEventType Based on the platform, retrieve the Type of the event.
Click to show internal directories.
Click to hide internal directories.