fake

package
v0.1.0-beta.10 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemsServer

type ItemsServer struct {
	// BeginCreateDataPipeline is the fake for method ItemsClient.BeginCreateDataPipeline
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateDataPipeline func(ctx context.Context, workspaceID string, createDataPipelineRequest datapipeline.CreateDataPipelineRequest, options *datapipeline.ItemsClientBeginCreateDataPipelineOptions) (resp azfake.PollerResponder[datapipeline.ItemsClientCreateDataPipelineResponse], errResp azfake.ErrorResponder)

	// DeleteDataPipeline is the fake for method ItemsClient.DeleteDataPipeline
	// HTTP status codes to indicate success: http.StatusOK
	DeleteDataPipeline func(ctx context.Context, workspaceID string, dataPipelineID string, options *datapipeline.ItemsClientDeleteDataPipelineOptions) (resp azfake.Responder[datapipeline.ItemsClientDeleteDataPipelineResponse], errResp azfake.ErrorResponder)

	// GetDataPipeline is the fake for method ItemsClient.GetDataPipeline
	// HTTP status codes to indicate success: http.StatusOK
	GetDataPipeline func(ctx context.Context, workspaceID string, dataPipelineID string, options *datapipeline.ItemsClientGetDataPipelineOptions) (resp azfake.Responder[datapipeline.ItemsClientGetDataPipelineResponse], errResp azfake.ErrorResponder)

	// NewListDataPipelinesPager is the fake for method ItemsClient.NewListDataPipelinesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListDataPipelinesPager func(workspaceID string, options *datapipeline.ItemsClientListDataPipelinesOptions) (resp azfake.PagerResponder[datapipeline.ItemsClientListDataPipelinesResponse])

	// UpdateDataPipeline is the fake for method ItemsClient.UpdateDataPipeline
	// HTTP status codes to indicate success: http.StatusOK
	UpdateDataPipeline func(ctx context.Context, workspaceID string, dataPipelineID string, updateDataPipelineRequest datapipeline.UpdateDataPipelineRequest, options *datapipeline.ItemsClientUpdateDataPipelineOptions) (resp azfake.Responder[datapipeline.ItemsClientUpdateDataPipelineResponse], errResp azfake.ErrorResponder)
}

ItemsServer is a fake server for instances of the datapipeline.ItemsClient type.

type ItemsServerTransport

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

ItemsServerTransport connects instances of datapipeline.ItemsClient to instances of ItemsServer. Don't use this type directly, use NewItemsServerTransport instead.

func NewItemsServerTransport

func NewItemsServerTransport(srv *ItemsServer) *ItemsServerTransport

NewItemsServerTransport creates a new instance of ItemsServerTransport with the provided implementation. The returned ItemsServerTransport instance is connected to an instance of datapipeline.ItemsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ItemsServerTransport) Do

Do implements the policy.Transporter interface for ItemsServerTransport.

type ServerFactory

type ServerFactory struct {
	ItemsServer ItemsServer
}

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

type ServerFactoryTransport

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

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