bitbucketserver

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package bitbucketserver provides bitbucket server integration with tofutf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEvent

func HandleEvent(r *http.Request, secret string) (*vcs.EventPayload, error)

Types

type TokenClient

type TokenClient struct {
	// contains filtered or unexported fields
}

func NewTokenClient

func NewTokenClient(opts vcs.NewTokenClientOptions) (*TokenClient, error)

func (*TokenClient) CreateWebhook

func (g *TokenClient) CreateWebhook(ctx context.Context, opts vcs.CreateWebhookOptions) (string, error)

func (*TokenClient) DeleteWebhook

func (g *TokenClient) DeleteWebhook(ctx context.Context, opts vcs.DeleteWebhookOptions) error

func (*TokenClient) GetCommit

func (g *TokenClient) GetCommit(ctx context.Context, repo, ref string) (vcs.Commit, error)

func (*TokenClient) GetCurrentUser

func (g *TokenClient) GetCurrentUser(ctx context.Context) (string, error)

func (*TokenClient) GetRepoTarball

func (g *TokenClient) GetRepoTarball(ctx context.Context, opts vcs.GetRepoTarballOptions) ([]byte, string, error)

func (*TokenClient) GetRepository

func (g *TokenClient) GetRepository(ctx context.Context, identifier string) (vcs.Repository, error)

func (*TokenClient) GetWebhook

func (g *TokenClient) GetWebhook(ctx context.Context, opts vcs.GetWebhookOptions) (vcs.Webhook, error)

func (*TokenClient) ListPullRequestFiles

func (g *TokenClient) ListPullRequestFiles(ctx context.Context, repo string, pull int) ([]string, error)

func (*TokenClient) ListRepositories

func (g *TokenClient) ListRepositories(ctx context.Context, lopts vcs.ListRepositoriesOptions) ([]string, error)

func (*TokenClient) ListTags

func (g *TokenClient) ListTags(ctx context.Context, opts vcs.ListTagsOptions) ([]string, error)

func (*TokenClient) SetStatus

func (g *TokenClient) SetStatus(ctx context.Context, opts vcs.SetStatusOptions) error

func (*TokenClient) UpdateWebhook

func (g *TokenClient) UpdateWebhook(ctx context.Context, id string, opts vcs.UpdateWebhookOptions) error

Jump to

Keyboard shortcuts

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