fake

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 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 AzureBareMetalInstancesServer

type AzureBareMetalInstancesServer struct {
	// Get is the fake for method AzureBareMetalInstancesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string, options *armbaremetalinfrastructure.AzureBareMetalInstancesClientGetOptions) (resp azfake.Responder[armbaremetalinfrastructure.AzureBareMetalInstancesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AzureBareMetalInstancesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armbaremetalinfrastructure.AzureBareMetalInstancesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armbaremetalinfrastructure.AzureBareMetalInstancesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AzureBareMetalInstancesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armbaremetalinfrastructure.AzureBareMetalInstancesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armbaremetalinfrastructure.AzureBareMetalInstancesClientListBySubscriptionResponse])

	// BeginRestart is the fake for method AzureBareMetalInstancesClient.BeginRestart
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginRestart func(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string, options *armbaremetalinfrastructure.AzureBareMetalInstancesClientBeginRestartOptions) (resp azfake.PollerResponder[armbaremetalinfrastructure.AzureBareMetalInstancesClientRestartResponse], errResp azfake.ErrorResponder)

	// BeginShutdown is the fake for method AzureBareMetalInstancesClient.BeginShutdown
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginShutdown func(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string, options *armbaremetalinfrastructure.AzureBareMetalInstancesClientBeginShutdownOptions) (resp azfake.PollerResponder[armbaremetalinfrastructure.AzureBareMetalInstancesClientShutdownResponse], errResp azfake.ErrorResponder)

	// BeginStart is the fake for method AzureBareMetalInstancesClient.BeginStart
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginStart func(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string, options *armbaremetalinfrastructure.AzureBareMetalInstancesClientBeginStartOptions) (resp azfake.PollerResponder[armbaremetalinfrastructure.AzureBareMetalInstancesClientStartResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method AzureBareMetalInstancesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, azureBareMetalInstanceName string, tagsParameter armbaremetalinfrastructure.Tags, options *armbaremetalinfrastructure.AzureBareMetalInstancesClientUpdateOptions) (resp azfake.Responder[armbaremetalinfrastructure.AzureBareMetalInstancesClientUpdateResponse], errResp azfake.ErrorResponder)
}

AzureBareMetalInstancesServer is a fake server for instances of the armbaremetalinfrastructure.AzureBareMetalInstancesClient type.

type AzureBareMetalInstancesServerTransport

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

AzureBareMetalInstancesServerTransport connects instances of armbaremetalinfrastructure.AzureBareMetalInstancesClient to instances of AzureBareMetalInstancesServer. Don't use this type directly, use NewAzureBareMetalInstancesServerTransport instead.

func NewAzureBareMetalInstancesServerTransport

func NewAzureBareMetalInstancesServerTransport(srv *AzureBareMetalInstancesServer) *AzureBareMetalInstancesServerTransport

NewAzureBareMetalInstancesServerTransport creates a new instance of AzureBareMetalInstancesServerTransport with the provided implementation. The returned AzureBareMetalInstancesServerTransport instance is connected to an instance of armbaremetalinfrastructure.AzureBareMetalInstancesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AzureBareMetalInstancesServerTransport) Do

Do implements the policy.Transporter interface for AzureBareMetalInstancesServerTransport.

type AzureBareMetalStorageInstancesServer

type AzureBareMetalStorageInstancesServer struct {
	// Create is the fake for method AzureBareMetalStorageInstancesClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, azureBareMetalStorageInstanceName string, requestBodyParameters armbaremetalinfrastructure.AzureBareMetalStorageInstance, options *armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientCreateOptions) (resp azfake.Responder[armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method AzureBareMetalStorageInstancesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, azureBareMetalStorageInstanceName string, options *armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientDeleteOptions) (resp azfake.Responder[armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AzureBareMetalStorageInstancesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, azureBareMetalStorageInstanceName string, options *armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientGetOptions) (resp azfake.Responder[armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method AzureBareMetalStorageInstancesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method AzureBareMetalStorageInstancesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientListBySubscriptionResponse])

	// Update is the fake for method AzureBareMetalStorageInstancesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, azureBareMetalStorageInstanceName string, tagsParameter armbaremetalinfrastructure.Tags, options *armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientUpdateOptions) (resp azfake.Responder[armbaremetalinfrastructure.AzureBareMetalStorageInstancesClientUpdateResponse], errResp azfake.ErrorResponder)
}

AzureBareMetalStorageInstancesServer is a fake server for instances of the armbaremetalinfrastructure.AzureBareMetalStorageInstancesClient type.

type AzureBareMetalStorageInstancesServerTransport

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

AzureBareMetalStorageInstancesServerTransport connects instances of armbaremetalinfrastructure.AzureBareMetalStorageInstancesClient to instances of AzureBareMetalStorageInstancesServer. Don't use this type directly, use NewAzureBareMetalStorageInstancesServerTransport instead.

func NewAzureBareMetalStorageInstancesServerTransport

func NewAzureBareMetalStorageInstancesServerTransport(srv *AzureBareMetalStorageInstancesServer) *AzureBareMetalStorageInstancesServerTransport

NewAzureBareMetalStorageInstancesServerTransport creates a new instance of AzureBareMetalStorageInstancesServerTransport with the provided implementation. The returned AzureBareMetalStorageInstancesServerTransport instance is connected to an instance of armbaremetalinfrastructure.AzureBareMetalStorageInstancesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AzureBareMetalStorageInstancesServerTransport) Do

Do implements the policy.Transporter interface for AzureBareMetalStorageInstancesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armbaremetalinfrastructure.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 armbaremetalinfrastructure.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 {
	AzureBareMetalInstancesServer        AzureBareMetalInstancesServer
	AzureBareMetalStorageInstancesServer AzureBareMetalStorageInstancesServer
	OperationsServer                     OperationsServer
}

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

type ServerFactoryTransport

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

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