fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 LedgerServer

type LedgerServer struct {
	// BeginCreate is the fake for method LedgerClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, ledgerName string, confidentialLedger armconfidentialledger.ConfidentialLedger, options *armconfidentialledger.LedgerClientBeginCreateOptions) (resp azfake.PollerResponder[armconfidentialledger.LedgerClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method LedgerClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, ledgerName string, options *armconfidentialledger.LedgerClientBeginDeleteOptions) (resp azfake.PollerResponder[armconfidentialledger.LedgerClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method LedgerClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, ledgerName string, options *armconfidentialledger.LedgerClientGetOptions) (resp azfake.Responder[armconfidentialledger.LedgerClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method LedgerClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armconfidentialledger.LedgerClientListByResourceGroupOptions) (resp azfake.PagerResponder[armconfidentialledger.LedgerClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method LedgerClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armconfidentialledger.LedgerClientListBySubscriptionOptions) (resp azfake.PagerResponder[armconfidentialledger.LedgerClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method LedgerClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceGroupName string, ledgerName string, confidentialLedger armconfidentialledger.ConfidentialLedger, options *armconfidentialledger.LedgerClientBeginUpdateOptions) (resp azfake.PollerResponder[armconfidentialledger.LedgerClientUpdateResponse], errResp azfake.ErrorResponder)
}

LedgerServer is a fake server for instances of the armconfidentialledger.LedgerClient type.

type LedgerServerTransport

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

LedgerServerTransport connects instances of armconfidentialledger.LedgerClient to instances of LedgerServer. Don't use this type directly, use NewLedgerServerTransport instead.

func NewLedgerServerTransport

func NewLedgerServerTransport(srv *LedgerServer) *LedgerServerTransport

NewLedgerServerTransport creates a new instance of LedgerServerTransport with the provided implementation. The returned LedgerServerTransport instance is connected to an instance of armconfidentialledger.LedgerClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LedgerServerTransport) Do

Do implements the policy.Transporter interface for LedgerServerTransport.

type OperationsServer

type OperationsServer struct {
	// NewListPager is the fake for method OperationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armconfidentialledger.OperationsClientListOptions) (resp azfake.PagerResponder[armconfidentialledger.OperationsClientListResponse])
}

OperationsServer is a fake server for instances of the armconfidentialledger.OperationsClient type.

type OperationsServerTransport

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

OperationsServerTransport connects instances of armconfidentialledger.OperationsClient to instances of OperationsServer. Don't use this type directly, use NewOperationsServerTransport instead.

func NewOperationsServerTransport

func NewOperationsServerTransport(srv *OperationsServer) *OperationsServerTransport

NewOperationsServerTransport creates a new instance of OperationsServerTransport with the provided implementation. The returned OperationsServerTransport instance is connected to an instance of armconfidentialledger.OperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationsServerTransport) Do

Do implements the policy.Transporter interface for OperationsServerTransport.

type Server

type Server struct {
	// CheckNameAvailability is the fake for method Client.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, nameAvailabilityRequest armconfidentialledger.CheckNameAvailabilityRequest, options *armconfidentialledger.ClientCheckNameAvailabilityOptions) (resp azfake.Responder[armconfidentialledger.ClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)
}

Server is a fake server for instances of the armconfidentialledger.Client type.

type ServerFactory

type ServerFactory struct {
	Server           Server
	LedgerServer     LedgerServer
	OperationsServer OperationsServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armconfidentialledger.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 armconfidentialledger.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

type ServerTransport

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

ServerTransport connects instances of armconfidentialledger.Client to instances of Server. Don't use this type directly, use NewServerTransport instead.

func NewServerTransport

func NewServerTransport(srv *Server) *ServerTransport

NewServerTransport creates a new instance of ServerTransport with the provided implementation. The returned ServerTransport instance is connected to an instance of armconfidentialledger.Client via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerTransport) Do

func (s *ServerTransport) Do(req *http.Request) (*http.Response, error)

Do implements the policy.Transporter interface for ServerTransport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL