Documentation ¶
Index ¶
- type MockClient
- func (c *MockClient) CreateInstance(ctx context.Context, req *redisv1pb.CreateInstanceRequest, ...) (*redisv1.CreateInstanceOperation, error)
- func (c *MockClient) DeleteInstance(ctx context.Context, req *redisv1pb.DeleteInstanceRequest, ...) (*redisv1.DeleteInstanceOperation, error)
- func (c *MockClient) GetInstance(ctx context.Context, req *redisv1pb.GetInstanceRequest, opts ...gax.CallOption) (*redisv1pb.Instance, error)
- func (c *MockClient) UpdateInstance(ctx context.Context, req *redisv1pb.UpdateInstanceRequest, ...) (*redisv1.UpdateInstanceOperation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { MockCreateInstance func(context.Context, *redisv1pb.CreateInstanceRequest, ...gax.CallOption) (*redisv1.CreateInstanceOperation, error) MockUpdateInstance func(context.Context, *redisv1pb.UpdateInstanceRequest, ...gax.CallOption) (*redisv1.UpdateInstanceOperation, error) MockDeleteInstance func(context.Context, *redisv1pb.DeleteInstanceRequest, ...gax.CallOption) (*redisv1.DeleteInstanceOperation, error) MockGetInstance func(context.Context, *redisv1pb.GetInstanceRequest, ...gax.CallOption) (*redisv1pb.Instance, error) }
MockClient is a fake implementation of cloudmemorystore.Client.
func (*MockClient) CreateInstance ¶
func (c *MockClient) CreateInstance(ctx context.Context, req *redisv1pb.CreateInstanceRequest, opts ...gax.CallOption) (*redisv1.CreateInstanceOperation, error)
CreateInstance calls the MockClient's MockCreateInstance function.
func (*MockClient) DeleteInstance ¶
func (c *MockClient) DeleteInstance(ctx context.Context, req *redisv1pb.DeleteInstanceRequest, opts ...gax.CallOption) (*redisv1.DeleteInstanceOperation, error)
DeleteInstance calls the MockClient's MockDeleteInstance function.
func (*MockClient) GetInstance ¶
func (c *MockClient) GetInstance(ctx context.Context, req *redisv1pb.GetInstanceRequest, opts ...gax.CallOption) (*redisv1pb.Instance, error)
GetInstance calls the MockClient's MockGetInstance function.
func (*MockClient) UpdateInstance ¶
func (c *MockClient) UpdateInstance(ctx context.Context, req *redisv1pb.UpdateInstanceRequest, opts ...gax.CallOption) (*redisv1.UpdateInstanceOperation, error)
UpdateInstance calls the MockClient's MockUpdateInstance function.
Click to show internal directories.
Click to hide internal directories.