fake

package
v0.1.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 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 {
	// BeginCreateEventstream is the fake for method ItemsClient.BeginCreateEventstream
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateEventstream func(ctx context.Context, workspaceID string, createEventstreamRequest eventstream.CreateEventstreamRequest, options *eventstream.ItemsClientBeginCreateEventstreamOptions) (resp azfake.PollerResponder[eventstream.ItemsClientCreateEventstreamResponse], errResp azfake.ErrorResponder)

	// DeleteEventstream is the fake for method ItemsClient.DeleteEventstream
	// HTTP status codes to indicate success: http.StatusOK
	DeleteEventstream func(ctx context.Context, workspaceID string, eventstreamID string, options *eventstream.ItemsClientDeleteEventstreamOptions) (resp azfake.Responder[eventstream.ItemsClientDeleteEventstreamResponse], errResp azfake.ErrorResponder)

	// GetEventstream is the fake for method ItemsClient.GetEventstream
	// HTTP status codes to indicate success: http.StatusOK
	GetEventstream func(ctx context.Context, workspaceID string, eventstreamID string, options *eventstream.ItemsClientGetEventstreamOptions) (resp azfake.Responder[eventstream.ItemsClientGetEventstreamResponse], errResp azfake.ErrorResponder)

	// BeginGetEventstreamDefinition is the fake for method ItemsClient.BeginGetEventstreamDefinition
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginGetEventstreamDefinition func(ctx context.Context, workspaceID string, eventstreamID string, options *eventstream.ItemsClientBeginGetEventstreamDefinitionOptions) (resp azfake.PollerResponder[eventstream.ItemsClientGetEventstreamDefinitionResponse], errResp azfake.ErrorResponder)

	// NewListEventstreamsPager is the fake for method ItemsClient.NewListEventstreamsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListEventstreamsPager func(workspaceID string, options *eventstream.ItemsClientListEventstreamsOptions) (resp azfake.PagerResponder[eventstream.ItemsClientListEventstreamsResponse])

	// UpdateEventstream is the fake for method ItemsClient.UpdateEventstream
	// HTTP status codes to indicate success: http.StatusOK
	UpdateEventstream func(ctx context.Context, workspaceID string, eventstreamID string, updateEventstreamRequest eventstream.UpdateEventstreamRequest, options *eventstream.ItemsClientUpdateEventstreamOptions) (resp azfake.Responder[eventstream.ItemsClientUpdateEventstreamResponse], errResp azfake.ErrorResponder)

	// BeginUpdateEventstreamDefinition is the fake for method ItemsClient.BeginUpdateEventstreamDefinition
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginUpdateEventstreamDefinition func(ctx context.Context, workspaceID string, eventstreamID string, updateEventstreamDefinitionRequest eventstream.UpdateEventstreamDefinitionRequest, options *eventstream.ItemsClientBeginUpdateEventstreamDefinitionOptions) (resp azfake.PollerResponder[eventstream.ItemsClientUpdateEventstreamDefinitionResponse], errResp azfake.ErrorResponder)
}

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

type ItemsServerTransport

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

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

type ServerFactoryTransport

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

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