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 AppliancesServer

type AppliancesServer struct {
	// BeginCreateOrUpdate is the fake for method AppliancesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, parameters armresourceconnector.Appliance, options *armresourceconnector.AppliancesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armresourceconnector.AppliancesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AppliancesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, resourceName string, options *armresourceconnector.AppliancesClientBeginDeleteOptions) (resp azfake.PollerResponder[armresourceconnector.AppliancesClientDeleteResponse], errResp azfake.ErrorResponder)

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

	// GetTelemetryConfig is the fake for method AppliancesClient.GetTelemetryConfig
	// HTTP status codes to indicate success: http.StatusOK
	GetTelemetryConfig func(ctx context.Context, options *armresourceconnector.AppliancesClientGetTelemetryConfigOptions) (resp azfake.Responder[armresourceconnector.AppliancesClientGetTelemetryConfigResponse], errResp azfake.ErrorResponder)

	// GetUpgradeGraph is the fake for method AppliancesClient.GetUpgradeGraph
	// HTTP status codes to indicate success: http.StatusOK
	GetUpgradeGraph func(ctx context.Context, resourceGroupName string, resourceName string, upgradeGraph string, options *armresourceconnector.AppliancesClientGetUpgradeGraphOptions) (resp azfake.Responder[armresourceconnector.AppliancesClientGetUpgradeGraphResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AppliancesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armresourceconnector.AppliancesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armresourceconnector.AppliancesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AppliancesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armresourceconnector.AppliancesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armresourceconnector.AppliancesClientListBySubscriptionResponse])

	// ListClusterUserCredential is the fake for method AppliancesClient.ListClusterUserCredential
	// HTTP status codes to indicate success: http.StatusOK
	ListClusterUserCredential func(ctx context.Context, resourceGroupName string, resourceName string, options *armresourceconnector.AppliancesClientListClusterUserCredentialOptions) (resp azfake.Responder[armresourceconnector.AppliancesClientListClusterUserCredentialResponse], errResp azfake.ErrorResponder)

	// ListKeys is the fake for method AppliancesClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroupName string, resourceName string, options *armresourceconnector.AppliancesClientListKeysOptions) (resp azfake.Responder[armresourceconnector.AppliancesClientListKeysResponse], errResp azfake.ErrorResponder)

	// NewListOperationsPager is the fake for method AppliancesClient.NewListOperationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListOperationsPager func(options *armresourceconnector.AppliancesClientListOperationsOptions) (resp azfake.PagerResponder[armresourceconnector.AppliancesClientListOperationsResponse])

	// Update is the fake for method AppliancesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, parameters armresourceconnector.PatchableAppliance, options *armresourceconnector.AppliancesClientUpdateOptions) (resp azfake.Responder[armresourceconnector.AppliancesClientUpdateResponse], errResp azfake.ErrorResponder)
}

AppliancesServer is a fake server for instances of the armresourceconnector.AppliancesClient type.

type AppliancesServerTransport

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

AppliancesServerTransport connects instances of armresourceconnector.AppliancesClient to instances of AppliancesServer. Don't use this type directly, use NewAppliancesServerTransport instead.

func NewAppliancesServerTransport

func NewAppliancesServerTransport(srv *AppliancesServer) *AppliancesServerTransport

NewAppliancesServerTransport creates a new instance of AppliancesServerTransport with the provided implementation. The returned AppliancesServerTransport instance is connected to an instance of armresourceconnector.AppliancesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AppliancesServerTransport) Do

Do implements the policy.Transporter interface for AppliancesServerTransport.

type ServerFactory

type ServerFactory struct {
	AppliancesServer AppliancesServer
}

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

type ServerFactoryTransport

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

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