mocks

package
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	mock.Mock
}

Clients is an autogenerated mock type for the Clients type

func NewClients

func NewClients(t mockConstructorTestingTNewClients) *Clients

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

func (*Clients) Bucket

func (_m *Clients) Bucket(name string, options ...bucket.BucketOption) (bucket.Bucket, error)

Bucket provides a mock function with given fields: name, options

func (*Clients) ClusterManager

func (_m *Clients) ClusterManager() (*container.ClusterManagerClient, error)

ClusterManager provides a mock function with given fields:

func (*Clients) EXPECT

func (_m *Clients) EXPECT() *Clients_Expecter

func (*Clients) PubSub

func (_m *Clients) PubSub(projectId string) (*pubsub.Client, error)

PubSub provides a mock function with given fields: projectId

func (*Clients) SetSubject

func (_m *Clients) SetSubject(subject string) google.Clients

SetSubject provides a mock function with given fields: subject

func (*Clients) Terra

func (_m *Clients) Terra() (terraapi.TerraClient, error)

Terra provides a mock function with given fields:

func (*Clients) TokenSource

func (_m *Clients) TokenSource() (oauth2.TokenSource, error)

TokenSource provides a mock function with given fields:

type Clients_Bucket_Call

type Clients_Bucket_Call struct {
	*mock.Call
}

Clients_Bucket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bucket'

func (*Clients_Bucket_Call) Return

func (*Clients_Bucket_Call) Run

func (_c *Clients_Bucket_Call) Run(run func(name string, options ...bucket.BucketOption)) *Clients_Bucket_Call

type Clients_ClusterManager_Call

type Clients_ClusterManager_Call struct {
	*mock.Call
}

Clients_ClusterManager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterManager'

func (*Clients_ClusterManager_Call) Return

func (*Clients_ClusterManager_Call) Run

type Clients_Expecter

type Clients_Expecter struct {
	// contains filtered or unexported fields
}

func (*Clients_Expecter) Bucket

func (_e *Clients_Expecter) Bucket(name interface{}, options ...interface{}) *Clients_Bucket_Call

Bucket is a helper method to define mock.On call

  • name string
  • options ...bucket.BucketOption

func (*Clients_Expecter) ClusterManager

func (_e *Clients_Expecter) ClusterManager() *Clients_ClusterManager_Call

ClusterManager is a helper method to define mock.On call

func (*Clients_Expecter) PubSub

func (_e *Clients_Expecter) PubSub(projectId interface{}) *Clients_PubSub_Call

PubSub is a helper method to define mock.On call

  • projectId string

func (*Clients_Expecter) SetSubject

func (_e *Clients_Expecter) SetSubject(subject interface{}) *Clients_SetSubject_Call

SetSubject is a helper method to define mock.On call

  • subject string

func (*Clients_Expecter) Terra

func (_e *Clients_Expecter) Terra() *Clients_Terra_Call

Terra is a helper method to define mock.On call

func (*Clients_Expecter) TokenSource

func (_e *Clients_Expecter) TokenSource() *Clients_TokenSource_Call

TokenSource is a helper method to define mock.On call

type Clients_PubSub_Call

type Clients_PubSub_Call struct {
	*mock.Call
}

Clients_PubSub_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PubSub'

func (*Clients_PubSub_Call) Return

func (*Clients_PubSub_Call) Run

func (_c *Clients_PubSub_Call) Run(run func(projectId string)) *Clients_PubSub_Call

type Clients_SetSubject_Call

type Clients_SetSubject_Call struct {
	*mock.Call
}

Clients_SetSubject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSubject'

func (*Clients_SetSubject_Call) Return

func (*Clients_SetSubject_Call) Run

func (_c *Clients_SetSubject_Call) Run(run func(subject string)) *Clients_SetSubject_Call

type Clients_Terra_Call

type Clients_Terra_Call struct {
	*mock.Call
}

Clients_Terra_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Terra'

func (*Clients_Terra_Call) Return

func (*Clients_Terra_Call) Run

func (_c *Clients_Terra_Call) Run(run func()) *Clients_Terra_Call

type Clients_TokenSource_Call

type Clients_TokenSource_Call struct {
	*mock.Call
}

Clients_TokenSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TokenSource'

func (*Clients_TokenSource_Call) Return

func (*Clients_TokenSource_Call) Run

Jump to

Keyboard shortcuts

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