fake

package
v0.1.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 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 ItemsServer

type ItemsServer struct {
	// BeginCreateWarehouse is the fake for method ItemsClient.BeginCreateWarehouse
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateWarehouse func(ctx context.Context, workspaceID string, createWarehouseRequest warehouse.CreateWarehouseRequest, options *warehouse.ItemsClientBeginCreateWarehouseOptions) (resp azfake.PollerResponder[warehouse.ItemsClientCreateWarehouseResponse], errResp azfake.ErrorResponder)

	// DeleteWarehouse is the fake for method ItemsClient.DeleteWarehouse
	// HTTP status codes to indicate success: http.StatusOK
	DeleteWarehouse func(ctx context.Context, workspaceID string, warehouseID string, options *warehouse.ItemsClientDeleteWarehouseOptions) (resp azfake.Responder[warehouse.ItemsClientDeleteWarehouseResponse], errResp azfake.ErrorResponder)

	// GetWarehouse is the fake for method ItemsClient.GetWarehouse
	// HTTP status codes to indicate success: http.StatusOK
	GetWarehouse func(ctx context.Context, workspaceID string, warehouseID string, options *warehouse.ItemsClientGetWarehouseOptions) (resp azfake.Responder[warehouse.ItemsClientGetWarehouseResponse], errResp azfake.ErrorResponder)

	// NewListWarehousesPager is the fake for method ItemsClient.NewListWarehousesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListWarehousesPager func(workspaceID string, options *warehouse.ItemsClientListWarehousesOptions) (resp azfake.PagerResponder[warehouse.ItemsClientListWarehousesResponse])

	// UpdateWarehouse is the fake for method ItemsClient.UpdateWarehouse
	// HTTP status codes to indicate success: http.StatusOK
	UpdateWarehouse func(ctx context.Context, workspaceID string, warehouseID string, updateWarehouseRequest warehouse.UpdateWarehouseRequest, options *warehouse.ItemsClientUpdateWarehouseOptions) (resp azfake.Responder[warehouse.ItemsClientUpdateWarehouseResponse], errResp azfake.ErrorResponder)
}

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

type ItemsServerTransport

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

ItemsServerTransport connects instances of warehouse.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 warehouse.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 warehouse.ClientFactory type.

type ServerFactoryTransport

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

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