Documentation ¶
Index ¶
- type FakeClient
- func (fc *FakeClient) CancelBuild(ctx context.Context, project, id string) (*cloudbuildpb.Build, error)
- func (fc *FakeClient) CreateBuild(ctx context.Context, project string, bld *cloudbuildpb.Build) (*cloudbuildpb.Build, error)
- func (fc *FakeClient) GetBuild(ctx context.Context, project, id string) (*cloudbuildpb.Build, error)
- func (fc *FakeClient) ListBuildsByTag(ctx context.Context, project string, tags []string) ([]*cloudbuildpb.Build, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { // builds in map{project: map{id: *Build}} Builds map[string]map[string]*cloudbuildpb.Build Err error }
func NewFakeClient ¶
func NewFakeClient() *FakeClient
func (*FakeClient) CancelBuild ¶
func (fc *FakeClient) CancelBuild(ctx context.Context, project, id string) (*cloudbuildpb.Build, error)
func (*FakeClient) CreateBuild ¶
func (fc *FakeClient) CreateBuild(ctx context.Context, project string, bld *cloudbuildpb.Build) (*cloudbuildpb.Build, error)
Figure out whether wait here or wait by caller
func (*FakeClient) GetBuild ¶
func (fc *FakeClient) GetBuild(ctx context.Context, project, id string) (*cloudbuildpb.Build, error)
func (*FakeClient) ListBuildsByTag ¶
func (fc *FakeClient) ListBuildsByTag(ctx context.Context, project string, tags []string) ([]*cloudbuildpb.Build, error)
Click to show internal directories.
Click to hide internal directories.