Documentation ¶
Index ¶
- Constants
- func New() repository.Bitbucket
- type BitbucketMock
- func (b *BitbucketMock) AddCommitBuildStatus(ctx context.Context, commitHash string, url string, key string, success bool) error
- func (b *BitbucketMock) CreatePullRequestComment(ctx context.Context, pullRequestId int, comment string) error
- func (b *BitbucketMock) FilterExistingUsernames(ctx context.Context, usernames []string) ([]string, error)
- func (b *BitbucketMock) GetBitbucketUser(ctx context.Context, username string) (repository.BitbucketUser, error)
- func (b *BitbucketMock) GetBitbucketUsers(ctx context.Context, usernames []string) ([]repository.BitbucketUser, error)
- func (b *BitbucketMock) GetChangedFilesOnPullRequest(ctx context.Context, pullRequestId int) ([]repository.File, string, error)
- func (b *BitbucketMock) IsBitbucket() bool
- func (b *BitbucketMock) Setup() error
- func (b *BitbucketMock) SetupClient(ctx context.Context) error
Constants ¶
View Source
const FILTER_FAILED_USERNAME = "filterfailedusername"
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() repository.Bitbucket
Types ¶
type BitbucketMock ¶
type BitbucketMock struct { ChangedFilesResponse []repository.File PRHead string Recording []string }
func (*BitbucketMock) AddCommitBuildStatus ¶ added in v0.38.0
func (*BitbucketMock) CreatePullRequestComment ¶ added in v0.38.0
func (*BitbucketMock) FilterExistingUsernames ¶
func (*BitbucketMock) GetBitbucketUser ¶
func (b *BitbucketMock) GetBitbucketUser(ctx context.Context, username string) (repository.BitbucketUser, error)
func (*BitbucketMock) GetBitbucketUsers ¶
func (b *BitbucketMock) GetBitbucketUsers(ctx context.Context, usernames []string) ([]repository.BitbucketUser, error)
func (*BitbucketMock) GetChangedFilesOnPullRequest ¶ added in v0.38.0
func (b *BitbucketMock) GetChangedFilesOnPullRequest(ctx context.Context, pullRequestId int) ([]repository.File, string, error)
func (*BitbucketMock) IsBitbucket ¶
func (b *BitbucketMock) IsBitbucket() bool
func (*BitbucketMock) Setup ¶
func (b *BitbucketMock) Setup() error
func (*BitbucketMock) SetupClient ¶ added in v0.33.0
func (b *BitbucketMock) SetupClient(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.