Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProviderGitHubApp = "GitHubApp" ProviderGitHubWebhook = "GitHubWebhook" ProviderGitLabWebhook = "GitLabWebhook" )
View Source
const DefaultProviderAPIUser = "git"
Variables ¶
This section is empty.
Functions ¶
func CompareHostOfURLS ¶ added in v0.13.0
CompareHostOfURLS compares the host of two parsed URLs and returns true if they are
func IsOkToTestComment ¶
func IsTestRetestComment ¶
Types ¶
type Interface ¶
type Interface interface { SetLogger(*zap.SugaredLogger) Validate(ctx context.Context, params *params.Run, event *info.Event) error Detect(*http.Request, string, *zap.SugaredLogger) (bool, bool, *zap.SugaredLogger, string, error) ParsePayload(context.Context, *params.Run, *http.Request, string) (*info.Event, error) IsAllowed(context.Context, *info.Event) (bool, error) CreateStatus(context.Context, versioned.Interface, *info.Event, *info.PacOpts, StatusOpts) error GetTektonDir(context.Context, *info.Event, string) (string, error) // ctx, event, path GetFileInsideRepo(context.Context, *info.Event, string, string) (string, error) // ctx, event, path, branch SetClient(context.Context, *info.Event) error GetCommitInfo(context.Context, *info.Event) error GetConfig() *info.ProviderConfig GetFiles(context.Context, *info.Event) ([]string, error) GetTaskURI(ctx context.Context, params *params.Run, event *info.Event, uri string) (bool, string, error) }
Click to show internal directories.
Click to hide internal directories.