fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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 OfferingsServer

type OfferingsServer struct {
	// NewListPager is the fake for method OfferingsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(locationName string, options *armquantum.OfferingsClientListOptions) (resp azfake.PagerResponder[armquantum.OfferingsClientListResponse])
}

OfferingsServer is a fake server for instances of the armquantum.OfferingsClient type.

type OfferingsServerTransport

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

OfferingsServerTransport connects instances of armquantum.OfferingsClient to instances of OfferingsServer. Don't use this type directly, use NewOfferingsServerTransport instead.

func NewOfferingsServerTransport

func NewOfferingsServerTransport(srv *OfferingsServer) *OfferingsServerTransport

NewOfferingsServerTransport creates a new instance of OfferingsServerTransport with the provided implementation. The returned OfferingsServerTransport instance is connected to an instance of armquantum.OfferingsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OfferingsServerTransport) Do

Do implements the policy.Transporter interface for OfferingsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armquantum.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 armquantum.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 {
	OfferingsServer  OfferingsServer
	OperationsServer OperationsServer
	WorkspaceServer  WorkspaceServer
	WorkspacesServer WorkspacesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armquantum.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 armquantum.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 WorkspaceServer

type WorkspaceServer struct {
	// CheckNameAvailability is the fake for method WorkspaceClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, locationName string, checkNameAvailabilityParameters armquantum.CheckNameAvailabilityParameters, options *armquantum.WorkspaceClientCheckNameAvailabilityOptions) (resp azfake.Responder[armquantum.WorkspaceClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// ListKeys is the fake for method WorkspaceClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, workspaceName string, options *armquantum.WorkspaceClientListKeysOptions) (resp azfake.Responder[armquantum.WorkspaceClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKeys is the fake for method WorkspaceClient.RegenerateKeys
	// HTTP status codes to indicate success: http.StatusNoContent
	RegenerateKeys func(ctx context.Context, resourceGroupName string, workspaceName string, keySpecification armquantum.APIKeys, options *armquantum.WorkspaceClientRegenerateKeysOptions) (resp azfake.Responder[armquantum.WorkspaceClientRegenerateKeysResponse], errResp azfake.ErrorResponder)
}

WorkspaceServer is a fake server for instances of the armquantum.WorkspaceClient type.

type WorkspaceServerTransport

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

WorkspaceServerTransport connects instances of armquantum.WorkspaceClient to instances of WorkspaceServer. Don't use this type directly, use NewWorkspaceServerTransport instead.

func NewWorkspaceServerTransport

func NewWorkspaceServerTransport(srv *WorkspaceServer) *WorkspaceServerTransport

NewWorkspaceServerTransport creates a new instance of WorkspaceServerTransport with the provided implementation. The returned WorkspaceServerTransport instance is connected to an instance of armquantum.WorkspaceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*WorkspaceServerTransport) Do

Do implements the policy.Transporter interface for WorkspaceServerTransport.

type WorkspacesServer

type WorkspacesServer struct {
	// BeginCreateOrUpdate is the fake for method WorkspacesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, workspaceName string, quantumWorkspace armquantum.Workspace, options *armquantum.WorkspacesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armquantum.WorkspacesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method WorkspacesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, workspaceName string, options *armquantum.WorkspacesClientBeginDeleteOptions) (resp azfake.PollerResponder[armquantum.WorkspacesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method WorkspacesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, options *armquantum.WorkspacesClientGetOptions) (resp azfake.Responder[armquantum.WorkspacesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method WorkspacesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armquantum.WorkspacesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armquantum.WorkspacesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method WorkspacesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armquantum.WorkspacesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armquantum.WorkspacesClientListBySubscriptionResponse])

	// UpdateTags is the fake for method WorkspacesClient.UpdateTags
	// HTTP status codes to indicate success: http.StatusOK
	UpdateTags func(ctx context.Context, resourceGroupName string, workspaceName string, workspaceTags armquantum.TagsObject, options *armquantum.WorkspacesClientUpdateTagsOptions) (resp azfake.Responder[armquantum.WorkspacesClientUpdateTagsResponse], errResp azfake.ErrorResponder)
}

WorkspacesServer is a fake server for instances of the armquantum.WorkspacesClient type.

type WorkspacesServerTransport

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

WorkspacesServerTransport connects instances of armquantum.WorkspacesClient to instances of WorkspacesServer. Don't use this type directly, use NewWorkspacesServerTransport instead.

func NewWorkspacesServerTransport

func NewWorkspacesServerTransport(srv *WorkspacesServer) *WorkspacesServerTransport

NewWorkspacesServerTransport creates a new instance of WorkspacesServerTransport with the provided implementation. The returned WorkspacesServerTransport instance is connected to an instance of armquantum.WorkspacesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*WorkspacesServerTransport) Do

Do implements the policy.Transporter interface for WorkspacesServerTransport.

Jump to

Keyboard shortcuts

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