Documentation ¶
Index ¶
- type TestProviderImp
- func (v *TestProviderImp) CreateStatus(ctx context.Context, _ versioned.Interface, event *info.Event, ...) error
- func (v *TestProviderImp) Detect(request *http.Request, body string, logger *zap.SugaredLogger) (bool, bool, *zap.SugaredLogger, string, error)
- func (v *TestProviderImp) GetCommitInfo(ctx context.Context, runevent *info.Event) error
- func (v *TestProviderImp) GetConfig() *info.ProviderConfig
- func (v *TestProviderImp) GetFileInsideRepo(ctx context.Context, event *info.Event, file string, targetBranch string) (string, error)
- func (v *TestProviderImp) GetFiles(ctx context.Context, event *info.Event) ([]string, error)
- func (v *TestProviderImp) GetTektonDir(ctx context.Context, event *info.Event, s string) (string, error)
- func (v *TestProviderImp) IsAllowed(ctx context.Context, event *info.Event) (bool, error)
- func (v *TestProviderImp) ParsePayload(ctx context.Context, run *params.Run, request *http.Request, payload string) (*info.Event, error)
- func (v *TestProviderImp) SetClient(ctx context.Context, event *info.Event) error
- func (v *TestProviderImp) SetLogger(logger *zap.SugaredLogger)
- func (v *TestProviderImp) Validate(ctx context.Context, params *params.Run, event *info.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestProviderImp ¶
type TestProviderImp struct { AllowIT bool Event *info.Event TektonDirTemplate string CreateStatusErorring bool FilesInsideRepo map[string]string }
func (*TestProviderImp) CreateStatus ¶
func (*TestProviderImp) Detect ¶
func (v *TestProviderImp) Detect(request *http.Request, body string, logger *zap.SugaredLogger) (bool, bool, *zap.SugaredLogger, string, error)
func (*TestProviderImp) GetCommitInfo ¶
func (*TestProviderImp) GetConfig ¶
func (v *TestProviderImp) GetConfig() *info.ProviderConfig
func (*TestProviderImp) GetFileInsideRepo ¶
func (*TestProviderImp) GetTektonDir ¶
func (*TestProviderImp) ParsePayload ¶
func (*TestProviderImp) SetLogger ¶
func (v *TestProviderImp) SetLogger(logger *zap.SugaredLogger)
Click to show internal directories.
Click to hide internal directories.