fake

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmlFilesystemsServer

type AmlFilesystemsServer struct {
	// Archive is the fake for method AmlFilesystemsClient.Archive
	// HTTP status codes to indicate success: http.StatusOK
	Archive func(ctx context.Context, resourceGroupName string, amlFilesystemName string, options *armstoragecache.AmlFilesystemsClientArchiveOptions) (resp azfake.Responder[armstoragecache.AmlFilesystemsClientArchiveResponse], errResp azfake.ErrorResponder)

	// CancelArchive is the fake for method AmlFilesystemsClient.CancelArchive
	// HTTP status codes to indicate success: http.StatusOK
	CancelArchive func(ctx context.Context, resourceGroupName string, amlFilesystemName string, options *armstoragecache.AmlFilesystemsClientCancelArchiveOptions) (resp azfake.Responder[armstoragecache.AmlFilesystemsClientCancelArchiveResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method AmlFilesystemsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, amlFilesystemName string, amlFilesystem armstoragecache.AmlFilesystem, options *armstoragecache.AmlFilesystemsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armstoragecache.AmlFilesystemsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AmlFilesystemsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, amlFilesystemName string, options *armstoragecache.AmlFilesystemsClientBeginDeleteOptions) (resp azfake.PollerResponder[armstoragecache.AmlFilesystemsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AmlFilesystemsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, amlFilesystemName string, options *armstoragecache.AmlFilesystemsClientGetOptions) (resp azfake.Responder[armstoragecache.AmlFilesystemsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AmlFilesystemsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armstoragecache.AmlFilesystemsClientListOptions) (resp azfake.PagerResponder[armstoragecache.AmlFilesystemsClientListResponse])

	// NewListByResourceGroupPager is the fake for method AmlFilesystemsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armstoragecache.AmlFilesystemsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armstoragecache.AmlFilesystemsClientListByResourceGroupResponse])

	// BeginUpdate is the fake for method AmlFilesystemsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, amlFilesystemName string, amlFilesystem armstoragecache.AmlFilesystemUpdate, options *armstoragecache.AmlFilesystemsClientBeginUpdateOptions) (resp azfake.PollerResponder[armstoragecache.AmlFilesystemsClientUpdateResponse], errResp azfake.ErrorResponder)
}

AmlFilesystemsServer is a fake server for instances of the armstoragecache.AmlFilesystemsClient type.

type AmlFilesystemsServerTransport

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

AmlFilesystemsServerTransport connects instances of armstoragecache.AmlFilesystemsClient to instances of AmlFilesystemsServer. Don't use this type directly, use NewAmlFilesystemsServerTransport instead.

func NewAmlFilesystemsServerTransport

func NewAmlFilesystemsServerTransport(srv *AmlFilesystemsServer) *AmlFilesystemsServerTransport

NewAmlFilesystemsServerTransport creates a new instance of AmlFilesystemsServerTransport with the provided implementation. The returned AmlFilesystemsServerTransport instance is connected to an instance of armstoragecache.AmlFilesystemsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AmlFilesystemsServerTransport) Do

Do implements the policy.Transporter interface for AmlFilesystemsServerTransport.

type AscOperationsServer

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

AscOperationsServer is a fake server for instances of the armstoragecache.AscOperationsClient type.

type AscOperationsServerTransport

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

AscOperationsServerTransport connects instances of armstoragecache.AscOperationsClient to instances of AscOperationsServer. Don't use this type directly, use NewAscOperationsServerTransport instead.

func NewAscOperationsServerTransport

func NewAscOperationsServerTransport(srv *AscOperationsServer) *AscOperationsServerTransport

NewAscOperationsServerTransport creates a new instance of AscOperationsServerTransport with the provided implementation. The returned AscOperationsServerTransport instance is connected to an instance of armstoragecache.AscOperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AscOperationsServerTransport) Do

Do implements the policy.Transporter interface for AscOperationsServerTransport.

type AscUsagesServer

type AscUsagesServer struct {
	// NewListPager is the fake for method AscUsagesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(location string, options *armstoragecache.AscUsagesClientListOptions) (resp azfake.PagerResponder[armstoragecache.AscUsagesClientListResponse])
}

AscUsagesServer is a fake server for instances of the armstoragecache.AscUsagesClient type.

type AscUsagesServerTransport

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

AscUsagesServerTransport connects instances of armstoragecache.AscUsagesClient to instances of AscUsagesServer. Don't use this type directly, use NewAscUsagesServerTransport instead.

func NewAscUsagesServerTransport

func NewAscUsagesServerTransport(srv *AscUsagesServer) *AscUsagesServerTransport

NewAscUsagesServerTransport creates a new instance of AscUsagesServerTransport with the provided implementation. The returned AscUsagesServerTransport instance is connected to an instance of armstoragecache.AscUsagesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AscUsagesServerTransport) Do

Do implements the policy.Transporter interface for AscUsagesServerTransport.

type CachesServer

type CachesServer struct {
	// BeginCreateOrUpdate is the fake for method CachesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, cacheName string, cache armstoragecache.Cache, options *armstoragecache.CachesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDebugInfo is the fake for method CachesClient.BeginDebugInfo
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDebugInfo func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginDebugInfoOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientDebugInfoResponse], errResp azfake.ErrorResponder)

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

	// BeginFlush is the fake for method CachesClient.BeginFlush
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginFlush func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginFlushOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientFlushResponse], errResp azfake.ErrorResponder)

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

	// NewListPager is the fake for method CachesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armstoragecache.CachesClientListOptions) (resp azfake.PagerResponder[armstoragecache.CachesClientListResponse])

	// NewListByResourceGroupPager is the fake for method CachesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armstoragecache.CachesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armstoragecache.CachesClientListByResourceGroupResponse])

	// BeginPausePrimingJob is the fake for method CachesClient.BeginPausePrimingJob
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginPausePrimingJob func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginPausePrimingJobOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientPausePrimingJobResponse], errResp azfake.ErrorResponder)

	// BeginResumePrimingJob is the fake for method CachesClient.BeginResumePrimingJob
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginResumePrimingJob func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginResumePrimingJobOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientResumePrimingJobResponse], errResp azfake.ErrorResponder)

	// BeginSpaceAllocation is the fake for method CachesClient.BeginSpaceAllocation
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginSpaceAllocation func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginSpaceAllocationOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientSpaceAllocationResponse], errResp azfake.ErrorResponder)

	// BeginStart is the fake for method CachesClient.BeginStart
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginStart func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginStartOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientStartResponse], errResp azfake.ErrorResponder)

	// BeginStartPrimingJob is the fake for method CachesClient.BeginStartPrimingJob
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginStartPrimingJob func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginStartPrimingJobOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientStartPrimingJobResponse], errResp azfake.ErrorResponder)

	// BeginStop is the fake for method CachesClient.BeginStop
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginStop func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginStopOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientStopResponse], errResp azfake.ErrorResponder)

	// BeginStopPrimingJob is the fake for method CachesClient.BeginStopPrimingJob
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginStopPrimingJob func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginStopPrimingJobOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientStopPrimingJobResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method CachesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, cacheName string, cache armstoragecache.Cache, options *armstoragecache.CachesClientBeginUpdateOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientUpdateResponse], errResp azfake.ErrorResponder)

	// BeginUpgradeFirmware is the fake for method CachesClient.BeginUpgradeFirmware
	// HTTP status codes to indicate success: http.StatusCreated, http.StatusAccepted, http.StatusNoContent
	BeginUpgradeFirmware func(ctx context.Context, resourceGroupName string, cacheName string, options *armstoragecache.CachesClientBeginUpgradeFirmwareOptions) (resp azfake.PollerResponder[armstoragecache.CachesClientUpgradeFirmwareResponse], errResp azfake.ErrorResponder)
}

CachesServer is a fake server for instances of the armstoragecache.CachesClient type.

type CachesServerTransport

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

CachesServerTransport connects instances of armstoragecache.CachesClient to instances of CachesServer. Don't use this type directly, use NewCachesServerTransport instead.

func NewCachesServerTransport

func NewCachesServerTransport(srv *CachesServer) *CachesServerTransport

NewCachesServerTransport creates a new instance of CachesServerTransport with the provided implementation. The returned CachesServerTransport instance is connected to an instance of armstoragecache.CachesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CachesServerTransport) Do

Do implements the policy.Transporter interface for CachesServerTransport.

type ManagementServer

type ManagementServer struct {
	// CheckAmlFSSubnets is the fake for method ManagementClient.CheckAmlFSSubnets
	// HTTP status codes to indicate success: http.StatusOK
	CheckAmlFSSubnets func(ctx context.Context, options *armstoragecache.ManagementClientCheckAmlFSSubnetsOptions) (resp azfake.Responder[armstoragecache.ManagementClientCheckAmlFSSubnetsResponse], errResp azfake.ErrorResponder)

	// GetRequiredAmlFSSubnetsSize is the fake for method ManagementClient.GetRequiredAmlFSSubnetsSize
	// HTTP status codes to indicate success: http.StatusOK
	GetRequiredAmlFSSubnetsSize func(ctx context.Context, options *armstoragecache.ManagementClientGetRequiredAmlFSSubnetsSizeOptions) (resp azfake.Responder[armstoragecache.ManagementClientGetRequiredAmlFSSubnetsSizeResponse], errResp azfake.ErrorResponder)
}

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

type ManagementServerTransport

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

ManagementServerTransport connects instances of armstoragecache.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 armstoragecache.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 *armstoragecache.OperationsClientListOptions) (resp azfake.PagerResponder[armstoragecache.OperationsClientListResponse])
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armstoragecache.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 armstoragecache.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 SKUsServer

type SKUsServer struct {
	// NewListPager is the fake for method SKUsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armstoragecache.SKUsClientListOptions) (resp azfake.PagerResponder[armstoragecache.SKUsClientListResponse])
}

SKUsServer is a fake server for instances of the armstoragecache.SKUsClient type.

type SKUsServerTransport

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

SKUsServerTransport connects instances of armstoragecache.SKUsClient to instances of SKUsServer. Don't use this type directly, use NewSKUsServerTransport instead.

func NewSKUsServerTransport

func NewSKUsServerTransport(srv *SKUsServer) *SKUsServerTransport

NewSKUsServerTransport creates a new instance of SKUsServerTransport with the provided implementation. The returned SKUsServerTransport instance is connected to an instance of armstoragecache.SKUsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SKUsServerTransport) Do

Do implements the policy.Transporter interface for SKUsServerTransport.

type ServerFactory

type ServerFactory struct {
	AmlFilesystemsServer AmlFilesystemsServer
	AscOperationsServer  AscOperationsServer
	AscUsagesServer      AscUsagesServer
	CachesServer         CachesServer
	ManagementServer     ManagementServer
	OperationsServer     OperationsServer
	SKUsServer           SKUsServer
	StorageTargetServer  StorageTargetServer
	StorageTargetsServer StorageTargetsServer
	UsageModelsServer    UsageModelsServer
}

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

type ServerFactoryTransport

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

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

type StorageTargetServer struct {
	// BeginFlush is the fake for method StorageTargetClient.BeginFlush
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginFlush func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetClientBeginFlushOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetClientFlushResponse], errResp azfake.ErrorResponder)

	// BeginInvalidate is the fake for method StorageTargetClient.BeginInvalidate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginInvalidate func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetClientBeginInvalidateOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetClientInvalidateResponse], errResp azfake.ErrorResponder)

	// BeginResume is the fake for method StorageTargetClient.BeginResume
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginResume func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetClientBeginResumeOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetClientResumeResponse], errResp azfake.ErrorResponder)

	// BeginSuspend is the fake for method StorageTargetClient.BeginSuspend
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginSuspend func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetClientBeginSuspendOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetClientSuspendResponse], errResp azfake.ErrorResponder)
}

StorageTargetServer is a fake server for instances of the armstoragecache.StorageTargetClient type.

type StorageTargetServerTransport

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

StorageTargetServerTransport connects instances of armstoragecache.StorageTargetClient to instances of StorageTargetServer. Don't use this type directly, use NewStorageTargetServerTransport instead.

func NewStorageTargetServerTransport

func NewStorageTargetServerTransport(srv *StorageTargetServer) *StorageTargetServerTransport

NewStorageTargetServerTransport creates a new instance of StorageTargetServerTransport with the provided implementation. The returned StorageTargetServerTransport instance is connected to an instance of armstoragecache.StorageTargetClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*StorageTargetServerTransport) Do

Do implements the policy.Transporter interface for StorageTargetServerTransport.

type StorageTargetsServer

type StorageTargetsServer struct {
	// BeginCreateOrUpdate is the fake for method StorageTargetsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, storagetarget armstoragecache.StorageTarget, options *armstoragecache.StorageTargetsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDNSRefresh is the fake for method StorageTargetsClient.BeginDNSRefresh
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginDNSRefresh func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetsClientBeginDNSRefreshOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetsClientDNSRefreshResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method StorageTargetsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetsClientBeginDeleteOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method StorageTargetsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetsClientGetOptions) (resp azfake.Responder[armstoragecache.StorageTargetsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByCachePager is the fake for method StorageTargetsClient.NewListByCachePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByCachePager func(resourceGroupName string, cacheName string, options *armstoragecache.StorageTargetsClientListByCacheOptions) (resp azfake.PagerResponder[armstoragecache.StorageTargetsClientListByCacheResponse])

	// BeginRestoreDefaults is the fake for method StorageTargetsClient.BeginRestoreDefaults
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginRestoreDefaults func(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *armstoragecache.StorageTargetsClientBeginRestoreDefaultsOptions) (resp azfake.PollerResponder[armstoragecache.StorageTargetsClientRestoreDefaultsResponse], errResp azfake.ErrorResponder)
}

StorageTargetsServer is a fake server for instances of the armstoragecache.StorageTargetsClient type.

type StorageTargetsServerTransport

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

StorageTargetsServerTransport connects instances of armstoragecache.StorageTargetsClient to instances of StorageTargetsServer. Don't use this type directly, use NewStorageTargetsServerTransport instead.

func NewStorageTargetsServerTransport

func NewStorageTargetsServerTransport(srv *StorageTargetsServer) *StorageTargetsServerTransport

NewStorageTargetsServerTransport creates a new instance of StorageTargetsServerTransport with the provided implementation. The returned StorageTargetsServerTransport instance is connected to an instance of armstoragecache.StorageTargetsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*StorageTargetsServerTransport) Do

Do implements the policy.Transporter interface for StorageTargetsServerTransport.

type UsageModelsServer

type UsageModelsServer struct {
	// NewListPager is the fake for method UsageModelsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armstoragecache.UsageModelsClientListOptions) (resp azfake.PagerResponder[armstoragecache.UsageModelsClientListResponse])
}

UsageModelsServer is a fake server for instances of the armstoragecache.UsageModelsClient type.

type UsageModelsServerTransport

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

UsageModelsServerTransport connects instances of armstoragecache.UsageModelsClient to instances of UsageModelsServer. Don't use this type directly, use NewUsageModelsServerTransport instead.

func NewUsageModelsServerTransport

func NewUsageModelsServerTransport(srv *UsageModelsServer) *UsageModelsServerTransport

NewUsageModelsServerTransport creates a new instance of UsageModelsServerTransport with the provided implementation. The returned UsageModelsServerTransport instance is connected to an instance of armstoragecache.UsageModelsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*UsageModelsServerTransport) Do

Do implements the policy.Transporter interface for UsageModelsServerTransport.

Jump to

Keyboard shortcuts

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