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: 15 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 {
	// CreateKQLDashboard is the fake for method ItemsClient.CreateKQLDashboard
	// HTTP status codes to indicate success: http.StatusCreated
	CreateKQLDashboard func(ctx context.Context, workspaceID string, createKQLDashboardRequest kqldashboard.CreateKQLDashboardRequest, options *kqldashboard.ItemsClientCreateKQLDashboardOptions) (resp azfake.Responder[kqldashboard.ItemsClientCreateKQLDashboardResponse], errResp azfake.ErrorResponder)

	// DeleteKQLDashboard is the fake for method ItemsClient.DeleteKQLDashboard
	// HTTP status codes to indicate success: http.StatusOK
	DeleteKQLDashboard func(ctx context.Context, workspaceID string, kqlDashboardID string, options *kqldashboard.ItemsClientDeleteKQLDashboardOptions) (resp azfake.Responder[kqldashboard.ItemsClientDeleteKQLDashboardResponse], errResp azfake.ErrorResponder)

	// GetKQLDashboard is the fake for method ItemsClient.GetKQLDashboard
	// HTTP status codes to indicate success: http.StatusOK
	GetKQLDashboard func(ctx context.Context, workspaceID string, kqlDashboardID string, options *kqldashboard.ItemsClientGetKQLDashboardOptions) (resp azfake.Responder[kqldashboard.ItemsClientGetKQLDashboardResponse], errResp azfake.ErrorResponder)

	// GetKQLDashboardDefinition is the fake for method ItemsClient.GetKQLDashboardDefinition
	// HTTP status codes to indicate success: http.StatusOK
	GetKQLDashboardDefinition func(ctx context.Context, workspaceID string, kqlDashboardID string, options *kqldashboard.ItemsClientGetKQLDashboardDefinitionOptions) (resp azfake.Responder[kqldashboard.ItemsClientGetKQLDashboardDefinitionResponse], errResp azfake.ErrorResponder)

	// NewListKQLDashboardsPager is the fake for method ItemsClient.NewListKQLDashboardsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListKQLDashboardsPager func(workspaceID string, options *kqldashboard.ItemsClientListKQLDashboardsOptions) (resp azfake.PagerResponder[kqldashboard.ItemsClientListKQLDashboardsResponse])

	// UpdateKQLDashboard is the fake for method ItemsClient.UpdateKQLDashboard
	// HTTP status codes to indicate success: http.StatusOK
	UpdateKQLDashboard func(ctx context.Context, workspaceID string, kqlDashboardID string, updateKQLDashboardRequest kqldashboard.UpdateKQLDashboardRequest, options *kqldashboard.ItemsClientUpdateKQLDashboardOptions) (resp azfake.Responder[kqldashboard.ItemsClientUpdateKQLDashboardResponse], errResp azfake.ErrorResponder)

	// UpdateKQLDashboardDefinition is the fake for method ItemsClient.UpdateKQLDashboardDefinition
	// HTTP status codes to indicate success: http.StatusOK
	UpdateKQLDashboardDefinition func(ctx context.Context, workspaceID string, kqlDashboardID string, updateKQLDashboardDefinitionRequest kqldashboard.UpdateKQLDashboardDefinitionRequest, options *kqldashboard.ItemsClientUpdateKQLDashboardDefinitionOptions) (resp azfake.Responder[kqldashboard.ItemsClientUpdateKQLDashboardDefinitionResponse], errResp azfake.ErrorResponder)
}

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

type ItemsServerTransport

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

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

type ServerFactoryTransport

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

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