mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t mockConstructorTestingTNewAPI) *API

NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*API) Close

func (_m *API) Close() error

Close provides a mock function with given fields:

func (*API) ListLogs

func (_m *API) ListLogs(_a0 context.Context, _a1 *cloudlogging.Query) ([]*logging.LogEntry, error)

ListLogs provides a mock function with given fields: _a0, _a1

func (*API) ListProjectBucketViews added in v1.2.1

func (_m *API) ListProjectBucketViews(ctx context.Context, projectId string, bucketID string) ([]string, error)

ListProjectBucketViews provides a mock function with given fields: ctx, bucketID

func (*API) ListProjectBuckets added in v1.2.1

func (_m *API) ListProjectBuckets(ctx context.Context, projectID string) ([]string, error)

ListProjectBuckets provides a mock function with given fields: ctx, projectID

func (*API) ListProjects

func (_m *API) ListProjects(_a0 context.Context) ([]string, error)

ListProjects provides a mock function with given fields: _a0

func (*API) TestConnection

func (_m *API) TestConnection(ctx context.Context, projectID string) error

TestConnection provides a mock function with given fields: ctx, projectID

Jump to

Keyboard shortcuts

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