provider

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (v *TestProviderImp) CreateStatus(ctx context.Context, _ versioned.Interface, event *info.Event, opts *info.PacOpts, statusOpts provider.StatusOpts) error

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 (v *TestProviderImp) GetCommitInfo(ctx context.Context, runevent *info.Event) error

func (*TestProviderImp) GetConfig

func (v *TestProviderImp) GetConfig() *info.ProviderConfig

func (*TestProviderImp) GetFileInsideRepo

func (v *TestProviderImp) GetFileInsideRepo(ctx context.Context, event *info.Event, file string, targetBranch string) (string, error)

func (*TestProviderImp) GetFiles added in v0.12.0

func (v *TestProviderImp) GetFiles(ctx context.Context, event *info.Event) ([]string, error)

func (*TestProviderImp) GetTektonDir

func (v *TestProviderImp) GetTektonDir(ctx context.Context, event *info.Event, s string) (string, error)

func (*TestProviderImp) IsAllowed

func (v *TestProviderImp) IsAllowed(ctx context.Context, event *info.Event) (bool, error)

func (*TestProviderImp) ParsePayload

func (v *TestProviderImp) ParsePayload(ctx context.Context, run *params.Run, request *http.Request, payload string) (*info.Event, error)

func (*TestProviderImp) SetClient

func (v *TestProviderImp) SetClient(ctx context.Context, event *info.Event) error

func (*TestProviderImp) SetLogger

func (v *TestProviderImp) SetLogger(logger *zap.SugaredLogger)

func (*TestProviderImp) Validate

func (v *TestProviderImp) Validate(ctx context.Context, params *params.Run, event *info.Event) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL