Documentation ¶
Index ¶
- type Clients
- func (_m *Clients) Bucket(name string, options ...bucket.BucketOption) (bucket.Bucket, error)
- func (_m *Clients) ClusterManager() (*container.ClusterManagerClient, error)
- func (_m *Clients) EXPECT() *Clients_Expecter
- func (_m *Clients) IdTokenGenerator(audience string, serviceAccountChain ...string) (func() ([]byte, error), error)
- func (_m *Clients) PubSub(projectId string) (*pubsub.Client, error)
- func (_m *Clients) SqlAdmin() (sqladmin.Client, error)
- func (_m *Clients) Terra() (terraapi.TerraClient, error)
- func (_m *Clients) TokenSource() (oauth2.TokenSource, error)
- type Clients_Bucket_Call
- func (_c *Clients_Bucket_Call) Return(_a0 bucket.Bucket, _a1 error) *Clients_Bucket_Call
- func (_c *Clients_Bucket_Call) Run(run func(name string, options ...bucket.BucketOption)) *Clients_Bucket_Call
- func (_c *Clients_Bucket_Call) RunAndReturn(run func(string, ...bucket.BucketOption) (bucket.Bucket, error)) *Clients_Bucket_Call
- type Clients_ClusterManager_Call
- func (_c *Clients_ClusterManager_Call) Return(_a0 *container.ClusterManagerClient, _a1 error) *Clients_ClusterManager_Call
- func (_c *Clients_ClusterManager_Call) Run(run func()) *Clients_ClusterManager_Call
- func (_c *Clients_ClusterManager_Call) RunAndReturn(run func() (*container.ClusterManagerClient, error)) *Clients_ClusterManager_Call
- type Clients_Expecter
- func (_e *Clients_Expecter) Bucket(name interface{}, options ...interface{}) *Clients_Bucket_Call
- func (_e *Clients_Expecter) ClusterManager() *Clients_ClusterManager_Call
- func (_e *Clients_Expecter) IdTokenGenerator(audience interface{}, serviceAccountChain ...interface{}) *Clients_IdTokenGenerator_Call
- func (_e *Clients_Expecter) PubSub(projectId interface{}) *Clients_PubSub_Call
- func (_e *Clients_Expecter) SqlAdmin() *Clients_SqlAdmin_Call
- func (_e *Clients_Expecter) Terra() *Clients_Terra_Call
- func (_e *Clients_Expecter) TokenSource() *Clients_TokenSource_Call
- type Clients_IdTokenGenerator_Call
- func (_c *Clients_IdTokenGenerator_Call) Return(_a0 func() ([]byte, error), _a1 error) *Clients_IdTokenGenerator_Call
- func (_c *Clients_IdTokenGenerator_Call) Run(run func(audience string, serviceAccountChain ...string)) *Clients_IdTokenGenerator_Call
- func (_c *Clients_IdTokenGenerator_Call) RunAndReturn(run func(string, ...string) (func() ([]byte, error), error)) *Clients_IdTokenGenerator_Call
- type Clients_PubSub_Call
- type Clients_SqlAdmin_Call
- type Clients_Terra_Call
- type Clients_TokenSource_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clients ¶
Clients is an autogenerated mock type for the Clients type
func NewClients ¶
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) 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) 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 ¶
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 (_c *Clients_Bucket_Call) Return(_a0 bucket.Bucket, _a1 error) *Clients_Bucket_Call
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
func (_c *Clients_Bucket_Call) RunAndReturn(run func(string, ...bucket.BucketOption) (bucket.Bucket, error)) *Clients_Bucket_Call
type Clients_ClusterManager_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 (_c *Clients_ClusterManager_Call) Return(_a0 *container.ClusterManagerClient, _a1 error) *Clients_ClusterManager_Call
func (*Clients_ClusterManager_Call) Run ¶
func (_c *Clients_ClusterManager_Call) Run(run func()) *Clients_ClusterManager_Call
func (*Clients_ClusterManager_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Clients_ClusterManager_Call) RunAndReturn(run func() (*container.ClusterManagerClient, error)) *Clients_ClusterManager_Call
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
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 (_c *Clients_IdTokenGenerator_Call) Return(_a0 func() ([]byte, error), _a1 error) *Clients_IdTokenGenerator_Call
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 ¶
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 (_c *Clients_PubSub_Call) Return(_a0 *pubsub.Client, _a1 error) *Clients_PubSub_Call
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
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 (_c *Clients_SqlAdmin_Call) Return(_a0 sqladmin.Client, _a1 error) *Clients_SqlAdmin_Call
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 ¶
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 (_c *Clients_Terra_Call) Return(_a0 terraapi.TerraClient, _a1 error) *Clients_Terra_Call
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 ¶
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 (_c *Clients_TokenSource_Call) Return(_a0 oauth2.TokenSource, _a1 error) *Clients_TokenSource_Call
func (*Clients_TokenSource_Call) Run ¶
func (_c *Clients_TokenSource_Call) Run(run func()) *Clients_TokenSource_Call
func (*Clients_TokenSource_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Clients_TokenSource_Call) RunAndReturn(run func() (oauth2.TokenSource, error)) *Clients_TokenSource_Call