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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MoveCollectionsServer

type MoveCollectionsServer struct {
	// BeginBulkRemove is the fake for method MoveCollectionsClient.BeginBulkRemove
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginBulkRemove func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientBeginBulkRemoveOptions) (resp azfake.PollerResponder[armresourcemover.MoveCollectionsClientBulkRemoveResponse], errResp azfake.ErrorResponder)

	// BeginCommit is the fake for method MoveCollectionsClient.BeginCommit
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginCommit func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientBeginCommitOptions) (resp azfake.PollerResponder[armresourcemover.MoveCollectionsClientCommitResponse], errResp azfake.ErrorResponder)

	// Create is the fake for method MoveCollectionsClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientCreateOptions) (resp azfake.Responder[armresourcemover.MoveCollectionsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method MoveCollectionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armresourcemover.MoveCollectionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// BeginDiscard is the fake for method MoveCollectionsClient.BeginDiscard
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginDiscard func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientBeginDiscardOptions) (resp azfake.PollerResponder[armresourcemover.MoveCollectionsClientDiscardResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method MoveCollectionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientGetOptions) (resp azfake.Responder[armresourcemover.MoveCollectionsClientGetResponse], errResp azfake.ErrorResponder)

	// BeginInitiateMove is the fake for method MoveCollectionsClient.BeginInitiateMove
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginInitiateMove func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientBeginInitiateMoveOptions) (resp azfake.PollerResponder[armresourcemover.MoveCollectionsClientInitiateMoveResponse], errResp azfake.ErrorResponder)

	// NewListMoveCollectionsByResourceGroupPager is the fake for method MoveCollectionsClient.NewListMoveCollectionsByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListMoveCollectionsByResourceGroupPager func(resourceGroupName string, options *armresourcemover.MoveCollectionsClientListMoveCollectionsByResourceGroupOptions) (resp azfake.PagerResponder[armresourcemover.MoveCollectionsClientListMoveCollectionsByResourceGroupResponse])

	// NewListMoveCollectionsBySubscriptionPager is the fake for method MoveCollectionsClient.NewListMoveCollectionsBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListMoveCollectionsBySubscriptionPager func(options *armresourcemover.MoveCollectionsClientListMoveCollectionsBySubscriptionOptions) (resp azfake.PagerResponder[armresourcemover.MoveCollectionsClientListMoveCollectionsBySubscriptionResponse])

	// ListRequiredFor is the fake for method MoveCollectionsClient.ListRequiredFor
	// HTTP status codes to indicate success: http.StatusOK
	ListRequiredFor func(ctx context.Context, resourceGroupName string, moveCollectionName string, sourceID string, options *armresourcemover.MoveCollectionsClientListRequiredForOptions) (resp azfake.Responder[armresourcemover.MoveCollectionsClientListRequiredForResponse], errResp azfake.ErrorResponder)

	// BeginPrepare is the fake for method MoveCollectionsClient.BeginPrepare
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginPrepare func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientBeginPrepareOptions) (resp azfake.PollerResponder[armresourcemover.MoveCollectionsClientPrepareResponse], errResp azfake.ErrorResponder)

	// BeginResolveDependencies is the fake for method MoveCollectionsClient.BeginResolveDependencies
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginResolveDependencies func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientBeginResolveDependenciesOptions) (resp azfake.PollerResponder[armresourcemover.MoveCollectionsClientResolveDependenciesResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method MoveCollectionsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveCollectionsClientUpdateOptions) (resp azfake.Responder[armresourcemover.MoveCollectionsClientUpdateResponse], errResp azfake.ErrorResponder)
}

MoveCollectionsServer is a fake server for instances of the armresourcemover.MoveCollectionsClient type.

type MoveCollectionsServerTransport

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

MoveCollectionsServerTransport connects instances of armresourcemover.MoveCollectionsClient to instances of MoveCollectionsServer. Don't use this type directly, use NewMoveCollectionsServerTransport instead.

func NewMoveCollectionsServerTransport

func NewMoveCollectionsServerTransport(srv *MoveCollectionsServer) *MoveCollectionsServerTransport

NewMoveCollectionsServerTransport creates a new instance of MoveCollectionsServerTransport with the provided implementation. The returned MoveCollectionsServerTransport instance is connected to an instance of armresourcemover.MoveCollectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MoveCollectionsServerTransport) Do

Do implements the policy.Transporter interface for MoveCollectionsServerTransport.

type MoveResourcesServer

type MoveResourcesServer struct {
	// BeginCreate is the fake for method MoveResourcesClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginCreate func(ctx context.Context, resourceGroupName string, moveCollectionName string, moveResourceName string, options *armresourcemover.MoveResourcesClientBeginCreateOptions) (resp azfake.PollerResponder[armresourcemover.MoveResourcesClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method MoveResourcesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, moveCollectionName string, moveResourceName string, options *armresourcemover.MoveResourcesClientBeginDeleteOptions) (resp azfake.PollerResponder[armresourcemover.MoveResourcesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method MoveResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, moveCollectionName string, moveResourceName string, options *armresourcemover.MoveResourcesClientGetOptions) (resp azfake.Responder[armresourcemover.MoveResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method MoveResourcesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, moveCollectionName string, options *armresourcemover.MoveResourcesClientListOptions) (resp azfake.PagerResponder[armresourcemover.MoveResourcesClientListResponse])
}

MoveResourcesServer is a fake server for instances of the armresourcemover.MoveResourcesClient type.

type MoveResourcesServerTransport

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

MoveResourcesServerTransport connects instances of armresourcemover.MoveResourcesClient to instances of MoveResourcesServer. Don't use this type directly, use NewMoveResourcesServerTransport instead.

func NewMoveResourcesServerTransport

func NewMoveResourcesServerTransport(srv *MoveResourcesServer) *MoveResourcesServerTransport

NewMoveResourcesServerTransport creates a new instance of MoveResourcesServerTransport with the provided implementation. The returned MoveResourcesServerTransport instance is connected to an instance of armresourcemover.MoveResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MoveResourcesServerTransport) Do

Do implements the policy.Transporter interface for MoveResourcesServerTransport.

type OperationsDiscoveryServer

type OperationsDiscoveryServer struct {
	// Get is the fake for method OperationsDiscoveryClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, options *armresourcemover.OperationsDiscoveryClientGetOptions) (resp azfake.Responder[armresourcemover.OperationsDiscoveryClientGetResponse], errResp azfake.ErrorResponder)
}

OperationsDiscoveryServer is a fake server for instances of the armresourcemover.OperationsDiscoveryClient type.

type OperationsDiscoveryServerTransport

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

OperationsDiscoveryServerTransport connects instances of armresourcemover.OperationsDiscoveryClient to instances of OperationsDiscoveryServer. Don't use this type directly, use NewOperationsDiscoveryServerTransport instead.

func NewOperationsDiscoveryServerTransport

func NewOperationsDiscoveryServerTransport(srv *OperationsDiscoveryServer) *OperationsDiscoveryServerTransport

NewOperationsDiscoveryServerTransport creates a new instance of OperationsDiscoveryServerTransport with the provided implementation. The returned OperationsDiscoveryServerTransport instance is connected to an instance of armresourcemover.OperationsDiscoveryClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationsDiscoveryServerTransport) Do

Do implements the policy.Transporter interface for OperationsDiscoveryServerTransport.

type ServerFactory

type ServerFactory struct {
	MoveCollectionsServer        MoveCollectionsServer
	MoveResourcesServer          MoveResourcesServer
	OperationsDiscoveryServer    OperationsDiscoveryServer
	UnresolvedDependenciesServer UnresolvedDependenciesServer
}

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

type ServerFactoryTransport

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

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

type UnresolvedDependenciesServer struct {
	// NewGetPager is the fake for method UnresolvedDependenciesClient.NewGetPager
	// HTTP status codes to indicate success: http.StatusOK
	NewGetPager func(resourceGroupName string, moveCollectionName string, options *armresourcemover.UnresolvedDependenciesClientGetOptions) (resp azfake.PagerResponder[armresourcemover.UnresolvedDependenciesClientGetResponse])
}

UnresolvedDependenciesServer is a fake server for instances of the armresourcemover.UnresolvedDependenciesClient type.

type UnresolvedDependenciesServerTransport

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

UnresolvedDependenciesServerTransport connects instances of armresourcemover.UnresolvedDependenciesClient to instances of UnresolvedDependenciesServer. Don't use this type directly, use NewUnresolvedDependenciesServerTransport instead.

func NewUnresolvedDependenciesServerTransport

func NewUnresolvedDependenciesServerTransport(srv *UnresolvedDependenciesServer) *UnresolvedDependenciesServerTransport

NewUnresolvedDependenciesServerTransport creates a new instance of UnresolvedDependenciesServerTransport with the provided implementation. The returned UnresolvedDependenciesServerTransport instance is connected to an instance of armresourcemover.UnresolvedDependenciesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*UnresolvedDependenciesServerTransport) Do

Do implements the policy.Transporter interface for UnresolvedDependenciesServerTransport.

Jump to

Keyboard shortcuts

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