Documentation ¶
Index ¶
- type Provider
- func (v *Provider) CheckPolicyAllowing(_ context.Context, _ *info.Event, _ []string) (bool, string)
- func (v *Provider) CreateStatus(_ context.Context, event *info.Event, statusopts provider.StatusOpts) error
- func (v *Provider) CreateToken(_ context.Context, _ []string, _ *info.Event) (string, error)
- func (v *Provider) Detect(req *http.Request, payload string, logger *zap.SugaredLogger) (bool, bool, *zap.SugaredLogger, string, error)
- func (v *Provider) GetCommitInfo(_ context.Context, event *info.Event) error
- func (v *Provider) GetConfig() *info.ProviderConfig
- func (v *Provider) GetFileInsideRepo(_ context.Context, event *info.Event, path, _ string) (string, error)
- func (v *Provider) GetFiles(_ context.Context, _ *info.Event) (changedfiles.ChangedFiles, error)
- func (v *Provider) GetTaskURI(_ context.Context, _ *info.Event, _ string) (bool, string, error)
- func (v *Provider) GetTektonDir(_ context.Context, event *info.Event, path, provenance string) (string, error)
- func (v *Provider) IsAllowed(ctx context.Context, event *info.Event) (bool, error)
- func (v *Provider) IsAllowedOwnersFile(ctx context.Context, event *info.Event) (bool, error)
- func (v *Provider) ParsePayload(ctx context.Context, run *params.Run, request *http.Request, payload string) (*info.Event, error)
- func (v *Provider) SetClient(_ context.Context, run *params.Run, event *info.Event, _ *v1alpha1.Repository, ...) error
- func (v *Provider) SetLogger(logger *zap.SugaredLogger)
- func (v *Provider) Validate(_ context.Context, _ *params.Run, _ *info.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Client *bitbucket.Client Logger *zap.SugaredLogger Token, APIURL *string Username *string // contains filtered or unexported fields }
func (*Provider) CheckPolicyAllowing ¶ added in v0.20.0
CheckPolicyAllowing TODO: Implement ME.
func (*Provider) CreateStatus ¶
func (*Provider) CreateToken ¶ added in v0.19.0
func (*Provider) GetCommitInfo ¶
func (*Provider) GetConfig ¶
func (v *Provider) GetConfig() *info.ProviderConfig
func (*Provider) GetFileInsideRepo ¶
func (*Provider) GetFiles ¶ added in v0.12.0
func (v *Provider) GetFiles(_ context.Context, _ *info.Event) (changedfiles.ChangedFiles, error)
func (*Provider) GetTaskURI ¶ added in v0.13.0
GetTaskURI TODO: Implement ME.
func (*Provider) GetTektonDir ¶
func (*Provider) IsAllowedOwnersFile ¶ added in v0.22.1
IsAllowedOwnersFile get the owner file from main branch and check if we have explicitly allowed the user in there.
func (*Provider) ParsePayload ¶
func (*Provider) SetLogger ¶
func (v *Provider) SetLogger(logger *zap.SugaredLogger)
Click to show internal directories.
Click to hide internal directories.