Documentation ¶
Index ¶
- type MockClient
- func (c *MockClient) Create(ctx context.Context, resourceGroupName string, name string, ...) (result redis.CreateFuture, err error)
- func (c *MockClient) Delete(ctx context.Context, resourceGroupName string, name string) (result redis.DeleteFuture, err error)
- func (c *MockClient) Get(ctx context.Context, resourceGroupName string, name string) (result redis.ResourceType, err error)
- func (c *MockClient) ListKeys(ctx context.Context, resourceGroupName string, name string) (result redis.AccessKeys, err error)
- func (c *MockClient) Update(ctx context.Context, resourceGroupName string, name string, ...) (result redis.ResourceType, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { redisapi.ClientAPI MockCreate func(ctx context.Context, resourceGroupName string, name string, parameters redis.CreateParameters) (result redis.CreateFuture, err error) MockDelete func(ctx context.Context, resourceGroupName string, name string) (result redis.DeleteFuture, err error) MockGet func(ctx context.Context, resourceGroupName string, name string) (result redis.ResourceType, err error) MockListKeys func(ctx context.Context, resourceGroupName string, name string) (result redis.AccessKeys, err error) MockUpdate func(ctx context.Context, resourceGroupName string, name string, parameters redis.UpdateParameters) (result redis.ResourceType, err error) }
MockClient is a fake implementation of cloudmemorystore.Client.
func (*MockClient) Create ¶
func (c *MockClient) Create(ctx context.Context, resourceGroupName string, name string, parameters redis.CreateParameters) (result redis.CreateFuture, err error)
Create calls the MockClient's MockCreate method.
func (*MockClient) Delete ¶
func (c *MockClient) Delete(ctx context.Context, resourceGroupName string, name string) (result redis.DeleteFuture, err error)
Delete calls the MockClient's MockDelete method.
func (*MockClient) Get ¶
func (c *MockClient) Get(ctx context.Context, resourceGroupName string, name string) (result redis.ResourceType, err error)
Get calls the MockClient's MockGet method.
func (*MockClient) ListKeys ¶
func (c *MockClient) ListKeys(ctx context.Context, resourceGroupName string, name string) (result redis.AccessKeys, err error)
ListKeys calls the MockClient's MockListKeys method.
func (*MockClient) Update ¶
func (c *MockClient) Update(ctx context.Context, resourceGroupName string, name string, parameters redis.UpdateParameters) (result redis.ResourceType, err error)
Update calls the MockClient's MockUpdate method.
Click to show internal directories.
Click to hide internal directories.