provider

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 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
	WantProviderRemoteTask bool
}

func (*TestProviderImp) CreateStatus

func (*TestProviderImp) CreateToken added in v0.19.0

func (v *TestProviderImp) CreateToken(_ context.Context, _ []string, _ *params.Run, _ *info.Event) (string, error)

func (*TestProviderImp) Detect

func (*TestProviderImp) GetCommitInfo

func (v *TestProviderImp) GetCommitInfo(_ context.Context, _ *info.Event) error

func (*TestProviderImp) GetConfig

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

func (*TestProviderImp) GetFileInsideRepo

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

func (*TestProviderImp) GetFiles added in v0.12.0

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

func (*TestProviderImp) GetTaskURI added in v0.13.0

func (v *TestProviderImp) GetTaskURI(_ context.Context, _ *params.Run, _ *info.Event, _ string) (bool, string, error)

func (*TestProviderImp) GetTektonDir

func (v *TestProviderImp) GetTektonDir(_ context.Context, _ *info.Event, _, _ string) (string, error)

func (*TestProviderImp) IsAllowed

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

func (*TestProviderImp) ParsePayload

func (v *TestProviderImp) ParsePayload(_ context.Context, _ *params.Run, _ *http.Request, _ string) (*info.Event, error)

func (*TestProviderImp) SetClient

func (v *TestProviderImp) SetClient(_ context.Context, _ *params.Run, _ *info.Event) error

func (*TestProviderImp) SetLogger

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

func (*TestProviderImp) Validate

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

Jump to

Keyboard shortcuts

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