fake

package
v1.2.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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HybridConnectionsServer

type HybridConnectionsServer struct {
	// CreateOrUpdate is the fake for method HybridConnectionsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, parameters armrelay.HybridConnection, options *armrelay.HybridConnectionsClientCreateOrUpdateOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// CreateOrUpdateAuthorizationRule is the fake for method HybridConnectionsClient.CreateOrUpdateAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdateAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, parameters armrelay.AuthorizationRule, options *armrelay.HybridConnectionsClientCreateOrUpdateAuthorizationRuleOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientCreateOrUpdateAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method HybridConnectionsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, options *armrelay.HybridConnectionsClientDeleteOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// DeleteAuthorizationRule is the fake for method HybridConnectionsClient.DeleteAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	DeleteAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, options *armrelay.HybridConnectionsClientDeleteAuthorizationRuleOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientDeleteAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method HybridConnectionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, options *armrelay.HybridConnectionsClientGetOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// GetAuthorizationRule is the fake for method HybridConnectionsClient.GetAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK
	GetAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, options *armrelay.HybridConnectionsClientGetAuthorizationRuleOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientGetAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// NewListAuthorizationRulesPager is the fake for method HybridConnectionsClient.NewListAuthorizationRulesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAuthorizationRulesPager func(resourceGroupName string, namespaceName string, hybridConnectionName string, options *armrelay.HybridConnectionsClientListAuthorizationRulesOptions) (resp azfake.PagerResponder[armrelay.HybridConnectionsClientListAuthorizationRulesResponse])

	// NewListByNamespacePager is the fake for method HybridConnectionsClient.NewListByNamespacePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByNamespacePager func(resourceGroupName string, namespaceName string, options *armrelay.HybridConnectionsClientListByNamespaceOptions) (resp azfake.PagerResponder[armrelay.HybridConnectionsClientListByNamespaceResponse])

	// ListKeys is the fake for method HybridConnectionsClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, options *armrelay.HybridConnectionsClientListKeysOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKeys is the fake for method HybridConnectionsClient.RegenerateKeys
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKeys func(ctx context.Context, resourceGroupName string, namespaceName string, hybridConnectionName string, authorizationRuleName string, parameters armrelay.RegenerateAccessKeyParameters, options *armrelay.HybridConnectionsClientRegenerateKeysOptions) (resp azfake.Responder[armrelay.HybridConnectionsClientRegenerateKeysResponse], errResp azfake.ErrorResponder)
}

HybridConnectionsServer is a fake server for instances of the armrelay.HybridConnectionsClient type.

type HybridConnectionsServerTransport

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

HybridConnectionsServerTransport connects instances of armrelay.HybridConnectionsClient to instances of HybridConnectionsServer. Don't use this type directly, use NewHybridConnectionsServerTransport instead.

func NewHybridConnectionsServerTransport

func NewHybridConnectionsServerTransport(srv *HybridConnectionsServer) *HybridConnectionsServerTransport

NewHybridConnectionsServerTransport creates a new instance of HybridConnectionsServerTransport with the provided implementation. The returned HybridConnectionsServerTransport instance is connected to an instance of armrelay.HybridConnectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*HybridConnectionsServerTransport) Do

Do implements the policy.Transporter interface for HybridConnectionsServerTransport.

type NamespacesServer

type NamespacesServer struct {
	// CheckNameAvailability is the fake for method NamespacesClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, parameters armrelay.CheckNameAvailability, options *armrelay.NamespacesClientCheckNameAvailabilityOptions) (resp azfake.Responder[armrelay.NamespacesClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method NamespacesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, namespaceName string, parameters armrelay.Namespace, options *armrelay.NamespacesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armrelay.NamespacesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// CreateOrUpdateAuthorizationRule is the fake for method NamespacesClient.CreateOrUpdateAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdateAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters armrelay.AuthorizationRule, options *armrelay.NamespacesClientCreateOrUpdateAuthorizationRuleOptions) (resp azfake.Responder[armrelay.NamespacesClientCreateOrUpdateAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// CreateOrUpdateNetworkRuleSet is the fake for method NamespacesClient.CreateOrUpdateNetworkRuleSet
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdateNetworkRuleSet func(ctx context.Context, resourceGroupName string, namespaceName string, parameters armrelay.NetworkRuleSet, options *armrelay.NamespacesClientCreateOrUpdateNetworkRuleSetOptions) (resp azfake.Responder[armrelay.NamespacesClientCreateOrUpdateNetworkRuleSetResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method NamespacesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, namespaceName string, options *armrelay.NamespacesClientBeginDeleteOptions) (resp azfake.PollerResponder[armrelay.NamespacesClientDeleteResponse], errResp azfake.ErrorResponder)

	// DeleteAuthorizationRule is the fake for method NamespacesClient.DeleteAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	DeleteAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *armrelay.NamespacesClientDeleteAuthorizationRuleOptions) (resp azfake.Responder[armrelay.NamespacesClientDeleteAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method NamespacesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, namespaceName string, options *armrelay.NamespacesClientGetOptions) (resp azfake.Responder[armrelay.NamespacesClientGetResponse], errResp azfake.ErrorResponder)

	// GetAuthorizationRule is the fake for method NamespacesClient.GetAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK
	GetAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *armrelay.NamespacesClientGetAuthorizationRuleOptions) (resp azfake.Responder[armrelay.NamespacesClientGetAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// GetNetworkRuleSet is the fake for method NamespacesClient.GetNetworkRuleSet
	// HTTP status codes to indicate success: http.StatusOK
	GetNetworkRuleSet func(ctx context.Context, resourceGroupName string, namespaceName string, options *armrelay.NamespacesClientGetNetworkRuleSetOptions) (resp azfake.Responder[armrelay.NamespacesClientGetNetworkRuleSetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method NamespacesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armrelay.NamespacesClientListOptions) (resp azfake.PagerResponder[armrelay.NamespacesClientListResponse])

	// NewListAuthorizationRulesPager is the fake for method NamespacesClient.NewListAuthorizationRulesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAuthorizationRulesPager func(resourceGroupName string, namespaceName string, options *armrelay.NamespacesClientListAuthorizationRulesOptions) (resp azfake.PagerResponder[armrelay.NamespacesClientListAuthorizationRulesResponse])

	// NewListByResourceGroupPager is the fake for method NamespacesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armrelay.NamespacesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armrelay.NamespacesClientListByResourceGroupResponse])

	// ListKeys is the fake for method NamespacesClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *armrelay.NamespacesClientListKeysOptions) (resp azfake.Responder[armrelay.NamespacesClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKeys is the fake for method NamespacesClient.RegenerateKeys
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKeys func(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters armrelay.RegenerateAccessKeyParameters, options *armrelay.NamespacesClientRegenerateKeysOptions) (resp azfake.Responder[armrelay.NamespacesClientRegenerateKeysResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method NamespacesClient.Update
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Update func(ctx context.Context, resourceGroupName string, namespaceName string, parameters armrelay.UpdateParameters, options *armrelay.NamespacesClientUpdateOptions) (resp azfake.Responder[armrelay.NamespacesClientUpdateResponse], errResp azfake.ErrorResponder)
}

NamespacesServer is a fake server for instances of the armrelay.NamespacesClient type.

type NamespacesServerTransport

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

NamespacesServerTransport connects instances of armrelay.NamespacesClient to instances of NamespacesServer. Don't use this type directly, use NewNamespacesServerTransport instead.

func NewNamespacesServerTransport

func NewNamespacesServerTransport(srv *NamespacesServer) *NamespacesServerTransport

NewNamespacesServerTransport creates a new instance of NamespacesServerTransport with the provided implementation. The returned NamespacesServerTransport instance is connected to an instance of armrelay.NamespacesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*NamespacesServerTransport) Do

Do implements the policy.Transporter interface for NamespacesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armrelay.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 armrelay.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 PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// CreateOrUpdate is the fake for method PrivateEndpointConnectionsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, parameters armrelay.PrivateEndpointConnection, options *armrelay.PrivateEndpointConnectionsClientCreateOrUpdateOptions) (resp azfake.Responder[armrelay.PrivateEndpointConnectionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method PrivateEndpointConnectionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *armrelay.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armrelay.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, namespaceName string, privateEndpointConnectionName string, options *armrelay.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armrelay.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

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

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

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armrelay.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 armrelay.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 {
	// Get is the fake for method PrivateLinkResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, namespaceName string, privateLinkResourceName string, options *armrelay.PrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armrelay.PrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method PrivateLinkResourcesClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, namespaceName string, options *armrelay.PrivateLinkResourcesClientListOptions) (resp azfake.Responder[armrelay.PrivateLinkResourcesClientListResponse], errResp azfake.ErrorResponder)
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armrelay.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 armrelay.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 ServerFactory

type ServerFactory struct {
	HybridConnectionsServer          HybridConnectionsServer
	NamespacesServer                 NamespacesServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
	WCFRelaysServer                  WCFRelaysServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armrelay.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 armrelay.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 WCFRelaysServer

type WCFRelaysServer struct {
	// CreateOrUpdate is the fake for method WCFRelaysClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, parameters armrelay.WcfRelay, options *armrelay.WCFRelaysClientCreateOrUpdateOptions) (resp azfake.Responder[armrelay.WCFRelaysClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// CreateOrUpdateAuthorizationRule is the fake for method WCFRelaysClient.CreateOrUpdateAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdateAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, parameters armrelay.AuthorizationRule, options *armrelay.WCFRelaysClientCreateOrUpdateAuthorizationRuleOptions) (resp azfake.Responder[armrelay.WCFRelaysClientCreateOrUpdateAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method WCFRelaysClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, options *armrelay.WCFRelaysClientDeleteOptions) (resp azfake.Responder[armrelay.WCFRelaysClientDeleteResponse], errResp azfake.ErrorResponder)

	// DeleteAuthorizationRule is the fake for method WCFRelaysClient.DeleteAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	DeleteAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, options *armrelay.WCFRelaysClientDeleteAuthorizationRuleOptions) (resp azfake.Responder[armrelay.WCFRelaysClientDeleteAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method WCFRelaysClient.Get
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Get func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, options *armrelay.WCFRelaysClientGetOptions) (resp azfake.Responder[armrelay.WCFRelaysClientGetResponse], errResp azfake.ErrorResponder)

	// GetAuthorizationRule is the fake for method WCFRelaysClient.GetAuthorizationRule
	// HTTP status codes to indicate success: http.StatusOK
	GetAuthorizationRule func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, options *armrelay.WCFRelaysClientGetAuthorizationRuleOptions) (resp azfake.Responder[armrelay.WCFRelaysClientGetAuthorizationRuleResponse], errResp azfake.ErrorResponder)

	// NewListAuthorizationRulesPager is the fake for method WCFRelaysClient.NewListAuthorizationRulesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAuthorizationRulesPager func(resourceGroupName string, namespaceName string, relayName string, options *armrelay.WCFRelaysClientListAuthorizationRulesOptions) (resp azfake.PagerResponder[armrelay.WCFRelaysClientListAuthorizationRulesResponse])

	// NewListByNamespacePager is the fake for method WCFRelaysClient.NewListByNamespacePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByNamespacePager func(resourceGroupName string, namespaceName string, options *armrelay.WCFRelaysClientListByNamespaceOptions) (resp azfake.PagerResponder[armrelay.WCFRelaysClientListByNamespaceResponse])

	// ListKeys is the fake for method WCFRelaysClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, options *armrelay.WCFRelaysClientListKeysOptions) (resp azfake.Responder[armrelay.WCFRelaysClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKeys is the fake for method WCFRelaysClient.RegenerateKeys
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKeys func(ctx context.Context, resourceGroupName string, namespaceName string, relayName string, authorizationRuleName string, parameters armrelay.RegenerateAccessKeyParameters, options *armrelay.WCFRelaysClientRegenerateKeysOptions) (resp azfake.Responder[armrelay.WCFRelaysClientRegenerateKeysResponse], errResp azfake.ErrorResponder)
}

WCFRelaysServer is a fake server for instances of the armrelay.WCFRelaysClient type.

type WCFRelaysServerTransport

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

WCFRelaysServerTransport connects instances of armrelay.WCFRelaysClient to instances of WCFRelaysServer. Don't use this type directly, use NewWCFRelaysServerTransport instead.

func NewWCFRelaysServerTransport

func NewWCFRelaysServerTransport(srv *WCFRelaysServer) *WCFRelaysServerTransport

NewWCFRelaysServerTransport creates a new instance of WCFRelaysServerTransport with the provided implementation. The returned WCFRelaysServerTransport instance is connected to an instance of armrelay.WCFRelaysClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*WCFRelaysServerTransport) Do

Do implements the policy.Transporter interface for WCFRelaysServerTransport.

Jump to

Keyboard shortcuts

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