fake

package
v0.3.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: 12 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 {
	// CreateOrUpdate is the fake for method AccountsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, accountName string, account armengagementfabric.Account, options *armengagementfabric.AccountsClientCreateOrUpdateOptions) (resp azfake.Responder[armengagementfabric.AccountsClientCreateOrUpdateResponse], 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, accountName string, options *armengagementfabric.AccountsClientDeleteOptions) (resp azfake.Responder[armengagementfabric.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, accountName string, options *armengagementfabric.AccountsClientGetOptions) (resp azfake.Responder[armengagementfabric.AccountsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AccountsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armengagementfabric.AccountsClientListOptions) (resp azfake.PagerResponder[armengagementfabric.AccountsClientListResponse])

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

	// ListChannelTypes is the fake for method AccountsClient.ListChannelTypes
	// HTTP status codes to indicate success: http.StatusOK
	ListChannelTypes func(ctx context.Context, resourceGroupName string, accountName string, options *armengagementfabric.AccountsClientListChannelTypesOptions) (resp azfake.Responder[armengagementfabric.AccountsClientListChannelTypesResponse], errResp azfake.ErrorResponder)

	// NewListKeysPager is the fake for method AccountsClient.NewListKeysPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListKeysPager func(resourceGroupName string, accountName string, options *armengagementfabric.AccountsClientListKeysOptions) (resp azfake.PagerResponder[armengagementfabric.AccountsClientListKeysResponse])

	// RegenerateKey is the fake for method AccountsClient.RegenerateKey
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKey func(ctx context.Context, resourceGroupName string, accountName string, parameter armengagementfabric.RegenerateKeyParameter, options *armengagementfabric.AccountsClientRegenerateKeyOptions) (resp azfake.Responder[armengagementfabric.AccountsClientRegenerateKeyResponse], errResp azfake.ErrorResponder)

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

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

type AccountsServerTransport

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

AccountsServerTransport connects instances of armengagementfabric.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 armengagementfabric.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 ChannelsServer

type ChannelsServer struct {
	// CreateOrUpdate is the fake for method ChannelsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, accountName string, channelName string, channel armengagementfabric.Channel, options *armengagementfabric.ChannelsClientCreateOrUpdateOptions) (resp azfake.Responder[armengagementfabric.ChannelsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ChannelsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, accountName string, channelName string, options *armengagementfabric.ChannelsClientDeleteOptions) (resp azfake.Responder[armengagementfabric.ChannelsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ChannelsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, accountName string, channelName string, options *armengagementfabric.ChannelsClientGetOptions) (resp azfake.Responder[armengagementfabric.ChannelsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByAccountPager is the fake for method ChannelsClient.NewListByAccountPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByAccountPager func(resourceGroupName string, accountName string, options *armengagementfabric.ChannelsClientListByAccountOptions) (resp azfake.PagerResponder[armengagementfabric.ChannelsClientListByAccountResponse])
}

ChannelsServer is a fake server for instances of the armengagementfabric.ChannelsClient type.

type ChannelsServerTransport

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

ChannelsServerTransport connects instances of armengagementfabric.ChannelsClient to instances of ChannelsServer. Don't use this type directly, use NewChannelsServerTransport instead.

func NewChannelsServerTransport

func NewChannelsServerTransport(srv *ChannelsServer) *ChannelsServerTransport

NewChannelsServerTransport creates a new instance of ChannelsServerTransport with the provided implementation. The returned ChannelsServerTransport instance is connected to an instance of armengagementfabric.ChannelsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ChannelsServerTransport) Do

Do implements the policy.Transporter interface for ChannelsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armengagementfabric.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 armengagementfabric.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 SKUsServer

type SKUsServer struct {
	// NewListPager is the fake for method SKUsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armengagementfabric.SKUsClientListOptions) (resp azfake.PagerResponder[armengagementfabric.SKUsClientListResponse])
}

SKUsServer is a fake server for instances of the armengagementfabric.SKUsClient type.

type SKUsServerTransport

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

SKUsServerTransport connects instances of armengagementfabric.SKUsClient to instances of SKUsServer. Don't use this type directly, use NewSKUsServerTransport instead.

func NewSKUsServerTransport

func NewSKUsServerTransport(srv *SKUsServer) *SKUsServerTransport

NewSKUsServerTransport creates a new instance of SKUsServerTransport with the provided implementation. The returned SKUsServerTransport instance is connected to an instance of armengagementfabric.SKUsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SKUsServerTransport) Do

Do implements the policy.Transporter interface for SKUsServerTransport.

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, resourceGroupName string, parameters armengagementfabric.CheckNameAvailabilityParameter, options *armengagementfabric.ClientCheckNameAvailabilityOptions) (resp azfake.Responder[armengagementfabric.ClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)
}

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

type ServerFactory

type ServerFactory struct {
	AccountsServer   AccountsServer
	ChannelsServer   ChannelsServer
	Server           Server
	OperationsServer OperationsServer
	SKUsServer       SKUsServer
}

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

type ServerFactoryTransport

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

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