provider

package
v0.24.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 10 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
}

func (*TestProviderImp) CheckPolicyAllowing added in v0.20.0

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

func (*TestProviderImp) CreateStatus

func (v *TestProviderImp) CreateStatus(_ context.Context, _ *info.Event, _ provider.StatusOpts) error

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, _ *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 (*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) 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) 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