fake

package
v0.7.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 ObjectAnchorsAccountsServer

type ObjectAnchorsAccountsServer struct {
	// Create is the fake for method ObjectAnchorsAccountsClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, accountName string, objectAnchorsAccount armmixedreality.ObjectAnchorsAccount, options *armmixedreality.ObjectAnchorsAccountsClientCreateOptions) (resp azfake.Responder[armmixedreality.ObjectAnchorsAccountsClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ObjectAnchorsAccountsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.ObjectAnchorsAccountsClientDeleteOptions) (resp azfake.Responder[armmixedreality.ObjectAnchorsAccountsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ObjectAnchorsAccountsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.ObjectAnchorsAccountsClientGetOptions) (resp azfake.Responder[armmixedreality.ObjectAnchorsAccountsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ObjectAnchorsAccountsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armmixedreality.ObjectAnchorsAccountsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armmixedreality.ObjectAnchorsAccountsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ObjectAnchorsAccountsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armmixedreality.ObjectAnchorsAccountsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armmixedreality.ObjectAnchorsAccountsClientListBySubscriptionResponse])

	// ListKeys is the fake for method ObjectAnchorsAccountsClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.ObjectAnchorsAccountsClientListKeysOptions) (resp azfake.Responder[armmixedreality.ObjectAnchorsAccountsClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKeys is the fake for method ObjectAnchorsAccountsClient.RegenerateKeys
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKeys func(ctx context.Context, resourceGroupName string, accountName string, regenerate armmixedreality.AccountKeyRegenerateRequest, options *armmixedreality.ObjectAnchorsAccountsClientRegenerateKeysOptions) (resp azfake.Responder[armmixedreality.ObjectAnchorsAccountsClientRegenerateKeysResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method ObjectAnchorsAccountsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, accountName string, objectAnchorsAccount armmixedreality.ObjectAnchorsAccount, options *armmixedreality.ObjectAnchorsAccountsClientUpdateOptions) (resp azfake.Responder[armmixedreality.ObjectAnchorsAccountsClientUpdateResponse], errResp azfake.ErrorResponder)
}

ObjectAnchorsAccountsServer is a fake server for instances of the armmixedreality.ObjectAnchorsAccountsClient type.

type ObjectAnchorsAccountsServerTransport

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

ObjectAnchorsAccountsServerTransport connects instances of armmixedreality.ObjectAnchorsAccountsClient to instances of ObjectAnchorsAccountsServer. Don't use this type directly, use NewObjectAnchorsAccountsServerTransport instead.

func NewObjectAnchorsAccountsServerTransport

func NewObjectAnchorsAccountsServerTransport(srv *ObjectAnchorsAccountsServer) *ObjectAnchorsAccountsServerTransport

NewObjectAnchorsAccountsServerTransport creates a new instance of ObjectAnchorsAccountsServerTransport with the provided implementation. The returned ObjectAnchorsAccountsServerTransport instance is connected to an instance of armmixedreality.ObjectAnchorsAccountsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ObjectAnchorsAccountsServerTransport) Do

Do implements the policy.Transporter interface for ObjectAnchorsAccountsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armmixedreality.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 armmixedreality.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 RemoteRenderingAccountsServer

type RemoteRenderingAccountsServer struct {
	// Create is the fake for method RemoteRenderingAccountsClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, accountName string, remoteRenderingAccount armmixedreality.RemoteRenderingAccount, options *armmixedreality.RemoteRenderingAccountsClientCreateOptions) (resp azfake.Responder[armmixedreality.RemoteRenderingAccountsClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method RemoteRenderingAccountsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.RemoteRenderingAccountsClientDeleteOptions) (resp azfake.Responder[armmixedreality.RemoteRenderingAccountsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method RemoteRenderingAccountsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.RemoteRenderingAccountsClientGetOptions) (resp azfake.Responder[armmixedreality.RemoteRenderingAccountsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method RemoteRenderingAccountsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armmixedreality.RemoteRenderingAccountsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armmixedreality.RemoteRenderingAccountsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method RemoteRenderingAccountsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armmixedreality.RemoteRenderingAccountsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armmixedreality.RemoteRenderingAccountsClientListBySubscriptionResponse])

	// ListKeys is the fake for method RemoteRenderingAccountsClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.RemoteRenderingAccountsClientListKeysOptions) (resp azfake.Responder[armmixedreality.RemoteRenderingAccountsClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKeys is the fake for method RemoteRenderingAccountsClient.RegenerateKeys
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKeys func(ctx context.Context, resourceGroupName string, accountName string, regenerate armmixedreality.AccountKeyRegenerateRequest, options *armmixedreality.RemoteRenderingAccountsClientRegenerateKeysOptions) (resp azfake.Responder[armmixedreality.RemoteRenderingAccountsClientRegenerateKeysResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method RemoteRenderingAccountsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, accountName string, remoteRenderingAccount armmixedreality.RemoteRenderingAccount, options *armmixedreality.RemoteRenderingAccountsClientUpdateOptions) (resp azfake.Responder[armmixedreality.RemoteRenderingAccountsClientUpdateResponse], errResp azfake.ErrorResponder)
}

RemoteRenderingAccountsServer is a fake server for instances of the armmixedreality.RemoteRenderingAccountsClient type.

type RemoteRenderingAccountsServerTransport

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

RemoteRenderingAccountsServerTransport connects instances of armmixedreality.RemoteRenderingAccountsClient to instances of RemoteRenderingAccountsServer. Don't use this type directly, use NewRemoteRenderingAccountsServerTransport instead.

func NewRemoteRenderingAccountsServerTransport

func NewRemoteRenderingAccountsServerTransport(srv *RemoteRenderingAccountsServer) *RemoteRenderingAccountsServerTransport

NewRemoteRenderingAccountsServerTransport creates a new instance of RemoteRenderingAccountsServerTransport with the provided implementation. The returned RemoteRenderingAccountsServerTransport instance is connected to an instance of armmixedreality.RemoteRenderingAccountsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RemoteRenderingAccountsServerTransport) Do

Do implements the policy.Transporter interface for RemoteRenderingAccountsServerTransport.

type Server

type Server struct {
	// CheckNameAvailabilityLocal is the fake for method Client.CheckNameAvailabilityLocal
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailabilityLocal func(ctx context.Context, location string, checkNameAvailability armmixedreality.CheckNameAvailabilityRequest, options *armmixedreality.ClientCheckNameAvailabilityLocalOptions) (resp azfake.Responder[armmixedreality.ClientCheckNameAvailabilityLocalResponse], errResp azfake.ErrorResponder)
}

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

type ServerFactory

type ServerFactory struct {
	Server                        Server
	ObjectAnchorsAccountsServer   ObjectAnchorsAccountsServer
	OperationsServer              OperationsServer
	RemoteRenderingAccountsServer RemoteRenderingAccountsServer
	SpatialAnchorsAccountsServer  SpatialAnchorsAccountsServer
}

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

type ServerFactoryTransport

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

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

type SpatialAnchorsAccountsServer struct {
	// Create is the fake for method SpatialAnchorsAccountsClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, accountName string, spatialAnchorsAccount armmixedreality.SpatialAnchorsAccount, options *armmixedreality.SpatialAnchorsAccountsClientCreateOptions) (resp azfake.Responder[armmixedreality.SpatialAnchorsAccountsClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SpatialAnchorsAccountsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.SpatialAnchorsAccountsClientDeleteOptions) (resp azfake.Responder[armmixedreality.SpatialAnchorsAccountsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SpatialAnchorsAccountsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.SpatialAnchorsAccountsClientGetOptions) (resp azfake.Responder[armmixedreality.SpatialAnchorsAccountsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method SpatialAnchorsAccountsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armmixedreality.SpatialAnchorsAccountsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armmixedreality.SpatialAnchorsAccountsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method SpatialAnchorsAccountsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armmixedreality.SpatialAnchorsAccountsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armmixedreality.SpatialAnchorsAccountsClientListBySubscriptionResponse])

	// ListKeys is the fake for method SpatialAnchorsAccountsClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, accountName string, options *armmixedreality.SpatialAnchorsAccountsClientListKeysOptions) (resp azfake.Responder[armmixedreality.SpatialAnchorsAccountsClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKeys is the fake for method SpatialAnchorsAccountsClient.RegenerateKeys
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKeys func(ctx context.Context, resourceGroupName string, accountName string, regenerate armmixedreality.AccountKeyRegenerateRequest, options *armmixedreality.SpatialAnchorsAccountsClientRegenerateKeysOptions) (resp azfake.Responder[armmixedreality.SpatialAnchorsAccountsClientRegenerateKeysResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method SpatialAnchorsAccountsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, accountName string, spatialAnchorsAccount armmixedreality.SpatialAnchorsAccount, options *armmixedreality.SpatialAnchorsAccountsClientUpdateOptions) (resp azfake.Responder[armmixedreality.SpatialAnchorsAccountsClientUpdateResponse], errResp azfake.ErrorResponder)
}

SpatialAnchorsAccountsServer is a fake server for instances of the armmixedreality.SpatialAnchorsAccountsClient type.

type SpatialAnchorsAccountsServerTransport

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

SpatialAnchorsAccountsServerTransport connects instances of armmixedreality.SpatialAnchorsAccountsClient to instances of SpatialAnchorsAccountsServer. Don't use this type directly, use NewSpatialAnchorsAccountsServerTransport instead.

func NewSpatialAnchorsAccountsServerTransport

func NewSpatialAnchorsAccountsServerTransport(srv *SpatialAnchorsAccountsServer) *SpatialAnchorsAccountsServerTransport

NewSpatialAnchorsAccountsServerTransport creates a new instance of SpatialAnchorsAccountsServerTransport with the provided implementation. The returned SpatialAnchorsAccountsServerTransport instance is connected to an instance of armmixedreality.SpatialAnchorsAccountsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SpatialAnchorsAccountsServerTransport) Do

Do implements the policy.Transporter interface for SpatialAnchorsAccountsServerTransport.

Jump to

Keyboard shortcuts

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