fake

package
v0.0.0-...-1738bad Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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