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: 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 {
	// CreateOrUpdate is the fake for method AccountsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, accountName string, resourceGroupName string, parameters armpowerplatform.Account, options *armpowerplatform.AccountsClientCreateOrUpdateOptions) (resp azfake.Responder[armpowerplatform.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, accountName string, resourceGroupName string, options *armpowerplatform.AccountsClientDeleteOptions) (resp azfake.Responder[armpowerplatform.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, accountName string, resourceGroupName string, options *armpowerplatform.AccountsClientGetOptions) (resp azfake.Responder[armpowerplatform.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 *armpowerplatform.AccountsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armpowerplatform.AccountsClientListByResourceGroupResponse])

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

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

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

type AccountsServerTransport

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

AccountsServerTransport connects instances of armpowerplatform.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 armpowerplatform.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 EnterprisePoliciesServer

type EnterprisePoliciesServer struct {
	// CreateOrUpdate is the fake for method EnterprisePoliciesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, enterprisePolicyName string, resourceGroupName string, parameters armpowerplatform.EnterprisePolicy, options *armpowerplatform.EnterprisePoliciesClientCreateOrUpdateOptions) (resp azfake.Responder[armpowerplatform.EnterprisePoliciesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method EnterprisePoliciesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, enterprisePolicyName string, options *armpowerplatform.EnterprisePoliciesClientDeleteOptions) (resp azfake.Responder[armpowerplatform.EnterprisePoliciesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method EnterprisePoliciesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, enterprisePolicyName string, resourceGroupName string, options *armpowerplatform.EnterprisePoliciesClientGetOptions) (resp azfake.Responder[armpowerplatform.EnterprisePoliciesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method EnterprisePoliciesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armpowerplatform.EnterprisePoliciesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armpowerplatform.EnterprisePoliciesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method EnterprisePoliciesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armpowerplatform.EnterprisePoliciesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armpowerplatform.EnterprisePoliciesClientListBySubscriptionResponse])

	// Update is the fake for method EnterprisePoliciesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, enterprisePolicyName string, resourceGroupName string, parameters armpowerplatform.PatchEnterprisePolicy, options *armpowerplatform.EnterprisePoliciesClientUpdateOptions) (resp azfake.Responder[armpowerplatform.EnterprisePoliciesClientUpdateResponse], errResp azfake.ErrorResponder)
}

EnterprisePoliciesServer is a fake server for instances of the armpowerplatform.EnterprisePoliciesClient type.

type EnterprisePoliciesServerTransport

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

EnterprisePoliciesServerTransport connects instances of armpowerplatform.EnterprisePoliciesClient to instances of EnterprisePoliciesServer. Don't use this type directly, use NewEnterprisePoliciesServerTransport instead.

func NewEnterprisePoliciesServerTransport

func NewEnterprisePoliciesServerTransport(srv *EnterprisePoliciesServer) *EnterprisePoliciesServerTransport

NewEnterprisePoliciesServerTransport creates a new instance of EnterprisePoliciesServerTransport with the provided implementation. The returned EnterprisePoliciesServerTransport instance is connected to an instance of armpowerplatform.EnterprisePoliciesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*EnterprisePoliciesServerTransport) Do

Do implements the policy.Transporter interface for EnterprisePoliciesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armpowerplatform.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 armpowerplatform.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 PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// BeginCreateOrUpdate is the fake for method PrivateEndpointConnectionsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, enterprisePolicyName string, privateEndpointConnectionName string, parameters armpowerplatform.PrivateEndpointConnection, options *armpowerplatform.PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armpowerplatform.PrivateEndpointConnectionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method PrivateEndpointConnectionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, enterprisePolicyName string, privateEndpointConnectionName string, options *armpowerplatform.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armpowerplatform.PrivateEndpointConnectionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateEndpointConnectionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, enterprisePolicyName string, privateEndpointConnectionName string, options *armpowerplatform.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armpowerplatform.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByEnterprisePolicyPager is the fake for method PrivateEndpointConnectionsClient.NewListByEnterprisePolicyPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByEnterprisePolicyPager func(resourceGroupName string, enterprisePolicyName string, options *armpowerplatform.PrivateEndpointConnectionsClientListByEnterprisePolicyOptions) (resp azfake.PagerResponder[armpowerplatform.PrivateEndpointConnectionsClientListByEnterprisePolicyResponse])
}

PrivateEndpointConnectionsServer is a fake server for instances of the armpowerplatform.PrivateEndpointConnectionsClient type.

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armpowerplatform.PrivateEndpointConnectionsClient to instances of PrivateEndpointConnectionsServer. Don't use this type directly, use NewPrivateEndpointConnectionsServerTransport instead.

func NewPrivateEndpointConnectionsServerTransport

func NewPrivateEndpointConnectionsServerTransport(srv *PrivateEndpointConnectionsServer) *PrivateEndpointConnectionsServerTransport

NewPrivateEndpointConnectionsServerTransport creates a new instance of PrivateEndpointConnectionsServerTransport with the provided implementation. The returned PrivateEndpointConnectionsServerTransport instance is connected to an instance of armpowerplatform.PrivateEndpointConnectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateEndpointConnectionsServerTransport) Do

Do implements the policy.Transporter interface for PrivateEndpointConnectionsServerTransport.

type PrivateLinkResourcesServer

type PrivateLinkResourcesServer struct {
	// Get is the fake for method PrivateLinkResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, enterprisePolicyName string, groupName string, options *armpowerplatform.PrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armpowerplatform.PrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByEnterprisePolicyPager is the fake for method PrivateLinkResourcesClient.NewListByEnterprisePolicyPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByEnterprisePolicyPager func(resourceGroupName string, enterprisePolicyName string, options *armpowerplatform.PrivateLinkResourcesClientListByEnterprisePolicyOptions) (resp azfake.PagerResponder[armpowerplatform.PrivateLinkResourcesClientListByEnterprisePolicyResponse])
}

PrivateLinkResourcesServer is a fake server for instances of the armpowerplatform.PrivateLinkResourcesClient type.

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armpowerplatform.PrivateLinkResourcesClient to instances of PrivateLinkResourcesServer. Don't use this type directly, use NewPrivateLinkResourcesServerTransport instead.

func NewPrivateLinkResourcesServerTransport

func NewPrivateLinkResourcesServerTransport(srv *PrivateLinkResourcesServer) *PrivateLinkResourcesServerTransport

NewPrivateLinkResourcesServerTransport creates a new instance of PrivateLinkResourcesServerTransport with the provided implementation. The returned PrivateLinkResourcesServerTransport instance is connected to an instance of armpowerplatform.PrivateLinkResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkResourcesServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkResourcesServerTransport.

type ServerFactory

type ServerFactory struct {
	AccountsServer                   AccountsServer
	EnterprisePoliciesServer         EnterprisePoliciesServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
}

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

type ServerFactoryTransport

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

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