fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociationsServer

type AssociationsServer struct {
	// BeginCreateOrUpdate is the fake for method AssociationsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, scope string, associationName string, association armcustomproviders.Association, options *armcustomproviders.AssociationsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcustomproviders.AssociationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AssociationsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, scope string, associationName string, options *armcustomproviders.AssociationsClientBeginDeleteOptions) (resp azfake.PollerResponder[armcustomproviders.AssociationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AssociationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, scope string, associationName string, options *armcustomproviders.AssociationsClientGetOptions) (resp azfake.Responder[armcustomproviders.AssociationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListAllPager is the fake for method AssociationsClient.NewListAllPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAllPager func(scope string, options *armcustomproviders.AssociationsClientListAllOptions) (resp azfake.PagerResponder[armcustomproviders.AssociationsClientListAllResponse])
}

AssociationsServer is a fake server for instances of the armcustomproviders.AssociationsClient type.

type AssociationsServerTransport

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

AssociationsServerTransport connects instances of armcustomproviders.AssociationsClient to instances of AssociationsServer. Don't use this type directly, use NewAssociationsServerTransport instead.

func NewAssociationsServerTransport

func NewAssociationsServerTransport(srv *AssociationsServer) *AssociationsServerTransport

NewAssociationsServerTransport creates a new instance of AssociationsServerTransport with the provided implementation. The returned AssociationsServerTransport instance is connected to an instance of armcustomproviders.AssociationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssociationsServerTransport) Do

Do implements the policy.Transporter interface for AssociationsServerTransport.

type CustomResourceProviderServer

type CustomResourceProviderServer struct {
	// BeginCreateOrUpdate is the fake for method CustomResourceProviderClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceProviderName string, resourceProvider armcustomproviders.CustomRPManifest, options *armcustomproviders.CustomResourceProviderClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcustomproviders.CustomResourceProviderClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method CustomResourceProviderClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, resourceProviderName string, options *armcustomproviders.CustomResourceProviderClientBeginDeleteOptions) (resp azfake.PollerResponder[armcustomproviders.CustomResourceProviderClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method CustomResourceProviderClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceProviderName string, options *armcustomproviders.CustomResourceProviderClientGetOptions) (resp azfake.Responder[armcustomproviders.CustomResourceProviderClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method CustomResourceProviderClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armcustomproviders.CustomResourceProviderClientListByResourceGroupOptions) (resp azfake.PagerResponder[armcustomproviders.CustomResourceProviderClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method CustomResourceProviderClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armcustomproviders.CustomResourceProviderClientListBySubscriptionOptions) (resp azfake.PagerResponder[armcustomproviders.CustomResourceProviderClientListBySubscriptionResponse])

	// Update is the fake for method CustomResourceProviderClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceProviderName string, patchableResource armcustomproviders.ResourceProvidersUpdate, options *armcustomproviders.CustomResourceProviderClientUpdateOptions) (resp azfake.Responder[armcustomproviders.CustomResourceProviderClientUpdateResponse], errResp azfake.ErrorResponder)
}

CustomResourceProviderServer is a fake server for instances of the armcustomproviders.CustomResourceProviderClient type.

type CustomResourceProviderServerTransport

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

CustomResourceProviderServerTransport connects instances of armcustomproviders.CustomResourceProviderClient to instances of CustomResourceProviderServer. Don't use this type directly, use NewCustomResourceProviderServerTransport instead.

func NewCustomResourceProviderServerTransport

func NewCustomResourceProviderServerTransport(srv *CustomResourceProviderServer) *CustomResourceProviderServerTransport

NewCustomResourceProviderServerTransport creates a new instance of CustomResourceProviderServerTransport with the provided implementation. The returned CustomResourceProviderServerTransport instance is connected to an instance of armcustomproviders.CustomResourceProviderClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CustomResourceProviderServerTransport) Do

Do implements the policy.Transporter interface for CustomResourceProviderServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armcustomproviders.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 armcustomproviders.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 {
	AssociationsServer           AssociationsServer
	CustomResourceProviderServer CustomResourceProviderServer
	OperationsServer             OperationsServer
}

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

type ServerFactoryTransport

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

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