fake

package
v0.1.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundJobsServer

type BackgroundJobsServer struct {
	// RunOnDemandTableMaintenance is the fake for method BackgroundJobsClient.RunOnDemandTableMaintenance
	// HTTP status codes to indicate success: http.StatusAccepted
	RunOnDemandTableMaintenance func(ctx context.Context, workspaceID string, lakehouseID string, jobType string, runOnDemandTableMaintenanceRequest lakehouse.RunOnDemandTableMaintenanceRequest, options *lakehouse.BackgroundJobsClientRunOnDemandTableMaintenanceOptions) (resp azfake.Responder[lakehouse.BackgroundJobsClientRunOnDemandTableMaintenanceResponse], errResp azfake.ErrorResponder)
}

BackgroundJobsServer is a fake server for instances of the lakehouse.BackgroundJobsClient type.

type BackgroundJobsServerTransport

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

BackgroundJobsServerTransport connects instances of lakehouse.BackgroundJobsClient to instances of BackgroundJobsServer. Don't use this type directly, use NewBackgroundJobsServerTransport instead.

func NewBackgroundJobsServerTransport

func NewBackgroundJobsServerTransport(srv *BackgroundJobsServer) *BackgroundJobsServerTransport

NewBackgroundJobsServerTransport creates a new instance of BackgroundJobsServerTransport with the provided implementation. The returned BackgroundJobsServerTransport instance is connected to an instance of lakehouse.BackgroundJobsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*BackgroundJobsServerTransport) Do

Do implements the policy.Transporter interface for BackgroundJobsServerTransport.

type ItemsServer

type ItemsServer struct {
	// BeginCreateLakehouse is the fake for method ItemsClient.BeginCreateLakehouse
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateLakehouse func(ctx context.Context, workspaceID string, createLakehouseRequest lakehouse.CreateLakehouseRequest, options *lakehouse.ItemsClientBeginCreateLakehouseOptions) (resp azfake.PollerResponder[lakehouse.ItemsClientCreateLakehouseResponse], errResp azfake.ErrorResponder)

	// DeleteLakehouse is the fake for method ItemsClient.DeleteLakehouse
	// HTTP status codes to indicate success: http.StatusOK
	DeleteLakehouse func(ctx context.Context, workspaceID string, lakehouseID string, options *lakehouse.ItemsClientDeleteLakehouseOptions) (resp azfake.Responder[lakehouse.ItemsClientDeleteLakehouseResponse], errResp azfake.ErrorResponder)

	// GetLakehouse is the fake for method ItemsClient.GetLakehouse
	// HTTP status codes to indicate success: http.StatusOK
	GetLakehouse func(ctx context.Context, workspaceID string, lakehouseID string, options *lakehouse.ItemsClientGetLakehouseOptions) (resp azfake.Responder[lakehouse.ItemsClientGetLakehouseResponse], errResp azfake.ErrorResponder)

	// NewListLakehousesPager is the fake for method ItemsClient.NewListLakehousesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListLakehousesPager func(workspaceID string, options *lakehouse.ItemsClientListLakehousesOptions) (resp azfake.PagerResponder[lakehouse.ItemsClientListLakehousesResponse])

	// UpdateLakehouse is the fake for method ItemsClient.UpdateLakehouse
	// HTTP status codes to indicate success: http.StatusOK
	UpdateLakehouse func(ctx context.Context, workspaceID string, lakehouseID string, updateLakehouseRequest lakehouse.UpdateLakehouseRequest, options *lakehouse.ItemsClientUpdateLakehouseOptions) (resp azfake.Responder[lakehouse.ItemsClientUpdateLakehouseResponse], errResp azfake.ErrorResponder)
}

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

type ItemsServerTransport

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

ItemsServerTransport connects instances of lakehouse.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 lakehouse.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 {
	BackgroundJobsServer BackgroundJobsServer
	ItemsServer          ItemsServer
	TablesServer         TablesServer
}

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

type ServerFactoryTransport

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

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

type TablesServer struct {
	// NewListTablesPager is the fake for method TablesClient.NewListTablesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListTablesPager func(workspaceID string, lakehouseID string, options *lakehouse.TablesClientListTablesOptions) (resp azfake.PagerResponder[lakehouse.TablesClientListTablesResponse])

	// BeginLoadTable is the fake for method TablesClient.BeginLoadTable
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginLoadTable func(ctx context.Context, workspaceID string, lakehouseID string, tableName string, loadTableRequest lakehouse.LoadTableRequest, options *lakehouse.TablesClientBeginLoadTableOptions) (resp azfake.PollerResponder[lakehouse.TablesClientLoadTableResponse], errResp azfake.ErrorResponder)
}

TablesServer is a fake server for instances of the lakehouse.TablesClient type.

type TablesServerTransport

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

TablesServerTransport connects instances of lakehouse.TablesClient to instances of TablesServer. Don't use this type directly, use NewTablesServerTransport instead.

func NewTablesServerTransport

func NewTablesServerTransport(srv *TablesServer) *TablesServerTransport

NewTablesServerTransport creates a new instance of TablesServerTransport with the provided implementation. The returned TablesServerTransport instance is connected to an instance of lakehouse.TablesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TablesServerTransport) Do

Do implements the policy.Transporter interface for TablesServerTransport.

Jump to

Keyboard shortcuts

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