fake

package
v1.1.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 AccountsServer

type AccountsServer struct {
	// BeginCreateAndUpdate is the fake for method AccountsClient.BeginCreateAndUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateAndUpdate func(ctx context.Context, resourceGroupName string, resourceName string, accountResource armgraphservices.AccountResource, options *armgraphservices.AccountsClientBeginCreateAndUpdateOptions) (resp azfake.PollerResponder[armgraphservices.AccountsClientCreateAndUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method AccountsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, resourceName string, options *armgraphservices.AccountsClientDeleteOptions) (resp azfake.Responder[armgraphservices.AccountsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AccountsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceName string, options *armgraphservices.AccountsClientGetOptions) (resp azfake.Responder[armgraphservices.AccountsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AccountsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armgraphservices.AccountsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armgraphservices.AccountsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AccountsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armgraphservices.AccountsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armgraphservices.AccountsClientListBySubscriptionResponse])

	// Update is the fake for method AccountsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, accountResource armgraphservices.AccountPatchResource, options *armgraphservices.AccountsClientUpdateOptions) (resp azfake.Responder[armgraphservices.AccountsClientUpdateResponse], errResp azfake.ErrorResponder)
}

AccountsServer is a fake server for instances of the armgraphservices.AccountsClient type.

type AccountsServerTransport

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

AccountsServerTransport connects instances of armgraphservices.AccountsClient to instances of AccountsServer. Don't use this type directly, use NewAccountsServerTransport instead.

func NewAccountsServerTransport

func NewAccountsServerTransport(srv *AccountsServer) *AccountsServerTransport

NewAccountsServerTransport creates a new instance of AccountsServerTransport with the provided implementation. The returned AccountsServerTransport instance is connected to an instance of armgraphservices.AccountsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AccountsServerTransport) Do

Do implements the policy.Transporter interface for AccountsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armgraphservices.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 armgraphservices.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 ServerFactory

type ServerFactory struct {
	AccountsServer   AccountsServer
	OperationsServer OperationsServer
}

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

type ServerFactoryTransport

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

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