Help us shape the future of Go! Take the 2026 Go Developer Survey

provider

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 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
	PolicyDisallowing      bool
	AllowedInOwnersFile    bool
	WantAllChangedFiles    []string
	WantAddedFiles         []string
	WantDeletedFiles       []string
	WantModifiedFiles      []string
	WantRenamedFiles       []string
	FailGetCommitInfo      bool
	CommitInfoErrorMsg     string

	CommitStatuses []provider.CommitStatusInfo
	// contains filtered or unexported fields
}

func (*TestProviderImp) CheckPolicyAllowing added in v0.20.0

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

func (*TestProviderImp) CreateComment added in v0.34.0

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

func (*TestProviderImp) CreateStatus

func (*TestProviderImp) CreateToken added in v0.19.0

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

func (*TestProviderImp) Detect

func (*TestProviderImp) GetCommitInfo

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

func (*TestProviderImp) GetCommitStatuses added in v0.44.0

func (v *TestProviderImp) GetCommitStatuses(_ context.Context, _ *info.Event) ([]provider.CommitStatusInfo, 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 (*TestProviderImp) GetTaskURI added in v0.13.0

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

func (*TestProviderImp) GetTektonDir

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

func (*TestProviderImp) GetTemplate added in v0.34.0

func (v *TestProviderImp) GetTemplate(commentType provider.CommentType) string

func (*TestProviderImp) IsAllowed

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

func (*TestProviderImp) IsAllowedOwnersFile added in v0.22.1

func (v *TestProviderImp) IsAllowedOwnersFile(_ 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 (*TestProviderImp) SetLogger

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

func (*TestProviderImp) SetPacInfo added in v0.26.0

func (v *TestProviderImp) SetPacInfo(pacInfo *info.PacOpts)

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