Documentation ¶
Index ¶
- type Provider
- func (v *Provider) CreateStatus(_ context.Context, _ versioned.Interface, event *info.Event, ...) error
- func (v *Provider) Detect(req *http.Request, payload string, logger *zap.SugaredLogger) (bool, bool, *zap.SugaredLogger, string, error)
- func (v *Provider) GetCommitInfo(_ context.Context, runevent *info.Event) error
- func (v *Provider) GetConfig() *info.ProviderConfig
- func (v *Provider) GetFileInsideRepo(_ context.Context, runevent *info.Event, path, _ string) (string, error)
- func (v *Provider) GetFiles(ctx context.Context, runevent *info.Event) ([]string, error)
- func (v *Provider) GetTaskURI(ctx context.Context, params *params.Run, event *info.Event, uri string) (bool, string, error)
- func (v *Provider) GetTektonDir(_ context.Context, event *info.Event, path string) (string, error)
- func (v *Provider) IsAllowed(ctx context.Context, event *info.Event) (bool, error)
- func (v *Provider) ParsePayload(_ context.Context, _ *params.Run, request *http.Request, payload string) (*info.Event, error)
- func (v *Provider) SetClient(_ context.Context, run *params.Run, runevent *info.Event) error
- func (v *Provider) SetLogger(logger *zap.SugaredLogger)
- func (v *Provider) Validate(_ context.Context, _ *params.Run, event *info.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Client *gitlab.Client Logger *zap.SugaredLogger Token *string // contains filtered or unexported fields }
func (*Provider) CreateStatus ¶
func (*Provider) Detect ¶
func (v *Provider) Detect(req *http.Request, payload string, logger *zap.SugaredLogger) (bool, bool, *zap.SugaredLogger, string, error)
Detect processes event and detect if it is a gitlab event, whether to process or reject it returns (if is a GL event, whether to process or reject, logger with event metadata,, error if any occurred)
func (*Provider) GetCommitInfo ¶
func (*Provider) GetConfig ¶
func (v *Provider) GetConfig() *info.ProviderConfig
func (*Provider) GetFileInsideRepo ¶
func (*Provider) GetTaskURI ¶ added in v0.13.0
func (v *Provider) GetTaskURI(ctx context.Context, params *params.Run, event *info.Event, uri string) (bool, string, error)
GetTaskURI TODO: Implement me
func (*Provider) GetTektonDir ¶
func (*Provider) ParsePayload ¶
func (*Provider) SetLogger ¶
func (v *Provider) SetLogger(logger *zap.SugaredLogger)
Click to show internal directories.
Click to hide internal directories.