Documentation ¶
Overview ¶
Package buildbucket contains logic of interacting with Buildbucket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client to communicate with Buildbucket. It wraps a bbpb.BuildsClient.
type FakeClient ¶
FakeClient is a fake implementation of bbpb.BuildsClient for testing.
func (*FakeClient) GetBuild ¶
func (f *FakeClient) GetBuild(ctx context.Context, in *bbpb.GetBuildRequest, opts ...grpc.CallOption) (*bbpb.Build, error)
GetBuild provides an implementation of the GetBuild RPC using an in-memory list of builds.
type GetBuildsClient ¶
type GetBuildsClient interface {
GetBuild(ctx context.Context, in *bbpb.GetBuildRequest, opts ...grpc.CallOption) (*bbpb.Build, error)
}
type MockedClient ¶
type MockedClient struct { Client *bbpb.MockBuildsClient Ctx context.Context }
MockedClient is a mocked Buildbucket client for testing. It wraps a bbpb.MockBuildsClient and a context with the mocked client.
func NewMockedClient ¶
func NewMockedClient(ctx context.Context, ctl *gomock.Controller) *MockedClient
NewMockedClient creates a MockedClient for testing.
func (*MockedClient) GetBuild ¶
func (mc *MockedClient) GetBuild(req *bbpb.GetBuildRequest, res *bbpb.Build)
GetBuild Mocks the GetBuild RPC.
Click to show internal directories.
Click to hide internal directories.