fake

package
v0.8.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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementAssociationsServer

type ManagementAssociationsServer struct {
	// CreateOrUpdate is the fake for method ManagementAssociationsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, managementAssociationName string, parameters armoperationsmanagement.ManagementAssociation, options *armoperationsmanagement.ManagementAssociationsClientCreateOrUpdateOptions) (resp azfake.Responder[armoperationsmanagement.ManagementAssociationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ManagementAssociationsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK
	Delete func(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, managementAssociationName string, options *armoperationsmanagement.ManagementAssociationsClientDeleteOptions) (resp azfake.Responder[armoperationsmanagement.ManagementAssociationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ManagementAssociationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, managementAssociationName string, options *armoperationsmanagement.ManagementAssociationsClientGetOptions) (resp azfake.Responder[armoperationsmanagement.ManagementAssociationsClientGetResponse], errResp azfake.ErrorResponder)

	// ListBySubscription is the fake for method ManagementAssociationsClient.ListBySubscription
	// HTTP status codes to indicate success: http.StatusOK
	ListBySubscription func(ctx context.Context, options *armoperationsmanagement.ManagementAssociationsClientListBySubscriptionOptions) (resp azfake.Responder[armoperationsmanagement.ManagementAssociationsClientListBySubscriptionResponse], errResp azfake.ErrorResponder)
}

ManagementAssociationsServer is a fake server for instances of the armoperationsmanagement.ManagementAssociationsClient type.

type ManagementAssociationsServerTransport

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

ManagementAssociationsServerTransport connects instances of armoperationsmanagement.ManagementAssociationsClient to instances of ManagementAssociationsServer. Don't use this type directly, use NewManagementAssociationsServerTransport instead.

func NewManagementAssociationsServerTransport

func NewManagementAssociationsServerTransport(srv *ManagementAssociationsServer) *ManagementAssociationsServerTransport

NewManagementAssociationsServerTransport creates a new instance of ManagementAssociationsServerTransport with the provided implementation. The returned ManagementAssociationsServerTransport instance is connected to an instance of armoperationsmanagement.ManagementAssociationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ManagementAssociationsServerTransport) Do

Do implements the policy.Transporter interface for ManagementAssociationsServerTransport.

type ManagementConfigurationsServer

type ManagementConfigurationsServer struct {
	// CreateOrUpdate is the fake for method ManagementConfigurationsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, managementConfigurationName string, parameters armoperationsmanagement.ManagementConfiguration, options *armoperationsmanagement.ManagementConfigurationsClientCreateOrUpdateOptions) (resp azfake.Responder[armoperationsmanagement.ManagementConfigurationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ManagementConfigurationsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK
	Delete func(ctx context.Context, resourceGroupName string, managementConfigurationName string, options *armoperationsmanagement.ManagementConfigurationsClientDeleteOptions) (resp azfake.Responder[armoperationsmanagement.ManagementConfigurationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ManagementConfigurationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, managementConfigurationName string, options *armoperationsmanagement.ManagementConfigurationsClientGetOptions) (resp azfake.Responder[armoperationsmanagement.ManagementConfigurationsClientGetResponse], errResp azfake.ErrorResponder)

	// ListBySubscription is the fake for method ManagementConfigurationsClient.ListBySubscription
	// HTTP status codes to indicate success: http.StatusOK
	ListBySubscription func(ctx context.Context, options *armoperationsmanagement.ManagementConfigurationsClientListBySubscriptionOptions) (resp azfake.Responder[armoperationsmanagement.ManagementConfigurationsClientListBySubscriptionResponse], errResp azfake.ErrorResponder)
}

ManagementConfigurationsServer is a fake server for instances of the armoperationsmanagement.ManagementConfigurationsClient type.

type ManagementConfigurationsServerTransport

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

ManagementConfigurationsServerTransport connects instances of armoperationsmanagement.ManagementConfigurationsClient to instances of ManagementConfigurationsServer. Don't use this type directly, use NewManagementConfigurationsServerTransport instead.

func NewManagementConfigurationsServerTransport

func NewManagementConfigurationsServerTransport(srv *ManagementConfigurationsServer) *ManagementConfigurationsServerTransport

NewManagementConfigurationsServerTransport creates a new instance of ManagementConfigurationsServerTransport with the provided implementation. The returned ManagementConfigurationsServerTransport instance is connected to an instance of armoperationsmanagement.ManagementConfigurationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ManagementConfigurationsServerTransport) Do

Do implements the policy.Transporter interface for ManagementConfigurationsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armoperationsmanagement.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 armoperationsmanagement.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 {
	ManagementAssociationsServer   ManagementAssociationsServer
	ManagementConfigurationsServer ManagementConfigurationsServer
	OperationsServer               OperationsServer
	SolutionsServer                SolutionsServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armoperationsmanagement.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 armoperationsmanagement.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

type SolutionsServer

type SolutionsServer struct {
	// BeginCreateOrUpdate is the fake for method SolutionsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, solutionName string, parameters armoperationsmanagement.Solution, options *armoperationsmanagement.SolutionsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armoperationsmanagement.SolutionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SolutionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK
	BeginDelete func(ctx context.Context, resourceGroupName string, solutionName string, options *armoperationsmanagement.SolutionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armoperationsmanagement.SolutionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SolutionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, solutionName string, options *armoperationsmanagement.SolutionsClientGetOptions) (resp azfake.Responder[armoperationsmanagement.SolutionsClientGetResponse], errResp azfake.ErrorResponder)

	// ListByResourceGroup is the fake for method SolutionsClient.ListByResourceGroup
	// HTTP status codes to indicate success: http.StatusOK
	ListByResourceGroup func(ctx context.Context, resourceGroupName string, options *armoperationsmanagement.SolutionsClientListByResourceGroupOptions) (resp azfake.Responder[armoperationsmanagement.SolutionsClientListByResourceGroupResponse], errResp azfake.ErrorResponder)

	// ListBySubscription is the fake for method SolutionsClient.ListBySubscription
	// HTTP status codes to indicate success: http.StatusOK
	ListBySubscription func(ctx context.Context, options *armoperationsmanagement.SolutionsClientListBySubscriptionOptions) (resp azfake.Responder[armoperationsmanagement.SolutionsClientListBySubscriptionResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method SolutionsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK
	BeginUpdate func(ctx context.Context, resourceGroupName string, solutionName string, parameters armoperationsmanagement.SolutionPatch, options *armoperationsmanagement.SolutionsClientBeginUpdateOptions) (resp azfake.PollerResponder[armoperationsmanagement.SolutionsClientUpdateResponse], errResp azfake.ErrorResponder)
}

SolutionsServer is a fake server for instances of the armoperationsmanagement.SolutionsClient type.

type SolutionsServerTransport

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

SolutionsServerTransport connects instances of armoperationsmanagement.SolutionsClient to instances of SolutionsServer. Don't use this type directly, use NewSolutionsServerTransport instead.

func NewSolutionsServerTransport

func NewSolutionsServerTransport(srv *SolutionsServer) *SolutionsServerTransport

NewSolutionsServerTransport creates a new instance of SolutionsServerTransport with the provided implementation. The returned SolutionsServerTransport instance is connected to an instance of armoperationsmanagement.SolutionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SolutionsServerTransport) Do

Do implements the policy.Transporter interface for SolutionsServerTransport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL