fake

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armhanaonazure.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 armhanaonazure.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 ProviderInstancesServer

type ProviderInstancesServer struct {
	// BeginCreate is the fake for method ProviderInstancesClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, sapMonitorName string, providerInstanceName string, providerInstanceParameter armhanaonazure.ProviderInstance, options *armhanaonazure.ProviderInstancesClientBeginCreateOptions) (resp azfake.PollerResponder[armhanaonazure.ProviderInstancesClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ProviderInstancesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, sapMonitorName string, providerInstanceName string, options *armhanaonazure.ProviderInstancesClientBeginDeleteOptions) (resp azfake.PollerResponder[armhanaonazure.ProviderInstancesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ProviderInstancesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sapMonitorName string, providerInstanceName string, options *armhanaonazure.ProviderInstancesClientGetOptions) (resp azfake.Responder[armhanaonazure.ProviderInstancesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ProviderInstancesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, sapMonitorName string, options *armhanaonazure.ProviderInstancesClientListOptions) (resp azfake.PagerResponder[armhanaonazure.ProviderInstancesClientListResponse])
}

ProviderInstancesServer is a fake server for instances of the armhanaonazure.ProviderInstancesClient type.

type ProviderInstancesServerTransport

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

ProviderInstancesServerTransport connects instances of armhanaonazure.ProviderInstancesClient to instances of ProviderInstancesServer. Don't use this type directly, use NewProviderInstancesServerTransport instead.

func NewProviderInstancesServerTransport

func NewProviderInstancesServerTransport(srv *ProviderInstancesServer) *ProviderInstancesServerTransport

NewProviderInstancesServerTransport creates a new instance of ProviderInstancesServerTransport with the provided implementation. The returned ProviderInstancesServerTransport instance is connected to an instance of armhanaonazure.ProviderInstancesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ProviderInstancesServerTransport) Do

Do implements the policy.Transporter interface for ProviderInstancesServerTransport.

type SapMonitorsServer

type SapMonitorsServer struct {
	// BeginCreate is the fake for method SapMonitorsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, sapMonitorName string, sapMonitorParameter armhanaonazure.SapMonitor, options *armhanaonazure.SapMonitorsClientBeginCreateOptions) (resp azfake.PollerResponder[armhanaonazure.SapMonitorsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SapMonitorsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, sapMonitorName string, options *armhanaonazure.SapMonitorsClientBeginDeleteOptions) (resp azfake.PollerResponder[armhanaonazure.SapMonitorsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SapMonitorsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sapMonitorName string, options *armhanaonazure.SapMonitorsClientGetOptions) (resp azfake.Responder[armhanaonazure.SapMonitorsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SapMonitorsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armhanaonazure.SapMonitorsClientListOptions) (resp azfake.PagerResponder[armhanaonazure.SapMonitorsClientListResponse])

	// Update is the fake for method SapMonitorsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, sapMonitorName string, tagsParameter armhanaonazure.Tags, options *armhanaonazure.SapMonitorsClientUpdateOptions) (resp azfake.Responder[armhanaonazure.SapMonitorsClientUpdateResponse], errResp azfake.ErrorResponder)
}

SapMonitorsServer is a fake server for instances of the armhanaonazure.SapMonitorsClient type.

type SapMonitorsServerTransport

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

SapMonitorsServerTransport connects instances of armhanaonazure.SapMonitorsClient to instances of SapMonitorsServer. Don't use this type directly, use NewSapMonitorsServerTransport instead.

func NewSapMonitorsServerTransport

func NewSapMonitorsServerTransport(srv *SapMonitorsServer) *SapMonitorsServerTransport

NewSapMonitorsServerTransport creates a new instance of SapMonitorsServerTransport with the provided implementation. The returned SapMonitorsServerTransport instance is connected to an instance of armhanaonazure.SapMonitorsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SapMonitorsServerTransport) Do

Do implements the policy.Transporter interface for SapMonitorsServerTransport.

type ServerFactory

type ServerFactory struct {
	OperationsServer        OperationsServer
	ProviderInstancesServer ProviderInstancesServer
	SapMonitorsServer       SapMonitorsServer
}

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

type ServerFactoryTransport

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

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