Documentation ¶
Index ¶
- type BuildBucketInterface
- func (_m *BuildBucketInterface) CancelBuild(ctx context.Context, buildID int64, summaryMarkdown string) (*buildbucketpb.Build, error)
- func (_m *BuildBucketInterface) CancelBuilds(ctx context.Context, buildIDs []int64, summaryMarkdown string) ([]*buildbucketpb.Build, error)
- func (_m *BuildBucketInterface) GetBuild(ctx context.Context, buildId int64) (*buildbucketpb.Build, error)
- func (_m *BuildBucketInterface) GetTrybotsForCL(ctx context.Context, issue int64, patchset int64, gerritUrl string, ...) ([]*buildbucketpb.Build, error)
- func (_m *BuildBucketInterface) ScheduleBuilds(ctx context.Context, builds []string, ...) ([]*buildbucketpb.Build, error)
- func (_m *BuildBucketInterface) Search(ctx context.Context, pred *buildbucketpb.BuildPredicate) ([]*buildbucketpb.Build, error)
- func (_m *BuildBucketInterface) StartBuild(ctx context.Context, buildId int64, taskId string, token string) (string, error)
- func (_m *BuildBucketInterface) UpdateBuild(ctx context.Context, build *buildbucketpb.Build, token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildBucketInterface ¶
BuildBucketInterface is an autogenerated mock type for the BuildBucketInterface type
func NewBuildBucketInterface ¶
func NewBuildBucketInterface(t interface { mock.TestingT Cleanup(func()) }) *BuildBucketInterface
NewBuildBucketInterface creates a new instance of BuildBucketInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BuildBucketInterface) CancelBuild ¶
func (_m *BuildBucketInterface) CancelBuild(ctx context.Context, buildID int64, summaryMarkdown string) (*buildbucketpb.Build, error)
CancelBuild provides a mock function with given fields: ctx, buildID, summaryMarkdown
func (*BuildBucketInterface) CancelBuilds ¶
func (_m *BuildBucketInterface) CancelBuilds(ctx context.Context, buildIDs []int64, summaryMarkdown string) ([]*buildbucketpb.Build, error)
CancelBuilds provides a mock function with given fields: ctx, buildIDs, summaryMarkdown
func (*BuildBucketInterface) GetBuild ¶
func (_m *BuildBucketInterface) GetBuild(ctx context.Context, buildId int64) (*buildbucketpb.Build, error)
GetBuild provides a mock function with given fields: ctx, buildId
func (*BuildBucketInterface) GetTrybotsForCL ¶
func (_m *BuildBucketInterface) GetTrybotsForCL(ctx context.Context, issue int64, patchset int64, gerritUrl string, tags map[string]string) ([]*buildbucketpb.Build, error)
GetTrybotsForCL provides a mock function with given fields: ctx, issue, patchset, gerritUrl, tags
func (*BuildBucketInterface) ScheduleBuilds ¶
func (_m *BuildBucketInterface) ScheduleBuilds(ctx context.Context, builds []string, buildsToTags map[string]map[string]string, issue int64, patchset int64, gerritUrl string, repo string, bbProject string, bbBucket string) ([]*buildbucketpb.Build, error)
ScheduleBuilds provides a mock function with given fields: ctx, builds, buildsToTags, issue, patchset, gerritUrl, repo, bbProject, bbBucket
func (*BuildBucketInterface) Search ¶
func (_m *BuildBucketInterface) Search(ctx context.Context, pred *buildbucketpb.BuildPredicate) ([]*buildbucketpb.Build, error)
Search provides a mock function with given fields: ctx, pred
func (*BuildBucketInterface) StartBuild ¶
func (_m *BuildBucketInterface) StartBuild(ctx context.Context, buildId int64, taskId string, token string) (string, error)
StartBuild provides a mock function with given fields: ctx, buildId, taskId, token
func (*BuildBucketInterface) UpdateBuild ¶
func (_m *BuildBucketInterface) UpdateBuild(ctx context.Context, build *buildbucketpb.Build, token string) error
UpdateBuild provides a mock function with given fields: ctx, build, token