fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APISServer

type APISServer struct {
	// NewListOperationsPartnerPager is the fake for method APISClient.NewListOperationsPartnerPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListOperationsPartnerPager func(options *armedgeorderpartner.APISClientListOperationsPartnerOptions) (resp azfake.PagerResponder[armedgeorderpartner.APISClientListOperationsPartnerResponse])

	// BeginManageInventoryMetadata is the fake for method APISClient.BeginManageInventoryMetadata
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginManageInventoryMetadata func(ctx context.Context, familyIdentifier string, location string, serialNumber string, manageInventoryMetadataRequest armedgeorderpartner.ManageInventoryMetadataRequest, options *armedgeorderpartner.APISClientBeginManageInventoryMetadataOptions) (resp azfake.PollerResponder[armedgeorderpartner.APISClientManageInventoryMetadataResponse], errResp azfake.ErrorResponder)

	// ManageLink is the fake for method APISClient.ManageLink
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	ManageLink func(ctx context.Context, familyIdentifier string, location string, serialNumber string, manageLinkRequest armedgeorderpartner.ManageLinkRequest, options *armedgeorderpartner.APISClientManageLinkOptions) (resp azfake.Responder[armedgeorderpartner.APISClientManageLinkResponse], errResp azfake.ErrorResponder)

	// NewSearchInventoriesPager is the fake for method APISClient.NewSearchInventoriesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewSearchInventoriesPager func(searchInventoriesRequest armedgeorderpartner.SearchInventoriesRequest, options *armedgeorderpartner.APISClientSearchInventoriesOptions) (resp azfake.PagerResponder[armedgeorderpartner.APISClientSearchInventoriesResponse])
}

APISServer is a fake server for instances of the armedgeorderpartner.APISClient type.

type APISServerTransport

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

APISServerTransport connects instances of armedgeorderpartner.APISClient to instances of APISServer. Don't use this type directly, use NewAPISServerTransport instead.

func NewAPISServerTransport

func NewAPISServerTransport(srv *APISServer) *APISServerTransport

NewAPISServerTransport creates a new instance of APISServerTransport with the provided implementation. The returned APISServerTransport instance is connected to an instance of armedgeorderpartner.APISClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*APISServerTransport) Do

Do implements the policy.Transporter interface for APISServerTransport.

type ServerFactory

type ServerFactory struct {
	APISServer APISServer
}

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

type ServerFactoryTransport

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

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