fake

package
Version: v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL