fake

package
v0.6.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 EnergyServicesServer

type EnergyServicesServer struct {
	// BeginAddPartition is the fake for method EnergyServicesClient.BeginAddPartition
	// HTTP status codes to indicate success: http.StatusCreated
	BeginAddPartition func(ctx context.Context, resourceGroupName string, resourceName string, options *armoep.EnergyServicesClientBeginAddPartitionOptions) (resp azfake.PollerResponder[armoep.EnergyServicesClientAddPartitionResponse], errResp azfake.ErrorResponder)

	// BeginCreate is the fake for method EnergyServicesClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, resourceName string, options *armoep.EnergyServicesClientBeginCreateOptions) (resp azfake.PollerResponder[armoep.EnergyServicesClientCreateResponse], errResp azfake.ErrorResponder)

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

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

	// NewListByResourceGroupPager is the fake for method EnergyServicesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armoep.EnergyServicesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armoep.EnergyServicesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method EnergyServicesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armoep.EnergyServicesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armoep.EnergyServicesClientListBySubscriptionResponse])

	// ListPartitions is the fake for method EnergyServicesClient.ListPartitions
	// HTTP status codes to indicate success: http.StatusOK
	ListPartitions func(ctx context.Context, resourceGroupName string, resourceName string, options *armoep.EnergyServicesClientListPartitionsOptions) (resp azfake.Responder[armoep.EnergyServicesClientListPartitionsResponse], errResp azfake.ErrorResponder)

	// BeginRemovePartition is the fake for method EnergyServicesClient.BeginRemovePartition
	// HTTP status codes to indicate success: http.StatusCreated
	BeginRemovePartition func(ctx context.Context, resourceGroupName string, resourceName string, options *armoep.EnergyServicesClientBeginRemovePartitionOptions) (resp azfake.PollerResponder[armoep.EnergyServicesClientRemovePartitionResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method EnergyServicesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, options *armoep.EnergyServicesClientUpdateOptions) (resp azfake.Responder[armoep.EnergyServicesClientUpdateResponse], errResp azfake.ErrorResponder)
}

EnergyServicesServer is a fake server for instances of the armoep.EnergyServicesClient type.

type EnergyServicesServerTransport

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

EnergyServicesServerTransport connects instances of armoep.EnergyServicesClient to instances of EnergyServicesServer. Don't use this type directly, use NewEnergyServicesServerTransport instead.

func NewEnergyServicesServerTransport

func NewEnergyServicesServerTransport(srv *EnergyServicesServer) *EnergyServicesServerTransport

NewEnergyServicesServerTransport creates a new instance of EnergyServicesServerTransport with the provided implementation. The returned EnergyServicesServerTransport instance is connected to an instance of armoep.EnergyServicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*EnergyServicesServerTransport) Do

Do implements the policy.Transporter interface for EnergyServicesServerTransport.

type LocationsServer

type LocationsServer struct {
	// CheckNameAvailability is the fake for method LocationsClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, body armoep.CheckNameAvailabilityRequest, options *armoep.LocationsClientCheckNameAvailabilityOptions) (resp azfake.Responder[armoep.LocationsClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)
}

LocationsServer is a fake server for instances of the armoep.LocationsClient type.

type LocationsServerTransport

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

LocationsServerTransport connects instances of armoep.LocationsClient to instances of LocationsServer. Don't use this type directly, use NewLocationsServerTransport instead.

func NewLocationsServerTransport

func NewLocationsServerTransport(srv *LocationsServer) *LocationsServerTransport

NewLocationsServerTransport creates a new instance of LocationsServerTransport with the provided implementation. The returned LocationsServerTransport instance is connected to an instance of armoep.LocationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LocationsServerTransport) Do

Do implements the policy.Transporter interface for LocationsServerTransport.

type OperationsServer

type OperationsServer struct {
	// List is the fake for method OperationsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, options *armoep.OperationsClientListOptions) (resp azfake.Responder[armoep.OperationsClientListResponse], errResp azfake.ErrorResponder)
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armoep.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 armoep.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 {
	EnergyServicesServer EnergyServicesServer
	LocationsServer      LocationsServer
	OperationsServer     OperationsServer
}

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

type ServerFactoryTransport

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

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