fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 CustomCertificatesServer

type CustomCertificatesServer struct {
	// BeginCreateOrUpdate is the fake for method CustomCertificatesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, certificateName string, parameters armsignalr.CustomCertificate, options *armsignalr.CustomCertificatesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsignalr.CustomCertificatesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method CustomCertificatesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, resourceName string, certificateName string, options *armsignalr.CustomCertificatesClientDeleteOptions) (resp azfake.Responder[armsignalr.CustomCertificatesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method CustomCertificatesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceName string, certificateName string, options *armsignalr.CustomCertificatesClientGetOptions) (resp azfake.Responder[armsignalr.CustomCertificatesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method CustomCertificatesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armsignalr.CustomCertificatesClientListOptions) (resp azfake.PagerResponder[armsignalr.CustomCertificatesClientListResponse])
}

CustomCertificatesServer is a fake server for instances of the armsignalr.CustomCertificatesClient type.

type CustomCertificatesServerTransport

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

CustomCertificatesServerTransport connects instances of armsignalr.CustomCertificatesClient to instances of CustomCertificatesServer. Don't use this type directly, use NewCustomCertificatesServerTransport instead.

func NewCustomCertificatesServerTransport

func NewCustomCertificatesServerTransport(srv *CustomCertificatesServer) *CustomCertificatesServerTransport

NewCustomCertificatesServerTransport creates a new instance of CustomCertificatesServerTransport with the provided implementation. The returned CustomCertificatesServerTransport instance is connected to an instance of armsignalr.CustomCertificatesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CustomCertificatesServerTransport) Do

Do implements the policy.Transporter interface for CustomCertificatesServerTransport.

type CustomDomainsServer

type CustomDomainsServer struct {
	// BeginCreateOrUpdate is the fake for method CustomDomainsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, name string, parameters armsignalr.CustomDomain, options *armsignalr.CustomDomainsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsignalr.CustomDomainsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

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

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

	// NewListPager is the fake for method CustomDomainsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armsignalr.CustomDomainsClientListOptions) (resp azfake.PagerResponder[armsignalr.CustomDomainsClientListResponse])
}

CustomDomainsServer is a fake server for instances of the armsignalr.CustomDomainsClient type.

type CustomDomainsServerTransport

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

CustomDomainsServerTransport connects instances of armsignalr.CustomDomainsClient to instances of CustomDomainsServer. Don't use this type directly, use NewCustomDomainsServerTransport instead.

func NewCustomDomainsServerTransport

func NewCustomDomainsServerTransport(srv *CustomDomainsServer) *CustomDomainsServerTransport

NewCustomDomainsServerTransport creates a new instance of CustomDomainsServerTransport with the provided implementation. The returned CustomDomainsServerTransport instance is connected to an instance of armsignalr.CustomDomainsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CustomDomainsServerTransport) Do

Do implements the policy.Transporter interface for CustomDomainsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armsignalr.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 armsignalr.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 {
	// 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, privateEndpointConnectionName string, resourceGroupName string, resourceName string, options *armsignalr.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armsignalr.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, privateEndpointConnectionName string, resourceGroupName string, resourceName string, options *armsignalr.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armsignalr.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

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

	// Update is the fake for method PrivateEndpointConnectionsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, privateEndpointConnectionName string, resourceGroupName string, resourceName string, parameters armsignalr.PrivateEndpointConnection, options *armsignalr.PrivateEndpointConnectionsClientUpdateOptions) (resp azfake.Responder[armsignalr.PrivateEndpointConnectionsClientUpdateResponse], errResp azfake.ErrorResponder)
}

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

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armsignalr.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 armsignalr.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 {
	// NewListPager is the fake for method PrivateLinkResourcesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armsignalr.PrivateLinkResourcesClientListOptions) (resp azfake.PagerResponder[armsignalr.PrivateLinkResourcesClientListResponse])
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armsignalr.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 armsignalr.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, location string, parameters armsignalr.NameAvailabilityParameters, options *armsignalr.ClientCheckNameAvailabilityOptions) (resp azfake.Responder[armsignalr.ClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method Client.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, parameters armsignalr.ResourceInfo, options *armsignalr.ClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsignalr.ClientCreateOrUpdateResponse], 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, resourceName string, options *armsignalr.ClientBeginDeleteOptions) (resp azfake.PollerResponder[armsignalr.ClientDeleteResponse], 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, resourceName string, options *armsignalr.ClientGetOptions) (resp azfake.Responder[armsignalr.ClientGetResponse], errResp azfake.ErrorResponder)

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

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

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

	// ListSKUs is the fake for method Client.ListSKUs
	// HTTP status codes to indicate success: http.StatusOK
	ListSKUs func(ctx context.Context, resourceGroupName string, resourceName string, options *armsignalr.ClientListSKUsOptions) (resp azfake.Responder[armsignalr.ClientListSKUsResponse], errResp azfake.ErrorResponder)

	// BeginRegenerateKey is the fake for method Client.BeginRegenerateKey
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginRegenerateKey func(ctx context.Context, resourceGroupName string, resourceName string, parameters armsignalr.RegenerateKeyParameters, options *armsignalr.ClientBeginRegenerateKeyOptions) (resp azfake.PollerResponder[armsignalr.ClientRegenerateKeyResponse], errResp azfake.ErrorResponder)

	// BeginRestart is the fake for method Client.BeginRestart
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginRestart func(ctx context.Context, resourceGroupName string, resourceName string, options *armsignalr.ClientBeginRestartOptions) (resp azfake.PollerResponder[armsignalr.ClientRestartResponse], 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, resourceName string, parameters armsignalr.ResourceInfo, options *armsignalr.ClientBeginUpdateOptions) (resp azfake.PollerResponder[armsignalr.ClientUpdateResponse], errResp azfake.ErrorResponder)
}

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

type ServerFactory

type ServerFactory struct {
	Server                           Server
	CustomCertificatesServer         CustomCertificatesServer
	CustomDomainsServer              CustomDomainsServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
	SharedPrivateLinkResourcesServer SharedPrivateLinkResourcesServer
	UsagesServer                     UsagesServer
}

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

type ServerFactoryTransport

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

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

type SharedPrivateLinkResourcesServer

type SharedPrivateLinkResourcesServer struct {
	// BeginCreateOrUpdate is the fake for method SharedPrivateLinkResourcesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string, parameters armsignalr.SharedPrivateLinkResource, options *armsignalr.SharedPrivateLinkResourcesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsignalr.SharedPrivateLinkResourcesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SharedPrivateLinkResourcesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string, options *armsignalr.SharedPrivateLinkResourcesClientBeginDeleteOptions) (resp azfake.PollerResponder[armsignalr.SharedPrivateLinkResourcesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SharedPrivateLinkResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, sharedPrivateLinkResourceName string, resourceGroupName string, resourceName string, options *armsignalr.SharedPrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armsignalr.SharedPrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SharedPrivateLinkResourcesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armsignalr.SharedPrivateLinkResourcesClientListOptions) (resp azfake.PagerResponder[armsignalr.SharedPrivateLinkResourcesClientListResponse])
}

SharedPrivateLinkResourcesServer is a fake server for instances of the armsignalr.SharedPrivateLinkResourcesClient type.

type SharedPrivateLinkResourcesServerTransport

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

SharedPrivateLinkResourcesServerTransport connects instances of armsignalr.SharedPrivateLinkResourcesClient to instances of SharedPrivateLinkResourcesServer. Don't use this type directly, use NewSharedPrivateLinkResourcesServerTransport instead.

func NewSharedPrivateLinkResourcesServerTransport

func NewSharedPrivateLinkResourcesServerTransport(srv *SharedPrivateLinkResourcesServer) *SharedPrivateLinkResourcesServerTransport

NewSharedPrivateLinkResourcesServerTransport creates a new instance of SharedPrivateLinkResourcesServerTransport with the provided implementation. The returned SharedPrivateLinkResourcesServerTransport instance is connected to an instance of armsignalr.SharedPrivateLinkResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SharedPrivateLinkResourcesServerTransport) Do

Do implements the policy.Transporter interface for SharedPrivateLinkResourcesServerTransport.

type UsagesServer

type UsagesServer struct {
	// NewListPager is the fake for method UsagesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(location string, options *armsignalr.UsagesClientListOptions) (resp azfake.PagerResponder[armsignalr.UsagesClientListResponse])
}

UsagesServer is a fake server for instances of the armsignalr.UsagesClient type.

type UsagesServerTransport

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

UsagesServerTransport connects instances of armsignalr.UsagesClient to instances of UsagesServer. Don't use this type directly, use NewUsagesServerTransport instead.

func NewUsagesServerTransport

func NewUsagesServerTransport(srv *UsagesServer) *UsagesServerTransport

NewUsagesServerTransport creates a new instance of UsagesServerTransport with the provided implementation. The returned UsagesServerTransport instance is connected to an instance of armsignalr.UsagesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*UsagesServerTransport) Do

Do implements the policy.Transporter interface for UsagesServerTransport.

Jump to

Keyboard shortcuts

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