fake

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessPolicyAssignmentServer

type AccessPolicyAssignmentServer struct {
	// BeginCreateUpdate is the fake for method AccessPolicyAssignmentClient.BeginCreateUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateUpdate func(ctx context.Context, resourceGroupName string, cacheName string, accessPolicyAssignmentName string, parameters armredis.CacheAccessPolicyAssignment, options *armredis.AccessPolicyAssignmentClientBeginCreateUpdateOptions) (resp azfake.PollerResponder[armredis.AccessPolicyAssignmentClientCreateUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AccessPolicyAssignmentClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, cacheName string, accessPolicyAssignmentName string, options *armredis.AccessPolicyAssignmentClientBeginDeleteOptions) (resp azfake.PollerResponder[armredis.AccessPolicyAssignmentClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AccessPolicyAssignmentClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, cacheName string, accessPolicyAssignmentName string, options *armredis.AccessPolicyAssignmentClientGetOptions) (resp azfake.Responder[armredis.AccessPolicyAssignmentClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AccessPolicyAssignmentClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, cacheName string, options *armredis.AccessPolicyAssignmentClientListOptions) (resp azfake.PagerResponder[armredis.AccessPolicyAssignmentClientListResponse])
}

AccessPolicyAssignmentServer is a fake server for instances of the armredis.AccessPolicyAssignmentClient type.

type AccessPolicyAssignmentServerTransport

type AccessPolicyAssignmentServerTransport struct {
	// contains filtered or unexported fields
}

AccessPolicyAssignmentServerTransport connects instances of armredis.AccessPolicyAssignmentClient to instances of AccessPolicyAssignmentServer. Don't use this type directly, use NewAccessPolicyAssignmentServerTransport instead.

func NewAccessPolicyAssignmentServerTransport

func NewAccessPolicyAssignmentServerTransport(srv *AccessPolicyAssignmentServer) *AccessPolicyAssignmentServerTransport

NewAccessPolicyAssignmentServerTransport creates a new instance of AccessPolicyAssignmentServerTransport with the provided implementation. The returned AccessPolicyAssignmentServerTransport instance is connected to an instance of armredis.AccessPolicyAssignmentClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AccessPolicyAssignmentServerTransport) Do

Do implements the policy.Transporter interface for AccessPolicyAssignmentServerTransport.

type AccessPolicyServer

type AccessPolicyServer struct {
	// BeginCreateUpdate is the fake for method AccessPolicyClient.BeginCreateUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateUpdate func(ctx context.Context, resourceGroupName string, cacheName string, accessPolicyName string, parameters armredis.CacheAccessPolicy, options *armredis.AccessPolicyClientBeginCreateUpdateOptions) (resp azfake.PollerResponder[armredis.AccessPolicyClientCreateUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AccessPolicyClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, cacheName string, accessPolicyName string, options *armredis.AccessPolicyClientBeginDeleteOptions) (resp azfake.PollerResponder[armredis.AccessPolicyClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AccessPolicyClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, cacheName string, accessPolicyName string, options *armredis.AccessPolicyClientGetOptions) (resp azfake.Responder[armredis.AccessPolicyClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AccessPolicyClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, cacheName string, options *armredis.AccessPolicyClientListOptions) (resp azfake.PagerResponder[armredis.AccessPolicyClientListResponse])
}

AccessPolicyServer is a fake server for instances of the armredis.AccessPolicyClient type.

type AccessPolicyServerTransport

type AccessPolicyServerTransport struct {
	// contains filtered or unexported fields
}

AccessPolicyServerTransport connects instances of armredis.AccessPolicyClient to instances of AccessPolicyServer. Don't use this type directly, use NewAccessPolicyServerTransport instead.

func NewAccessPolicyServerTransport

func NewAccessPolicyServerTransport(srv *AccessPolicyServer) *AccessPolicyServerTransport

NewAccessPolicyServerTransport creates a new instance of AccessPolicyServerTransport with the provided implementation. The returned AccessPolicyServerTransport instance is connected to an instance of armredis.AccessPolicyClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AccessPolicyServerTransport) Do

Do implements the policy.Transporter interface for AccessPolicyServerTransport.

type AsyncOperationStatusServer

type AsyncOperationStatusServer struct {
	// Get is the fake for method AsyncOperationStatusClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, location string, operationID string, options *armredis.AsyncOperationStatusClientGetOptions) (resp azfake.Responder[armredis.AsyncOperationStatusClientGetResponse], errResp azfake.ErrorResponder)
}

AsyncOperationStatusServer is a fake server for instances of the armredis.AsyncOperationStatusClient type.

type AsyncOperationStatusServerTransport

type AsyncOperationStatusServerTransport struct {
	// contains filtered or unexported fields
}

AsyncOperationStatusServerTransport connects instances of armredis.AsyncOperationStatusClient to instances of AsyncOperationStatusServer. Don't use this type directly, use NewAsyncOperationStatusServerTransport instead.

func NewAsyncOperationStatusServerTransport

func NewAsyncOperationStatusServerTransport(srv *AsyncOperationStatusServer) *AsyncOperationStatusServerTransport

NewAsyncOperationStatusServerTransport creates a new instance of AsyncOperationStatusServerTransport with the provided implementation. The returned AsyncOperationStatusServerTransport instance is connected to an instance of armredis.AsyncOperationStatusClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AsyncOperationStatusServerTransport) Do

Do implements the policy.Transporter interface for AsyncOperationStatusServerTransport.

type FirewallRulesServer

type FirewallRulesServer struct {
	// CreateOrUpdate is the fake for method FirewallRulesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters armredis.FirewallRule, options *armredis.FirewallRulesClientCreateOrUpdateOptions) (resp azfake.Responder[armredis.FirewallRulesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method FirewallRulesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, options *armredis.FirewallRulesClientDeleteOptions) (resp azfake.Responder[armredis.FirewallRulesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method FirewallRulesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, options *armredis.FirewallRulesClientGetOptions) (resp azfake.Responder[armredis.FirewallRulesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method FirewallRulesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, cacheName string, options *armredis.FirewallRulesClientListOptions) (resp azfake.PagerResponder[armredis.FirewallRulesClientListResponse])
}

FirewallRulesServer is a fake server for instances of the armredis.FirewallRulesClient type.

type FirewallRulesServerTransport

type FirewallRulesServerTransport struct {
	// contains filtered or unexported fields
}

FirewallRulesServerTransport connects instances of armredis.FirewallRulesClient to instances of FirewallRulesServer. Don't use this type directly, use NewFirewallRulesServerTransport instead.

func NewFirewallRulesServerTransport

func NewFirewallRulesServerTransport(srv *FirewallRulesServer) *FirewallRulesServerTransport

NewFirewallRulesServerTransport creates a new instance of FirewallRulesServerTransport with the provided implementation. The returned FirewallRulesServerTransport instance is connected to an instance of armredis.FirewallRulesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*FirewallRulesServerTransport) Do

Do implements the policy.Transporter interface for FirewallRulesServerTransport.

type LinkedServerServer

type LinkedServerServer struct {
	// BeginCreate is the fake for method LinkedServerClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters armredis.LinkedServerCreateParameters, options *armredis.LinkedServerClientBeginCreateOptions) (resp azfake.PollerResponder[armredis.LinkedServerClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method LinkedServerClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginDelete func(ctx context.Context, resourceGroupName string, name string, linkedServerName string, options *armredis.LinkedServerClientBeginDeleteOptions) (resp azfake.PollerResponder[armredis.LinkedServerClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method LinkedServerClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, name string, linkedServerName string, options *armredis.LinkedServerClientGetOptions) (resp azfake.Responder[armredis.LinkedServerClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method LinkedServerClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, name string, options *armredis.LinkedServerClientListOptions) (resp azfake.PagerResponder[armredis.LinkedServerClientListResponse])
}

LinkedServerServer is a fake server for instances of the armredis.LinkedServerClient type.

type LinkedServerServerTransport

type LinkedServerServerTransport struct {
	// contains filtered or unexported fields
}

LinkedServerServerTransport connects instances of armredis.LinkedServerClient to instances of LinkedServerServer. Don't use this type directly, use NewLinkedServerServerTransport instead.

func NewLinkedServerServerTransport

func NewLinkedServerServerTransport(srv *LinkedServerServer) *LinkedServerServerTransport

NewLinkedServerServerTransport creates a new instance of LinkedServerServerTransport with the provided implementation. The returned LinkedServerServerTransport instance is connected to an instance of armredis.LinkedServerClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LinkedServerServerTransport) Do

Do implements the policy.Transporter interface for LinkedServerServerTransport.

type OperationsServer

type OperationsServer struct {
	// NewListPager is the fake for method OperationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armredis.OperationsClientListOptions) (resp azfake.PagerResponder[armredis.OperationsClientListResponse])
}

OperationsServer is a fake server for instances of the armredis.OperationsClient type.

type OperationsServerTransport

type OperationsServerTransport struct {
	// contains filtered or unexported fields
}

OperationsServerTransport connects instances of armredis.OperationsClient to instances of OperationsServer. Don't use this type directly, use NewOperationsServerTransport instead.

func NewOperationsServerTransport

func NewOperationsServerTransport(srv *OperationsServer) *OperationsServerTransport

NewOperationsServerTransport creates a new instance of OperationsServerTransport with the provided implementation. The returned OperationsServerTransport instance is connected to an instance of armredis.OperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationsServerTransport) Do

Do implements the policy.Transporter interface for OperationsServerTransport.

type PatchSchedulesServer

type PatchSchedulesServer struct {
	// CreateOrUpdate is the fake for method PatchSchedulesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, name string, defaultParam armredis.DefaultName, parameters armredis.PatchSchedule, options *armredis.PatchSchedulesClientCreateOrUpdateOptions) (resp azfake.Responder[armredis.PatchSchedulesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method PatchSchedulesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, name string, defaultParam armredis.DefaultName, options *armredis.PatchSchedulesClientDeleteOptions) (resp azfake.Responder[armredis.PatchSchedulesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PatchSchedulesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, name string, defaultParam armredis.DefaultName, options *armredis.PatchSchedulesClientGetOptions) (resp azfake.Responder[armredis.PatchSchedulesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByRedisResourcePager is the fake for method PatchSchedulesClient.NewListByRedisResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByRedisResourcePager func(resourceGroupName string, cacheName string, options *armredis.PatchSchedulesClientListByRedisResourceOptions) (resp azfake.PagerResponder[armredis.PatchSchedulesClientListByRedisResourceResponse])
}

PatchSchedulesServer is a fake server for instances of the armredis.PatchSchedulesClient type.

type PatchSchedulesServerTransport

type PatchSchedulesServerTransport struct {
	// contains filtered or unexported fields
}

PatchSchedulesServerTransport connects instances of armredis.PatchSchedulesClient to instances of PatchSchedulesServer. Don't use this type directly, use NewPatchSchedulesServerTransport instead.

func NewPatchSchedulesServerTransport

func NewPatchSchedulesServerTransport(srv *PatchSchedulesServer) *PatchSchedulesServerTransport

NewPatchSchedulesServerTransport creates a new instance of PatchSchedulesServerTransport with the provided implementation. The returned PatchSchedulesServerTransport instance is connected to an instance of armredis.PatchSchedulesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PatchSchedulesServerTransport) Do

Do implements the policy.Transporter interface for PatchSchedulesServerTransport.

type PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// Delete is the fake for method PrivateEndpointConnectionsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, options *armredis.PrivateEndpointConnectionsClientDeleteOptions) (resp azfake.Responder[armredis.PrivateEndpointConnectionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateEndpointConnectionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, options *armredis.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armredis.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateEndpointConnectionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, cacheName string, options *armredis.PrivateEndpointConnectionsClientListOptions) (resp azfake.PagerResponder[armredis.PrivateEndpointConnectionsClientListResponse])

	// BeginPut is the fake for method PrivateEndpointConnectionsClient.BeginPut
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginPut func(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties armredis.PrivateEndpointConnection, options *armredis.PrivateEndpointConnectionsClientBeginPutOptions) (resp azfake.PollerResponder[armredis.PrivateEndpointConnectionsClientPutResponse], errResp azfake.ErrorResponder)
}

PrivateEndpointConnectionsServer is a fake server for instances of the armredis.PrivateEndpointConnectionsClient type.

type PrivateEndpointConnectionsServerTransport

type PrivateEndpointConnectionsServerTransport struct {
	// contains filtered or unexported fields
}

PrivateEndpointConnectionsServerTransport connects instances of armredis.PrivateEndpointConnectionsClient to instances of PrivateEndpointConnectionsServer. Don't use this type directly, use NewPrivateEndpointConnectionsServerTransport instead.

func NewPrivateEndpointConnectionsServerTransport

func NewPrivateEndpointConnectionsServerTransport(srv *PrivateEndpointConnectionsServer) *PrivateEndpointConnectionsServerTransport

NewPrivateEndpointConnectionsServerTransport creates a new instance of PrivateEndpointConnectionsServerTransport with the provided implementation. The returned PrivateEndpointConnectionsServerTransport instance is connected to an instance of armredis.PrivateEndpointConnectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateEndpointConnectionsServerTransport) Do

Do implements the policy.Transporter interface for PrivateEndpointConnectionsServerTransport.

type PrivateLinkResourcesServer

type PrivateLinkResourcesServer struct {
	// NewListByRedisCachePager is the fake for method PrivateLinkResourcesClient.NewListByRedisCachePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByRedisCachePager func(resourceGroupName string, cacheName string, options *armredis.PrivateLinkResourcesClientListByRedisCacheOptions) (resp azfake.PagerResponder[armredis.PrivateLinkResourcesClientListByRedisCacheResponse])
}

PrivateLinkResourcesServer is a fake server for instances of the armredis.PrivateLinkResourcesClient type.

type PrivateLinkResourcesServerTransport

type PrivateLinkResourcesServerTransport struct {
	// contains filtered or unexported fields
}

PrivateLinkResourcesServerTransport connects instances of armredis.PrivateLinkResourcesClient to instances of PrivateLinkResourcesServer. Don't use this type directly, use NewPrivateLinkResourcesServerTransport instead.

func NewPrivateLinkResourcesServerTransport

func NewPrivateLinkResourcesServerTransport(srv *PrivateLinkResourcesServer) *PrivateLinkResourcesServerTransport

NewPrivateLinkResourcesServerTransport creates a new instance of PrivateLinkResourcesServerTransport with the provided implementation. The returned PrivateLinkResourcesServerTransport instance is connected to an instance of armredis.PrivateLinkResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkResourcesServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkResourcesServerTransport.

type Server

type Server struct {
	// CheckNameAvailability is the fake for method Client.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, parameters armredis.CheckNameAvailabilityParameters, options *armredis.ClientCheckNameAvailabilityOptions) (resp azfake.Responder[armredis.ClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreate is the fake for method Client.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, name string, parameters armredis.CreateParameters, options *armredis.ClientBeginCreateOptions) (resp azfake.PollerResponder[armredis.ClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method Client.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, name string, options *armredis.ClientBeginDeleteOptions) (resp azfake.PollerResponder[armredis.ClientDeleteResponse], errResp azfake.ErrorResponder)

	// BeginExportData is the fake for method Client.BeginExportData
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginExportData func(ctx context.Context, resourceGroupName string, name string, parameters armredis.ExportRDBParameters, options *armredis.ClientBeginExportDataOptions) (resp azfake.PollerResponder[armredis.ClientExportDataResponse], errResp azfake.ErrorResponder)

	// BeginFlushCache is the fake for method Client.BeginFlushCache
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginFlushCache func(ctx context.Context, resourceGroupName string, cacheName string, options *armredis.ClientBeginFlushCacheOptions) (resp azfake.PollerResponder[armredis.ClientFlushCacheResponse], errResp azfake.ErrorResponder)

	// ForceReboot is the fake for method Client.ForceReboot
	// HTTP status codes to indicate success: http.StatusOK
	ForceReboot func(ctx context.Context, resourceGroupName string, name string, parameters armredis.RebootParameters, options *armredis.ClientForceRebootOptions) (resp azfake.Responder[armredis.ClientForceRebootResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method Client.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, name string, options *armredis.ClientGetOptions) (resp azfake.Responder[armredis.ClientGetResponse], errResp azfake.ErrorResponder)

	// BeginImportData is the fake for method Client.BeginImportData
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginImportData func(ctx context.Context, resourceGroupName string, name string, parameters armredis.ImportRDBParameters, options *armredis.ClientBeginImportDataOptions) (resp azfake.PollerResponder[armredis.ClientImportDataResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method Client.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armredis.ClientListByResourceGroupOptions) (resp azfake.PagerResponder[armredis.ClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method Client.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armredis.ClientListBySubscriptionOptions) (resp azfake.PagerResponder[armredis.ClientListBySubscriptionResponse])

	// ListKeys is the fake for method Client.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, name string, options *armredis.ClientListKeysOptions) (resp azfake.Responder[armredis.ClientListKeysResponse], errResp azfake.ErrorResponder)

	// NewListUpgradeNotificationsPager is the fake for method Client.NewListUpgradeNotificationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListUpgradeNotificationsPager func(resourceGroupName string, name string, history float64, options *armredis.ClientListUpgradeNotificationsOptions) (resp azfake.PagerResponder[armredis.ClientListUpgradeNotificationsResponse])

	// RegenerateKey is the fake for method Client.RegenerateKey
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKey func(ctx context.Context, resourceGroupName string, name string, parameters armredis.RegenerateKeyParameters, options *armredis.ClientRegenerateKeyOptions) (resp azfake.Responder[armredis.ClientRegenerateKeyResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method Client.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, name string, parameters armredis.UpdateParameters, options *armredis.ClientBeginUpdateOptions) (resp azfake.PollerResponder[armredis.ClientUpdateResponse], errResp azfake.ErrorResponder)
}

Server is a fake server for instances of the armredis.Client type.

type ServerFactory

type ServerFactory struct {
	AccessPolicyAssignmentServer     AccessPolicyAssignmentServer
	AccessPolicyServer               AccessPolicyServer
	AsyncOperationStatusServer       AsyncOperationStatusServer
	Server                           Server
	FirewallRulesServer              FirewallRulesServer
	LinkedServerServer               LinkedServerServer
	OperationsServer                 OperationsServer
	PatchSchedulesServer             PatchSchedulesServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
}

ServerFactory is a fake server for instances of the armredis.ClientFactory type.

type ServerFactoryTransport

type ServerFactoryTransport struct {
	// contains filtered or unexported fields
}

ServerFactoryTransport connects instances of armredis.ClientFactory to instances of ServerFactory. Don't use this type directly, use NewServerFactoryTransport instead.

func NewServerFactoryTransport

func NewServerFactoryTransport(srv *ServerFactory) *ServerFactoryTransport

NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. The returned ServerFactoryTransport instance is connected to an instance of armredis.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

type ServerTransport

type ServerTransport struct {
	// contains filtered or unexported fields
}

ServerTransport connects instances of armredis.Client to instances of Server. Don't use this type directly, use NewServerTransport instead.

func NewServerTransport

func NewServerTransport(srv *Server) *ServerTransport

NewServerTransport creates a new instance of ServerTransport with the provided implementation. The returned ServerTransport instance is connected to an instance of armredis.Client via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerTransport) Do

func (s *ServerTransport) Do(req *http.Request) (*http.Response, error)

Do implements the policy.Transporter interface for ServerTransport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL