fake

package
v1.3.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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminKeysServer

type AdminKeysServer struct {
	// Get is the fake for method AdminKeysClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, searchServiceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.AdminKeysClientGetOptions) (resp azfake.Responder[armsearch.AdminKeysClientGetResponse], errResp azfake.ErrorResponder)

	// Regenerate is the fake for method AdminKeysClient.Regenerate
	// HTTP status codes to indicate success: http.StatusOK
	Regenerate func(ctx context.Context, resourceGroupName string, searchServiceName string, keyKind armsearch.AdminKeyKind, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.AdminKeysClientRegenerateOptions) (resp azfake.Responder[armsearch.AdminKeysClientRegenerateResponse], errResp azfake.ErrorResponder)
}

AdminKeysServer is a fake server for instances of the armsearch.AdminKeysClient type.

type AdminKeysServerTransport

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

AdminKeysServerTransport connects instances of armsearch.AdminKeysClient to instances of AdminKeysServer. Don't use this type directly, use NewAdminKeysServerTransport instead.

func NewAdminKeysServerTransport

func NewAdminKeysServerTransport(srv *AdminKeysServer) *AdminKeysServerTransport

NewAdminKeysServerTransport creates a new instance of AdminKeysServerTransport with the provided implementation. The returned AdminKeysServerTransport instance is connected to an instance of armsearch.AdminKeysClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AdminKeysServerTransport) Do

Do implements the policy.Transporter interface for AdminKeysServerTransport.

type ManagementServer

type ManagementServer struct {
	// UsageBySubscriptionSKU is the fake for method ManagementClient.UsageBySubscriptionSKU
	// HTTP status codes to indicate success: http.StatusOK
	UsageBySubscriptionSKU func(ctx context.Context, location string, skuName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ManagementClientUsageBySubscriptionSKUOptions) (resp azfake.Responder[armsearch.ManagementClientUsageBySubscriptionSKUResponse], errResp azfake.ErrorResponder)
}

ManagementServer is a fake server for instances of the armsearch.ManagementClient type.

type ManagementServerTransport

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

ManagementServerTransport connects instances of armsearch.ManagementClient to instances of ManagementServer. Don't use this type directly, use NewManagementServerTransport instead.

func NewManagementServerTransport

func NewManagementServerTransport(srv *ManagementServer) *ManagementServerTransport

NewManagementServerTransport creates a new instance of ManagementServerTransport with the provided implementation. The returned ManagementServerTransport instance is connected to an instance of armsearch.ManagementClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ManagementServerTransport) Do

Do implements the policy.Transporter interface for ManagementServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armsearch.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 armsearch.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 {
	// Delete is the fake for method PrivateEndpointConnectionsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	Delete func(ctx context.Context, resourceGroupName string, searchServiceName string, privateEndpointConnectionName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.PrivateEndpointConnectionsClientDeleteOptions) (resp azfake.Responder[armsearch.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, searchServiceName string, privateEndpointConnectionName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armsearch.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByServicePager is the fake for method PrivateEndpointConnectionsClient.NewListByServicePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByServicePager func(resourceGroupName string, searchServiceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.PrivateEndpointConnectionsClientListByServiceOptions) (resp azfake.PagerResponder[armsearch.PrivateEndpointConnectionsClientListByServiceResponse])

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

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

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armsearch.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 armsearch.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 {
	// NewListSupportedPager is the fake for method PrivateLinkResourcesClient.NewListSupportedPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListSupportedPager func(resourceGroupName string, searchServiceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.PrivateLinkResourcesClientListSupportedOptions) (resp azfake.PagerResponder[armsearch.PrivateLinkResourcesClientListSupportedResponse])
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armsearch.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 armsearch.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 QueryKeysServer

type QueryKeysServer struct {
	// Create is the fake for method QueryKeysClient.Create
	// HTTP status codes to indicate success: http.StatusOK
	Create func(ctx context.Context, resourceGroupName string, searchServiceName string, name string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.QueryKeysClientCreateOptions) (resp azfake.Responder[armsearch.QueryKeysClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method QueryKeysClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent, http.StatusNotFound
	Delete func(ctx context.Context, resourceGroupName string, searchServiceName string, key string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.QueryKeysClientDeleteOptions) (resp azfake.Responder[armsearch.QueryKeysClientDeleteResponse], errResp azfake.ErrorResponder)

	// NewListBySearchServicePager is the fake for method QueryKeysClient.NewListBySearchServicePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySearchServicePager func(resourceGroupName string, searchServiceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.QueryKeysClientListBySearchServiceOptions) (resp azfake.PagerResponder[armsearch.QueryKeysClientListBySearchServiceResponse])
}

QueryKeysServer is a fake server for instances of the armsearch.QueryKeysClient type.

type QueryKeysServerTransport

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

QueryKeysServerTransport connects instances of armsearch.QueryKeysClient to instances of QueryKeysServer. Don't use this type directly, use NewQueryKeysServerTransport instead.

func NewQueryKeysServerTransport

func NewQueryKeysServerTransport(srv *QueryKeysServer) *QueryKeysServerTransport

NewQueryKeysServerTransport creates a new instance of QueryKeysServerTransport with the provided implementation. The returned QueryKeysServerTransport instance is connected to an instance of armsearch.QueryKeysClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*QueryKeysServerTransport) Do

Do implements the policy.Transporter interface for QueryKeysServerTransport.

type ServerFactory

type ServerFactory struct {
	AdminKeysServer                  AdminKeysServer
	ManagementServer                 ManagementServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
	QueryKeysServer                  QueryKeysServer
	ServicesServer                   ServicesServer
	SharedPrivateLinkResourcesServer SharedPrivateLinkResourcesServer
	UsagesServer                     UsagesServer
}

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

type ServerFactoryTransport

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

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

type ServicesServer struct {
	// CheckNameAvailability is the fake for method ServicesClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, checkNameAvailabilityInput armsearch.CheckNameAvailabilityInput, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ServicesClientCheckNameAvailabilityOptions) (resp azfake.Responder[armsearch.ServicesClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method ServicesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, searchServiceName string, service armsearch.Service, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ServicesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armsearch.ServicesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ServicesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent, http.StatusNotFound
	Delete func(ctx context.Context, resourceGroupName string, searchServiceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ServicesClientDeleteOptions) (resp azfake.Responder[armsearch.ServicesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServicesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, searchServiceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ServicesClientGetOptions) (resp azfake.Responder[armsearch.ServicesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ServicesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ServicesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armsearch.ServicesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ServicesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ServicesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armsearch.ServicesClientListBySubscriptionResponse])

	// Update is the fake for method ServicesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, searchServiceName string, service armsearch.ServiceUpdate, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.ServicesClientUpdateOptions) (resp azfake.Responder[armsearch.ServicesClientUpdateResponse], errResp azfake.ErrorResponder)
}

ServicesServer is a fake server for instances of the armsearch.ServicesClient type.

type ServicesServerTransport

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

ServicesServerTransport connects instances of armsearch.ServicesClient to instances of ServicesServer. Don't use this type directly, use NewServicesServerTransport instead.

func NewServicesServerTransport

func NewServicesServerTransport(srv *ServicesServer) *ServicesServerTransport

NewServicesServerTransport creates a new instance of ServicesServerTransport with the provided implementation. The returned ServicesServerTransport instance is connected to an instance of armsearch.ServicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServicesServerTransport) Do

Do implements the policy.Transporter interface for ServicesServerTransport.

type SharedPrivateLinkResourcesServer

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

	// BeginDelete is the fake for method SharedPrivateLinkResourcesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent, http.StatusNotFound
	BeginDelete func(ctx context.Context, resourceGroupName string, searchServiceName string, sharedPrivateLinkResourceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.SharedPrivateLinkResourcesClientBeginDeleteOptions) (resp azfake.PollerResponder[armsearch.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, resourceGroupName string, searchServiceName string, sharedPrivateLinkResourceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.SharedPrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armsearch.SharedPrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByServicePager is the fake for method SharedPrivateLinkResourcesClient.NewListByServicePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByServicePager func(resourceGroupName string, searchServiceName string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.SharedPrivateLinkResourcesClientListByServiceOptions) (resp azfake.PagerResponder[armsearch.SharedPrivateLinkResourcesClientListByServiceResponse])
}

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

type SharedPrivateLinkResourcesServerTransport

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

SharedPrivateLinkResourcesServerTransport connects instances of armsearch.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 armsearch.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 {
	// NewListBySubscriptionPager is the fake for method UsagesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(location string, searchManagementRequestOptions *armsearch.SearchManagementRequestOptions, options *armsearch.UsagesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armsearch.UsagesClientListBySubscriptionResponse])
}

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

type UsagesServerTransport

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

UsagesServerTransport connects instances of armsearch.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 armsearch.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