Documentation
¶
Index ¶
- type MockCloudService
- func (_m *MockCloudService) EXPECT() *MockCloudService_Expecter
- func (_mock *MockCloudService) GetNamespace(ctx context.Context, req *cloudservice.GetNamespaceRequest, ...) (*cloudservice.GetNamespaceResponse, error)
- func (_mock *MockCloudService) GetNamespaces(ctx context.Context, req *cloudservice.GetNamespacesRequest, ...) (*cloudservice.GetNamespacesResponse, error)
- func (_mock *MockCloudService) RenameCustomSearchAttribute(ctx context.Context, req *cloudservice.RenameCustomSearchAttributeRequest, ...) (*cloudservice.RenameCustomSearchAttributeResponse, error)
- func (_mock *MockCloudService) UpdateNamespace(ctx context.Context, req *cloudservice.UpdateNamespaceRequest, ...) (*cloudservice.UpdateNamespaceResponse, error)
- func (_mock *MockCloudService) UpdateNamespaceTags(ctx context.Context, req *cloudservice.UpdateNamespaceTagsRequest, ...) (*cloudservice.UpdateNamespaceTagsResponse, error)
- type MockCloudService_Expecter
- func (_e *MockCloudService_Expecter) GetNamespace(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_GetNamespace_Call
- func (_e *MockCloudService_Expecter) GetNamespaces(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_GetNamespaces_Call
- func (_e *MockCloudService_Expecter) RenameCustomSearchAttribute(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_RenameCustomSearchAttribute_Call
- func (_e *MockCloudService_Expecter) UpdateNamespace(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_UpdateNamespace_Call
- func (_e *MockCloudService_Expecter) UpdateNamespaceTags(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_UpdateNamespaceTags_Call
- type MockCloudService_GetNamespace_Call
- func (_c *MockCloudService_GetNamespace_Call) Return(getNamespaceResponse *cloudservice.GetNamespaceResponse, err error) *MockCloudService_GetNamespace_Call
- func (_c *MockCloudService_GetNamespace_Call) Run(run func(ctx context.Context, req *cloudservice.GetNamespaceRequest, ...)) *MockCloudService_GetNamespace_Call
- func (_c *MockCloudService_GetNamespace_Call) RunAndReturn(...) *MockCloudService_GetNamespace_Call
- type MockCloudService_GetNamespaces_Call
- func (_c *MockCloudService_GetNamespaces_Call) Return(getNamespacesResponse *cloudservice.GetNamespacesResponse, err error) *MockCloudService_GetNamespaces_Call
- func (_c *MockCloudService_GetNamespaces_Call) Run(run func(ctx context.Context, req *cloudservice.GetNamespacesRequest, ...)) *MockCloudService_GetNamespaces_Call
- func (_c *MockCloudService_GetNamespaces_Call) RunAndReturn(...) *MockCloudService_GetNamespaces_Call
- type MockCloudService_RenameCustomSearchAttribute_Call
- func (_c *MockCloudService_RenameCustomSearchAttribute_Call) Return(...) *MockCloudService_RenameCustomSearchAttribute_Call
- func (_c *MockCloudService_RenameCustomSearchAttribute_Call) Run(...) *MockCloudService_RenameCustomSearchAttribute_Call
- func (_c *MockCloudService_RenameCustomSearchAttribute_Call) RunAndReturn(...) *MockCloudService_RenameCustomSearchAttribute_Call
- type MockCloudService_UpdateNamespaceTags_Call
- func (_c *MockCloudService_UpdateNamespaceTags_Call) Return(updateNamespaceTagsResponse *cloudservice.UpdateNamespaceTagsResponse, ...) *MockCloudService_UpdateNamespaceTags_Call
- func (_c *MockCloudService_UpdateNamespaceTags_Call) Run(...) *MockCloudService_UpdateNamespaceTags_Call
- func (_c *MockCloudService_UpdateNamespaceTags_Call) RunAndReturn(...) *MockCloudService_UpdateNamespaceTags_Call
- type MockCloudService_UpdateNamespace_Call
- func (_c *MockCloudService_UpdateNamespace_Call) Return(updateNamespaceResponse *cloudservice.UpdateNamespaceResponse, err error) *MockCloudService_UpdateNamespace_Call
- func (_c *MockCloudService_UpdateNamespace_Call) Run(run func(ctx context.Context, req *cloudservice.UpdateNamespaceRequest, ...)) *MockCloudService_UpdateNamespace_Call
- func (_c *MockCloudService_UpdateNamespace_Call) RunAndReturn(...) *MockCloudService_UpdateNamespace_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCloudService ¶
MockCloudService is an autogenerated mock type for the CloudService type
func NewMockCloudService ¶
func NewMockCloudService(t interface {
mock.TestingT
Cleanup(func())
}) *MockCloudService
NewMockCloudService creates a new instance of MockCloudService. 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 (*MockCloudService) EXPECT ¶
func (_m *MockCloudService) EXPECT() *MockCloudService_Expecter
func (*MockCloudService) GetNamespace ¶
func (_mock *MockCloudService) GetNamespace(ctx context.Context, req *cloudservice.GetNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceResponse, error)
GetNamespace provides a mock function for the type MockCloudService
func (*MockCloudService) GetNamespaces ¶
func (_mock *MockCloudService) GetNamespaces(ctx context.Context, req *cloudservice.GetNamespacesRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespacesResponse, error)
GetNamespaces provides a mock function for the type MockCloudService
func (*MockCloudService) RenameCustomSearchAttribute ¶
func (_mock *MockCloudService) RenameCustomSearchAttribute(ctx context.Context, req *cloudservice.RenameCustomSearchAttributeRequest, opts ...grpc.CallOption) (*cloudservice.RenameCustomSearchAttributeResponse, error)
RenameCustomSearchAttribute provides a mock function for the type MockCloudService
func (*MockCloudService) UpdateNamespace ¶
func (_mock *MockCloudService) UpdateNamespace(ctx context.Context, req *cloudservice.UpdateNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceResponse, error)
UpdateNamespace provides a mock function for the type MockCloudService
func (*MockCloudService) UpdateNamespaceTags ¶
func (_mock *MockCloudService) UpdateNamespaceTags(ctx context.Context, req *cloudservice.UpdateNamespaceTagsRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceTagsResponse, error)
UpdateNamespaceTags provides a mock function for the type MockCloudService
type MockCloudService_Expecter ¶
type MockCloudService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCloudService_Expecter) GetNamespace ¶
func (_e *MockCloudService_Expecter) GetNamespace(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_GetNamespace_Call
GetNamespace is a helper method to define mock.On call
- ctx context.Context
- req *cloudservice.GetNamespaceRequest
- opts ...grpc.CallOption
func (*MockCloudService_Expecter) GetNamespaces ¶
func (_e *MockCloudService_Expecter) GetNamespaces(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_GetNamespaces_Call
GetNamespaces is a helper method to define mock.On call
- ctx context.Context
- req *cloudservice.GetNamespacesRequest
- opts ...grpc.CallOption
func (*MockCloudService_Expecter) RenameCustomSearchAttribute ¶
func (_e *MockCloudService_Expecter) RenameCustomSearchAttribute(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_RenameCustomSearchAttribute_Call
RenameCustomSearchAttribute is a helper method to define mock.On call
- ctx context.Context
- req *cloudservice.RenameCustomSearchAttributeRequest
- opts ...grpc.CallOption
func (*MockCloudService_Expecter) UpdateNamespace ¶
func (_e *MockCloudService_Expecter) UpdateNamespace(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_UpdateNamespace_Call
UpdateNamespace is a helper method to define mock.On call
- ctx context.Context
- req *cloudservice.UpdateNamespaceRequest
- opts ...grpc.CallOption
func (*MockCloudService_Expecter) UpdateNamespaceTags ¶
func (_e *MockCloudService_Expecter) UpdateNamespaceTags(ctx interface{}, req interface{}, opts ...interface{}) *MockCloudService_UpdateNamespaceTags_Call
UpdateNamespaceTags is a helper method to define mock.On call
- ctx context.Context
- req *cloudservice.UpdateNamespaceTagsRequest
- opts ...grpc.CallOption
type MockCloudService_GetNamespace_Call ¶
MockCloudService_GetNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNamespace'
func (*MockCloudService_GetNamespace_Call) Return ¶
func (_c *MockCloudService_GetNamespace_Call) Return(getNamespaceResponse *cloudservice.GetNamespaceResponse, err error) *MockCloudService_GetNamespace_Call
func (*MockCloudService_GetNamespace_Call) Run ¶
func (_c *MockCloudService_GetNamespace_Call) Run(run func(ctx context.Context, req *cloudservice.GetNamespaceRequest, opts ...grpc.CallOption)) *MockCloudService_GetNamespace_Call
func (*MockCloudService_GetNamespace_Call) RunAndReturn ¶
func (_c *MockCloudService_GetNamespace_Call) RunAndReturn(run func(ctx context.Context, req *cloudservice.GetNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceResponse, error)) *MockCloudService_GetNamespace_Call
type MockCloudService_GetNamespaces_Call ¶
MockCloudService_GetNamespaces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNamespaces'
func (*MockCloudService_GetNamespaces_Call) Return ¶
func (_c *MockCloudService_GetNamespaces_Call) Return(getNamespacesResponse *cloudservice.GetNamespacesResponse, err error) *MockCloudService_GetNamespaces_Call
func (*MockCloudService_GetNamespaces_Call) Run ¶
func (_c *MockCloudService_GetNamespaces_Call) Run(run func(ctx context.Context, req *cloudservice.GetNamespacesRequest, opts ...grpc.CallOption)) *MockCloudService_GetNamespaces_Call
func (*MockCloudService_GetNamespaces_Call) RunAndReturn ¶
func (_c *MockCloudService_GetNamespaces_Call) RunAndReturn(run func(ctx context.Context, req *cloudservice.GetNamespacesRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespacesResponse, error)) *MockCloudService_GetNamespaces_Call
type MockCloudService_RenameCustomSearchAttribute_Call ¶
MockCloudService_RenameCustomSearchAttribute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameCustomSearchAttribute'
func (*MockCloudService_RenameCustomSearchAttribute_Call) Return ¶
func (_c *MockCloudService_RenameCustomSearchAttribute_Call) Return(renameCustomSearchAttributeResponse *cloudservice.RenameCustomSearchAttributeResponse, err error) *MockCloudService_RenameCustomSearchAttribute_Call
func (*MockCloudService_RenameCustomSearchAttribute_Call) Run ¶
func (_c *MockCloudService_RenameCustomSearchAttribute_Call) Run(run func(ctx context.Context, req *cloudservice.RenameCustomSearchAttributeRequest, opts ...grpc.CallOption)) *MockCloudService_RenameCustomSearchAttribute_Call
func (*MockCloudService_RenameCustomSearchAttribute_Call) RunAndReturn ¶
func (_c *MockCloudService_RenameCustomSearchAttribute_Call) RunAndReturn(run func(ctx context.Context, req *cloudservice.RenameCustomSearchAttributeRequest, opts ...grpc.CallOption) (*cloudservice.RenameCustomSearchAttributeResponse, error)) *MockCloudService_RenameCustomSearchAttribute_Call
type MockCloudService_UpdateNamespaceTags_Call ¶
MockCloudService_UpdateNamespaceTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateNamespaceTags'
func (*MockCloudService_UpdateNamespaceTags_Call) Return ¶
func (_c *MockCloudService_UpdateNamespaceTags_Call) Return(updateNamespaceTagsResponse *cloudservice.UpdateNamespaceTagsResponse, err error) *MockCloudService_UpdateNamespaceTags_Call
func (*MockCloudService_UpdateNamespaceTags_Call) Run ¶
func (_c *MockCloudService_UpdateNamespaceTags_Call) Run(run func(ctx context.Context, req *cloudservice.UpdateNamespaceTagsRequest, opts ...grpc.CallOption)) *MockCloudService_UpdateNamespaceTags_Call
func (*MockCloudService_UpdateNamespaceTags_Call) RunAndReturn ¶
func (_c *MockCloudService_UpdateNamespaceTags_Call) RunAndReturn(run func(ctx context.Context, req *cloudservice.UpdateNamespaceTagsRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceTagsResponse, error)) *MockCloudService_UpdateNamespaceTags_Call
type MockCloudService_UpdateNamespace_Call ¶
MockCloudService_UpdateNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateNamespace'
func (*MockCloudService_UpdateNamespace_Call) Return ¶
func (_c *MockCloudService_UpdateNamespace_Call) Return(updateNamespaceResponse *cloudservice.UpdateNamespaceResponse, err error) *MockCloudService_UpdateNamespace_Call
func (*MockCloudService_UpdateNamespace_Call) Run ¶
func (_c *MockCloudService_UpdateNamespace_Call) Run(run func(ctx context.Context, req *cloudservice.UpdateNamespaceRequest, opts ...grpc.CallOption)) *MockCloudService_UpdateNamespace_Call
func (*MockCloudService_UpdateNamespace_Call) RunAndReturn ¶
func (_c *MockCloudService_UpdateNamespace_Call) RunAndReturn(run func(ctx context.Context, req *cloudservice.UpdateNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceResponse, error)) *MockCloudService_UpdateNamespace_Call