fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 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 AssetEndpointProfilesServer

type AssetEndpointProfilesServer struct {
	// BeginCreateOrReplace is the fake for method AssetEndpointProfilesClient.BeginCreateOrReplace
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrReplace func(ctx context.Context, resourceGroupName string, assetEndpointProfileName string, resource armdeviceregistry.AssetEndpointProfile, options *armdeviceregistry.AssetEndpointProfilesClientBeginCreateOrReplaceOptions) (resp azfake.PollerResponder[armdeviceregistry.AssetEndpointProfilesClientCreateOrReplaceResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AssetEndpointProfilesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, assetEndpointProfileName string, options *armdeviceregistry.AssetEndpointProfilesClientBeginDeleteOptions) (resp azfake.PollerResponder[armdeviceregistry.AssetEndpointProfilesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AssetEndpointProfilesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, assetEndpointProfileName string, options *armdeviceregistry.AssetEndpointProfilesClientGetOptions) (resp azfake.Responder[armdeviceregistry.AssetEndpointProfilesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AssetEndpointProfilesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdeviceregistry.AssetEndpointProfilesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdeviceregistry.AssetEndpointProfilesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AssetEndpointProfilesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armdeviceregistry.AssetEndpointProfilesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armdeviceregistry.AssetEndpointProfilesClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method AssetEndpointProfilesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, assetEndpointProfileName string, properties armdeviceregistry.AssetEndpointProfileUpdate, options *armdeviceregistry.AssetEndpointProfilesClientBeginUpdateOptions) (resp azfake.PollerResponder[armdeviceregistry.AssetEndpointProfilesClientUpdateResponse], errResp azfake.ErrorResponder)
}

AssetEndpointProfilesServer is a fake server for instances of the armdeviceregistry.AssetEndpointProfilesClient type.

type AssetEndpointProfilesServerTransport

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

AssetEndpointProfilesServerTransport connects instances of armdeviceregistry.AssetEndpointProfilesClient to instances of AssetEndpointProfilesServer. Don't use this type directly, use NewAssetEndpointProfilesServerTransport instead.

func NewAssetEndpointProfilesServerTransport

func NewAssetEndpointProfilesServerTransport(srv *AssetEndpointProfilesServer) *AssetEndpointProfilesServerTransport

NewAssetEndpointProfilesServerTransport creates a new instance of AssetEndpointProfilesServerTransport with the provided implementation. The returned AssetEndpointProfilesServerTransport instance is connected to an instance of armdeviceregistry.AssetEndpointProfilesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssetEndpointProfilesServerTransport) Do

Do implements the policy.Transporter interface for AssetEndpointProfilesServerTransport.

type AssetsServer

type AssetsServer struct {
	// BeginCreateOrReplace is the fake for method AssetsClient.BeginCreateOrReplace
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrReplace func(ctx context.Context, resourceGroupName string, assetName string, resource armdeviceregistry.Asset, options *armdeviceregistry.AssetsClientBeginCreateOrReplaceOptions) (resp azfake.PollerResponder[armdeviceregistry.AssetsClientCreateOrReplaceResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AssetsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, assetName string, options *armdeviceregistry.AssetsClientBeginDeleteOptions) (resp azfake.PollerResponder[armdeviceregistry.AssetsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AssetsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, assetName string, options *armdeviceregistry.AssetsClientGetOptions) (resp azfake.Responder[armdeviceregistry.AssetsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AssetsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdeviceregistry.AssetsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdeviceregistry.AssetsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AssetsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armdeviceregistry.AssetsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armdeviceregistry.AssetsClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method AssetsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, assetName string, properties armdeviceregistry.AssetUpdate, options *armdeviceregistry.AssetsClientBeginUpdateOptions) (resp azfake.PollerResponder[armdeviceregistry.AssetsClientUpdateResponse], errResp azfake.ErrorResponder)
}

AssetsServer is a fake server for instances of the armdeviceregistry.AssetsClient type.

type AssetsServerTransport

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

AssetsServerTransport connects instances of armdeviceregistry.AssetsClient to instances of AssetsServer. Don't use this type directly, use NewAssetsServerTransport instead.

func NewAssetsServerTransport

func NewAssetsServerTransport(srv *AssetsServer) *AssetsServerTransport

NewAssetsServerTransport creates a new instance of AssetsServerTransport with the provided implementation. The returned AssetsServerTransport instance is connected to an instance of armdeviceregistry.AssetsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssetsServerTransport) Do

Do implements the policy.Transporter interface for AssetsServerTransport.

type OperationStatusServer

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

OperationStatusServer is a fake server for instances of the armdeviceregistry.OperationStatusClient type.

type OperationStatusServerTransport

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

OperationStatusServerTransport connects instances of armdeviceregistry.OperationStatusClient to instances of OperationStatusServer. Don't use this type directly, use NewOperationStatusServerTransport instead.

func NewOperationStatusServerTransport

func NewOperationStatusServerTransport(srv *OperationStatusServer) *OperationStatusServerTransport

NewOperationStatusServerTransport creates a new instance of OperationStatusServerTransport with the provided implementation. The returned OperationStatusServerTransport instance is connected to an instance of armdeviceregistry.OperationStatusClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationStatusServerTransport) Do

Do implements the policy.Transporter interface for OperationStatusServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armdeviceregistry.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 armdeviceregistry.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 ServerFactory

type ServerFactory struct {
	AssetEndpointProfilesServer AssetEndpointProfilesServer
	AssetsServer                AssetsServer
	OperationStatusServer       OperationStatusServer
	OperationsServer            OperationsServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armdeviceregistry.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 armdeviceregistry.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

Jump to

Keyboard shortcuts

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