Documentation
¶
Index ¶
- type Client
- func (_mock *Client) Cluster() cluster.Client
- func (_mock *Client) ClusterService() cluster.Service
- func (_m *Client) EXPECT() *Client_Expecter
- func (_mock *Client) Hostname() v1beta3.HostnameServiceClient
- func (_mock *Client) Manifest() manifest.Client
- func (_mock *Client) Status(context1 context.Context) (*rest.ProviderStatus, error)
- func (_mock *Client) StatusV1(ctx context.Context) (*v1.Status, error)
- func (_mock *Client) Validate(context1 context.Context, address types.Address, groupSpec v1beta4.GroupSpec) (rest.ValidateGroupSpecResult, error)
- type Client_ClusterService_Call
- type Client_Cluster_Call
- type Client_Expecter
- func (_e *Client_Expecter) Cluster() *Client_Cluster_Call
- func (_e *Client_Expecter) ClusterService() *Client_ClusterService_Call
- func (_e *Client_Expecter) Hostname() *Client_Hostname_Call
- func (_e *Client_Expecter) Manifest() *Client_Manifest_Call
- func (_e *Client_Expecter) Status(context1 interface{}) *Client_Status_Call
- func (_e *Client_Expecter) StatusV1(ctx interface{}) *Client_StatusV1_Call
- func (_e *Client_Expecter) Validate(context1 interface{}, address interface{}, groupSpec interface{}) *Client_Validate_Call
- type Client_Hostname_Call
- type Client_Manifest_Call
- type Client_StatusV1_Call
- type Client_Status_Call
- func (_c *Client_Status_Call) Return(providerStatus *rest.ProviderStatus, err error) *Client_Status_Call
- func (_c *Client_Status_Call) Run(run func(context1 context.Context)) *Client_Status_Call
- func (_c *Client_Status_Call) RunAndReturn(run func(context1 context.Context) (*rest.ProviderStatus, error)) *Client_Status_Call
- type Client_Validate_Call
- type StatusClient
- type StatusClient_Expecter
- type StatusClient_StatusV1_Call
- func (_c *StatusClient_StatusV1_Call) Return(status *v1.Status, err error) *StatusClient_StatusV1_Call
- func (_c *StatusClient_StatusV1_Call) Run(run func(ctx context.Context)) *StatusClient_StatusV1_Call
- func (_c *StatusClient_StatusV1_Call) RunAndReturn(run func(ctx context.Context) (*v1.Status, error)) *StatusClient_StatusV1_Call
- type StatusClient_Status_Call
- func (_c *StatusClient_Status_Call) Return(providerStatus *rest.ProviderStatus, err error) *StatusClient_Status_Call
- func (_c *StatusClient_Status_Call) Run(run func(context1 context.Context)) *StatusClient_Status_Call
- func (_c *StatusClient_Status_Call) RunAndReturn(run func(context1 context.Context) (*rest.ProviderStatus, error)) *StatusClient_Status_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) ClusterService ¶
ClusterService provides a mock function for the type Client
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) Hostname ¶
func (_mock *Client) Hostname() v1beta3.HostnameServiceClient
Hostname provides a mock function for the type Client
type Client_ClusterService_Call ¶
Client_ClusterService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterService'
func (*Client_ClusterService_Call) Return ¶
func (_c *Client_ClusterService_Call) Return(service cluster.Service) *Client_ClusterService_Call
func (*Client_ClusterService_Call) Run ¶
func (_c *Client_ClusterService_Call) Run(run func()) *Client_ClusterService_Call
func (*Client_ClusterService_Call) RunAndReturn ¶
func (_c *Client_ClusterService_Call) RunAndReturn(run func() cluster.Service) *Client_ClusterService_Call
type Client_Cluster_Call ¶
Client_Cluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cluster'
func (*Client_Cluster_Call) Return ¶
func (_c *Client_Cluster_Call) Return(client cluster.Client) *Client_Cluster_Call
func (*Client_Cluster_Call) Run ¶
func (_c *Client_Cluster_Call) Run(run func()) *Client_Cluster_Call
func (*Client_Cluster_Call) RunAndReturn ¶
func (_c *Client_Cluster_Call) RunAndReturn(run func() cluster.Client) *Client_Cluster_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Cluster ¶
func (_e *Client_Expecter) Cluster() *Client_Cluster_Call
Cluster is a helper method to define mock.On call
func (*Client_Expecter) ClusterService ¶
func (_e *Client_Expecter) ClusterService() *Client_ClusterService_Call
ClusterService is a helper method to define mock.On call
func (*Client_Expecter) Hostname ¶
func (_e *Client_Expecter) Hostname() *Client_Hostname_Call
Hostname is a helper method to define mock.On call
func (*Client_Expecter) Manifest ¶
func (_e *Client_Expecter) Manifest() *Client_Manifest_Call
Manifest is a helper method to define mock.On call
func (*Client_Expecter) Status ¶
func (_e *Client_Expecter) Status(context1 interface{}) *Client_Status_Call
Status is a helper method to define mock.On call
- context1 context.Context
func (*Client_Expecter) StatusV1 ¶
func (_e *Client_Expecter) StatusV1(ctx interface{}) *Client_StatusV1_Call
StatusV1 is a helper method to define mock.On call
- ctx context.Context
func (*Client_Expecter) Validate ¶
func (_e *Client_Expecter) Validate(context1 interface{}, address interface{}, groupSpec interface{}) *Client_Validate_Call
Validate is a helper method to define mock.On call
- context1 context.Context
- address types.Address
- groupSpec v1beta4.GroupSpec
type Client_Hostname_Call ¶
Client_Hostname_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hostname'
func (*Client_Hostname_Call) Return ¶
func (_c *Client_Hostname_Call) Return(hostnameServiceClient v1beta3.HostnameServiceClient) *Client_Hostname_Call
func (*Client_Hostname_Call) Run ¶
func (_c *Client_Hostname_Call) Run(run func()) *Client_Hostname_Call
func (*Client_Hostname_Call) RunAndReturn ¶
func (_c *Client_Hostname_Call) RunAndReturn(run func() v1beta3.HostnameServiceClient) *Client_Hostname_Call
type Client_Manifest_Call ¶
Client_Manifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Manifest'
func (*Client_Manifest_Call) Return ¶
func (_c *Client_Manifest_Call) Return(client manifest.Client) *Client_Manifest_Call
func (*Client_Manifest_Call) Run ¶
func (_c *Client_Manifest_Call) Run(run func()) *Client_Manifest_Call
func (*Client_Manifest_Call) RunAndReturn ¶
func (_c *Client_Manifest_Call) RunAndReturn(run func() manifest.Client) *Client_Manifest_Call
type Client_StatusV1_Call ¶
Client_StatusV1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatusV1'
func (*Client_StatusV1_Call) Return ¶
func (_c *Client_StatusV1_Call) Return(status *v1.Status, err error) *Client_StatusV1_Call
func (*Client_StatusV1_Call) Run ¶
func (_c *Client_StatusV1_Call) Run(run func(ctx context.Context)) *Client_StatusV1_Call
func (*Client_StatusV1_Call) RunAndReturn ¶
func (_c *Client_StatusV1_Call) RunAndReturn(run func(ctx context.Context) (*v1.Status, error)) *Client_StatusV1_Call
type Client_Status_Call ¶
Client_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*Client_Status_Call) Return ¶
func (_c *Client_Status_Call) Return(providerStatus *rest.ProviderStatus, err error) *Client_Status_Call
func (*Client_Status_Call) Run ¶
func (_c *Client_Status_Call) Run(run func(context1 context.Context)) *Client_Status_Call
func (*Client_Status_Call) RunAndReturn ¶
func (_c *Client_Status_Call) RunAndReturn(run func(context1 context.Context) (*rest.ProviderStatus, error)) *Client_Status_Call
type Client_Validate_Call ¶
Client_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*Client_Validate_Call) Return ¶
func (_c *Client_Validate_Call) Return(validateGroupSpecResult rest.ValidateGroupSpecResult, err error) *Client_Validate_Call
func (*Client_Validate_Call) Run ¶
func (_c *Client_Validate_Call) Run(run func(context1 context.Context, address types.Address, groupSpec v1beta4.GroupSpec)) *Client_Validate_Call
func (*Client_Validate_Call) RunAndReturn ¶
func (_c *Client_Validate_Call) RunAndReturn(run func(context1 context.Context, address types.Address, groupSpec v1beta4.GroupSpec) (rest.ValidateGroupSpecResult, error)) *Client_Validate_Call
type StatusClient ¶
StatusClient is an autogenerated mock type for the StatusClient type
func NewStatusClient ¶
func NewStatusClient(t interface {
mock.TestingT
Cleanup(func())
}) *StatusClient
NewStatusClient creates a new instance of StatusClient. 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 (*StatusClient) EXPECT ¶
func (_m *StatusClient) EXPECT() *StatusClient_Expecter
type StatusClient_Expecter ¶
type StatusClient_Expecter struct {
// contains filtered or unexported fields
}
func (*StatusClient_Expecter) Status ¶
func (_e *StatusClient_Expecter) Status(context1 interface{}) *StatusClient_Status_Call
Status is a helper method to define mock.On call
- context1 context.Context
func (*StatusClient_Expecter) StatusV1 ¶
func (_e *StatusClient_Expecter) StatusV1(ctx interface{}) *StatusClient_StatusV1_Call
StatusV1 is a helper method to define mock.On call
- ctx context.Context
type StatusClient_StatusV1_Call ¶
StatusClient_StatusV1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatusV1'
func (*StatusClient_StatusV1_Call) Return ¶
func (_c *StatusClient_StatusV1_Call) Return(status *v1.Status, err error) *StatusClient_StatusV1_Call
func (*StatusClient_StatusV1_Call) Run ¶
func (_c *StatusClient_StatusV1_Call) Run(run func(ctx context.Context)) *StatusClient_StatusV1_Call
func (*StatusClient_StatusV1_Call) RunAndReturn ¶
func (_c *StatusClient_StatusV1_Call) RunAndReturn(run func(ctx context.Context) (*v1.Status, error)) *StatusClient_StatusV1_Call
type StatusClient_Status_Call ¶
StatusClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*StatusClient_Status_Call) Return ¶
func (_c *StatusClient_Status_Call) Return(providerStatus *rest.ProviderStatus, err error) *StatusClient_Status_Call
func (*StatusClient_Status_Call) Run ¶
func (_c *StatusClient_Status_Call) Run(run func(context1 context.Context)) *StatusClient_Status_Call
func (*StatusClient_Status_Call) RunAndReturn ¶
func (_c *StatusClient_Status_Call) RunAndReturn(run func(context1 context.Context) (*rest.ProviderStatus, error)) *StatusClient_Status_Call