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 {
	// BeginCreateNotebook is the fake for method ItemsClient.BeginCreateNotebook
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateNotebook func(ctx context.Context, workspaceID string, createNotebookRequest notebook.CreateNotebookRequest, options *notebook.ItemsClientBeginCreateNotebookOptions) (resp azfake.PollerResponder[notebook.ItemsClientCreateNotebookResponse], errResp azfake.ErrorResponder)

	// DeleteNotebook is the fake for method ItemsClient.DeleteNotebook
	// HTTP status codes to indicate success: http.StatusOK
	DeleteNotebook func(ctx context.Context, workspaceID string, notebookID string, options *notebook.ItemsClientDeleteNotebookOptions) (resp azfake.Responder[notebook.ItemsClientDeleteNotebookResponse], errResp azfake.ErrorResponder)

	// GetNotebook is the fake for method ItemsClient.GetNotebook
	// HTTP status codes to indicate success: http.StatusOK
	GetNotebook func(ctx context.Context, workspaceID string, notebookID string, options *notebook.ItemsClientGetNotebookOptions) (resp azfake.Responder[notebook.ItemsClientGetNotebookResponse], errResp azfake.ErrorResponder)

	// BeginGetNotebookDefinition is the fake for method ItemsClient.BeginGetNotebookDefinition
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginGetNotebookDefinition func(ctx context.Context, workspaceID string, notebookID string, options *notebook.ItemsClientBeginGetNotebookDefinitionOptions) (resp azfake.PollerResponder[notebook.ItemsClientGetNotebookDefinitionResponse], errResp azfake.ErrorResponder)

	// NewListNotebooksPager is the fake for method ItemsClient.NewListNotebooksPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListNotebooksPager func(workspaceID string, options *notebook.ItemsClientListNotebooksOptions) (resp azfake.PagerResponder[notebook.ItemsClientListNotebooksResponse])

	// UpdateNotebook is the fake for method ItemsClient.UpdateNotebook
	// HTTP status codes to indicate success: http.StatusOK
	UpdateNotebook func(ctx context.Context, workspaceID string, notebookID string, updateNotebookRequest notebook.UpdateNotebookRequest, options *notebook.ItemsClientUpdateNotebookOptions) (resp azfake.Responder[notebook.ItemsClientUpdateNotebookResponse], errResp azfake.ErrorResponder)

	// BeginUpdateNotebookDefinition is the fake for method ItemsClient.BeginUpdateNotebookDefinition
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginUpdateNotebookDefinition func(ctx context.Context, workspaceID string, notebookID string, updateNotebookDefinitionRequest notebook.UpdateNotebookDefinitionRequest, options *notebook.ItemsClientBeginUpdateNotebookDefinitionOptions) (resp azfake.PollerResponder[notebook.ItemsClientUpdateNotebookDefinitionResponse], errResp azfake.ErrorResponder)
}

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

type ItemsServerTransport

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

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

type ServerFactoryTransport

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

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