fake

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobsServer

type JobsServer struct {
	// BookShipmentPickUp is the fake for method JobsClient.BookShipmentPickUp
	// HTTP status codes to indicate success: http.StatusOK
	BookShipmentPickUp func(ctx context.Context, resourceGroupName string, jobName string, shipmentPickUpRequest armdatabox.ShipmentPickUpRequest, options *armdatabox.JobsClientBookShipmentPickUpOptions) (resp azfake.Responder[armdatabox.JobsClientBookShipmentPickUpResponse], errResp azfake.ErrorResponder)

	// Cancel is the fake for method JobsClient.Cancel
	// HTTP status codes to indicate success: http.StatusNoContent
	Cancel func(ctx context.Context, resourceGroupName string, jobName string, cancellationReason armdatabox.CancellationReason, options *armdatabox.JobsClientCancelOptions) (resp azfake.Responder[armdatabox.JobsClientCancelResponse], errResp azfake.ErrorResponder)

	// BeginCreate is the fake for method JobsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginCreate func(ctx context.Context, resourceGroupName string, jobName string, jobResource armdatabox.JobResource, options *armdatabox.JobsClientBeginCreateOptions) (resp azfake.PollerResponder[armdatabox.JobsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method JobsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, jobName string, options *armdatabox.JobsClientBeginDeleteOptions) (resp azfake.PollerResponder[armdatabox.JobsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method JobsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, jobName string, options *armdatabox.JobsClientGetOptions) (resp azfake.Responder[armdatabox.JobsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method JobsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdatabox.JobsClientListOptions) (resp azfake.PagerResponder[armdatabox.JobsClientListResponse])

	// NewListByResourceGroupPager is the fake for method JobsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdatabox.JobsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdatabox.JobsClientListByResourceGroupResponse])

	// NewListCredentialsPager is the fake for method JobsClient.NewListCredentialsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListCredentialsPager func(resourceGroupName string, jobName string, options *armdatabox.JobsClientListCredentialsOptions) (resp azfake.PagerResponder[armdatabox.JobsClientListCredentialsResponse])

	// MarkDevicesShipped is the fake for method JobsClient.MarkDevicesShipped
	// HTTP status codes to indicate success: http.StatusNoContent
	MarkDevicesShipped func(ctx context.Context, jobName string, resourceGroupName string, markDevicesShippedRequest armdatabox.MarkDevicesShippedRequest, options *armdatabox.JobsClientMarkDevicesShippedOptions) (resp azfake.Responder[armdatabox.JobsClientMarkDevicesShippedResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method JobsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, jobName string, jobResourceUpdateParameter armdatabox.JobResourceUpdateParameter, options *armdatabox.JobsClientBeginUpdateOptions) (resp azfake.PollerResponder[armdatabox.JobsClientUpdateResponse], errResp azfake.ErrorResponder)
}

JobsServer is a fake server for instances of the armdatabox.JobsClient type.

type JobsServerTransport

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

JobsServerTransport connects instances of armdatabox.JobsClient to instances of JobsServer. Don't use this type directly, use NewJobsServerTransport instead.

func NewJobsServerTransport

func NewJobsServerTransport(srv *JobsServer) *JobsServerTransport

NewJobsServerTransport creates a new instance of JobsServerTransport with the provided implementation. The returned JobsServerTransport instance is connected to an instance of armdatabox.JobsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*JobsServerTransport) Do

Do implements the policy.Transporter interface for JobsServerTransport.

type ManagementServer

type ManagementServer struct {
	// Mitigate is the fake for method ManagementClient.Mitigate
	// HTTP status codes to indicate success: http.StatusNoContent
	Mitigate func(ctx context.Context, jobName string, resourceGroupName string, mitigateJobRequest armdatabox.MitigateJobRequest, options *armdatabox.ManagementClientMitigateOptions) (resp azfake.Responder[armdatabox.ManagementClientMitigateResponse], errResp azfake.ErrorResponder)
}

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

type ManagementServerTransport

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

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armdatabox.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 armdatabox.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 {
	JobsServer       JobsServer
	ManagementServer ManagementServer
	OperationsServer OperationsServer
	ServiceServer    ServiceServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armdatabox.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 armdatabox.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 ServiceServer

type ServiceServer struct {
	// NewListAvailableSKUsByResourceGroupPager is the fake for method ServiceClient.NewListAvailableSKUsByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAvailableSKUsByResourceGroupPager func(resourceGroupName string, location string, availableSKURequest armdatabox.AvailableSKURequest, options *armdatabox.ServiceClientListAvailableSKUsByResourceGroupOptions) (resp azfake.PagerResponder[armdatabox.ServiceClientListAvailableSKUsByResourceGroupResponse])

	// RegionConfiguration is the fake for method ServiceClient.RegionConfiguration
	// HTTP status codes to indicate success: http.StatusOK
	RegionConfiguration func(ctx context.Context, location string, regionConfigurationRequest armdatabox.RegionConfigurationRequest, options *armdatabox.ServiceClientRegionConfigurationOptions) (resp azfake.Responder[armdatabox.ServiceClientRegionConfigurationResponse], errResp azfake.ErrorResponder)

	// RegionConfigurationByResourceGroup is the fake for method ServiceClient.RegionConfigurationByResourceGroup
	// HTTP status codes to indicate success: http.StatusOK
	RegionConfigurationByResourceGroup func(ctx context.Context, resourceGroupName string, location string, regionConfigurationRequest armdatabox.RegionConfigurationRequest, options *armdatabox.ServiceClientRegionConfigurationByResourceGroupOptions) (resp azfake.Responder[armdatabox.ServiceClientRegionConfigurationByResourceGroupResponse], errResp azfake.ErrorResponder)

	// ValidateAddress is the fake for method ServiceClient.ValidateAddress
	// HTTP status codes to indicate success: http.StatusOK
	ValidateAddress func(ctx context.Context, location string, validateAddress armdatabox.ValidateAddress, options *armdatabox.ServiceClientValidateAddressOptions) (resp azfake.Responder[armdatabox.ServiceClientValidateAddressResponse], errResp azfake.ErrorResponder)

	// ValidateInputs is the fake for method ServiceClient.ValidateInputs
	// HTTP status codes to indicate success: http.StatusOK
	ValidateInputs func(ctx context.Context, location string, validationRequest armdatabox.ValidationRequestClassification, options *armdatabox.ServiceClientValidateInputsOptions) (resp azfake.Responder[armdatabox.ServiceClientValidateInputsResponse], errResp azfake.ErrorResponder)

	// ValidateInputsByResourceGroup is the fake for method ServiceClient.ValidateInputsByResourceGroup
	// HTTP status codes to indicate success: http.StatusOK
	ValidateInputsByResourceGroup func(ctx context.Context, resourceGroupName string, location string, validationRequest armdatabox.ValidationRequestClassification, options *armdatabox.ServiceClientValidateInputsByResourceGroupOptions) (resp azfake.Responder[armdatabox.ServiceClientValidateInputsByResourceGroupResponse], errResp azfake.ErrorResponder)
}

ServiceServer is a fake server for instances of the armdatabox.ServiceClient type.

type ServiceServerTransport

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

ServiceServerTransport connects instances of armdatabox.ServiceClient to instances of ServiceServer. Don't use this type directly, use NewServiceServerTransport instead.

func NewServiceServerTransport

func NewServiceServerTransport(srv *ServiceServer) *ServiceServerTransport

NewServiceServerTransport creates a new instance of ServiceServerTransport with the provided implementation. The returned ServiceServerTransport instance is connected to an instance of armdatabox.ServiceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServiceServerTransport) Do

Do implements the policy.Transporter interface for ServiceServerTransport.

Jump to

Keyboard shortcuts

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