mocks

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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) IdTokenGenerator added in v1.1.5

func (_m *Clients) IdTokenGenerator(audience string, serviceAccountChain ...string) (func() ([]byte, error), error)

IdTokenGenerator provides a mock function with given fields: audience, serviceAccountChain

func (*Clients) PubSub

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

PubSub provides a mock function with given fields: projectId

func (*Clients) SqlAdmin added in v1.0.55

func (_m *Clients) SqlAdmin() (sqladmin.Client, error)

SqlAdmin provides a mock function with given fields:

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

func (*Clients_Bucket_Call) RunAndReturn added in v1.0.73

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

func (*Clients_ClusterManager_Call) RunAndReturn added in v1.0.73

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) IdTokenGenerator added in v1.1.5

func (_e *Clients_Expecter) IdTokenGenerator(audience interface{}, serviceAccountChain ...interface{}) *Clients_IdTokenGenerator_Call

IdTokenGenerator is a helper method to define mock.On call

  • audience string
  • serviceAccountChain ...string

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) SqlAdmin added in v1.0.55

func (_e *Clients_Expecter) SqlAdmin() *Clients_SqlAdmin_Call

SqlAdmin is a helper method to define mock.On call

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_IdTokenGenerator_Call added in v1.1.5

type Clients_IdTokenGenerator_Call struct {
	*mock.Call
}

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

func (*Clients_IdTokenGenerator_Call) Return added in v1.1.5

func (*Clients_IdTokenGenerator_Call) Run added in v1.1.5

func (_c *Clients_IdTokenGenerator_Call) Run(run func(audience string, serviceAccountChain ...string)) *Clients_IdTokenGenerator_Call

func (*Clients_IdTokenGenerator_Call) RunAndReturn added in v1.1.5

func (_c *Clients_IdTokenGenerator_Call) RunAndReturn(run func(string, ...string) (func() ([]byte, error), error)) *Clients_IdTokenGenerator_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

func (*Clients_PubSub_Call) RunAndReturn added in v1.0.73

func (_c *Clients_PubSub_Call) RunAndReturn(run func(string) (*pubsub.Client, error)) *Clients_PubSub_Call

type Clients_SqlAdmin_Call added in v1.0.55

type Clients_SqlAdmin_Call struct {
	*mock.Call
}

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

func (*Clients_SqlAdmin_Call) Return added in v1.0.55

func (*Clients_SqlAdmin_Call) Run added in v1.0.55

func (_c *Clients_SqlAdmin_Call) Run(run func()) *Clients_SqlAdmin_Call

func (*Clients_SqlAdmin_Call) RunAndReturn added in v1.0.73

func (_c *Clients_SqlAdmin_Call) RunAndReturn(run func() (sqladmin.Client, error)) *Clients_SqlAdmin_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

func (*Clients_Terra_Call) RunAndReturn added in v1.0.73

func (_c *Clients_Terra_Call) RunAndReturn(run func() (terraapi.TerraClient, error)) *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

func (*Clients_TokenSource_Call) RunAndReturn added in v1.0.73

Jump to

Keyboard shortcuts

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