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: 14 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 {
	// BeginCreateGraphQLAPI is the fake for method ItemsClient.BeginCreateGraphQLAPI
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateGraphQLAPI func(ctx context.Context, workspaceID string, createGraphQLAPIRequest graphqlapi.CreateGraphQLAPIRequest, options *graphqlapi.ItemsClientBeginCreateGraphQLAPIOptions) (resp azfake.PollerResponder[graphqlapi.ItemsClientCreateGraphQLAPIResponse], errResp azfake.ErrorResponder)

	// DeleteGraphQLAPI is the fake for method ItemsClient.DeleteGraphQLAPI
	// HTTP status codes to indicate success: http.StatusOK
	DeleteGraphQLAPI func(ctx context.Context, workspaceID string, graphQLAPIID string, options *graphqlapi.ItemsClientDeleteGraphQLAPIOptions) (resp azfake.Responder[graphqlapi.ItemsClientDeleteGraphQLAPIResponse], errResp azfake.ErrorResponder)

	// GetGraphQLAPI is the fake for method ItemsClient.GetGraphQLAPI
	// HTTP status codes to indicate success: http.StatusOK
	GetGraphQLAPI func(ctx context.Context, workspaceID string, graphQLAPIID string, options *graphqlapi.ItemsClientGetGraphQLAPIOptions) (resp azfake.Responder[graphqlapi.ItemsClientGetGraphQLAPIResponse], errResp azfake.ErrorResponder)

	// NewListGraphQLApisPager is the fake for method ItemsClient.NewListGraphQLApisPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListGraphQLApisPager func(workspaceID string, options *graphqlapi.ItemsClientListGraphQLApisOptions) (resp azfake.PagerResponder[graphqlapi.ItemsClientListGraphQLApisResponse])

	// UpdateGraphQLAPI is the fake for method ItemsClient.UpdateGraphQLAPI
	// HTTP status codes to indicate success: http.StatusOK
	UpdateGraphQLAPI func(ctx context.Context, workspaceID string, graphQLAPIID string, updateGraphQLAPIRequest graphqlapi.UpdateGraphQLAPIRequest, options *graphqlapi.ItemsClientUpdateGraphQLAPIOptions) (resp azfake.Responder[graphqlapi.ItemsClientUpdateGraphQLAPIResponse], errResp azfake.ErrorResponder)
}

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

type ItemsServerTransport

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

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

type ServerFactoryTransport

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

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