fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 CustomLocationsServer

type CustomLocationsServer struct {
	// BeginCreateOrUpdate is the fake for method CustomLocationsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, parameters armextendedlocation.CustomLocation, options *armextendedlocation.CustomLocationsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armextendedlocation.CustomLocationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

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

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

	// NewListByResourceGroupPager is the fake for method CustomLocationsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armextendedlocation.CustomLocationsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armextendedlocation.CustomLocationsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method CustomLocationsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armextendedlocation.CustomLocationsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armextendedlocation.CustomLocationsClientListBySubscriptionResponse])

	// NewListEnabledResourceTypesPager is the fake for method CustomLocationsClient.NewListEnabledResourceTypesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListEnabledResourceTypesPager func(resourceGroupName string, resourceName string, options *armextendedlocation.CustomLocationsClientListEnabledResourceTypesOptions) (resp azfake.PagerResponder[armextendedlocation.CustomLocationsClientListEnabledResourceTypesResponse])

	// NewListOperationsPager is the fake for method CustomLocationsClient.NewListOperationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListOperationsPager func(options *armextendedlocation.CustomLocationsClientListOperationsOptions) (resp azfake.PagerResponder[armextendedlocation.CustomLocationsClientListOperationsResponse])

	// Update is the fake for method CustomLocationsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, parameters armextendedlocation.PatchableCustomLocations, options *armextendedlocation.CustomLocationsClientUpdateOptions) (resp azfake.Responder[armextendedlocation.CustomLocationsClientUpdateResponse], errResp azfake.ErrorResponder)
}

CustomLocationsServer is a fake server for instances of the armextendedlocation.CustomLocationsClient type.

type CustomLocationsServerTransport

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

CustomLocationsServerTransport connects instances of armextendedlocation.CustomLocationsClient to instances of CustomLocationsServer. Don't use this type directly, use NewCustomLocationsServerTransport instead.

func NewCustomLocationsServerTransport

func NewCustomLocationsServerTransport(srv *CustomLocationsServer) *CustomLocationsServerTransport

NewCustomLocationsServerTransport creates a new instance of CustomLocationsServerTransport with the provided implementation. The returned CustomLocationsServerTransport instance is connected to an instance of armextendedlocation.CustomLocationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CustomLocationsServerTransport) Do

Do implements the policy.Transporter interface for CustomLocationsServerTransport.

type ServerFactory

type ServerFactory struct {
	CustomLocationsServer CustomLocationsServer
}

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

type ServerFactoryTransport

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

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