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) PubSub(projectId string) (*pubsub.Client, error)
- func (_m *Clients) SetSubject(subject string) google.Clients
- func (_m *Clients) Terra() (terraapi.TerraClient, error)
- func (_m *Clients) TokenSource() (oauth2.TokenSource, error)
- type Clients_Bucket_Call
- type 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) PubSub(projectId interface{}) *Clients_PubSub_Call
- func (_e *Clients_Expecter) SetSubject(subject interface{}) *Clients_SetSubject_Call
- func (_e *Clients_Expecter) Terra() *Clients_Terra_Call
- func (_e *Clients_Expecter) TokenSource() *Clients_TokenSource_Call
- type Clients_PubSub_Call
- type Clients_SetSubject_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 ¶
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) 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) SetSubject ¶
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 ¶
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
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
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 ¶
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
type Clients_SetSubject_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 (_c *Clients_SetSubject_Call) Return(_a0 google.Clients) *Clients_SetSubject_Call
func (*Clients_SetSubject_Call) Run ¶
func (_c *Clients_SetSubject_Call) Run(run func(subject string)) *Clients_SetSubject_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
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