bitbucketcloud

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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
}

func (*Provider) CreateStatus

func (v *Provider) CreateStatus(_ context.Context, _ versioned.Interface, event *info.Event, pacopts *info.PacOpts, statusopts provider.StatusOpts) error

func (*Provider) Detect

func (v *Provider) Detect(req *http.Request, payload string, logger *zap.SugaredLogger) (bool, bool, *zap.SugaredLogger, string, error)

func (*Provider) GetCommitInfo

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

func (*Provider) GetConfig

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

func (*Provider) GetFileInsideRepo

func (v *Provider) GetFileInsideRepo(_ context.Context, runevent *info.Event, path, _ string) (string, error)

func (*Provider) GetFiles added in v0.12.0

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

func (*Provider) GetTaskURI added in v0.13.0

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

GetTaskURI TODO: Implement ME

func (*Provider) GetTektonDir

func (v *Provider) GetTektonDir(_ context.Context, event *info.Event, path string) (string, error)

func (*Provider) IsAllowed

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

func (*Provider) ParsePayload

func (v *Provider) ParsePayload(ctx context.Context, run *params.Run, request *http.Request, payload string) (*info.Event, error)

func (*Provider) SetClient

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

func (*Provider) SetLogger

func (v *Provider) SetLogger(logger *zap.SugaredLogger)

func (*Provider) Validate

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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