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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveDirectoryConnectorsServer

type ActiveDirectoryConnectorsServer struct {
	// BeginCreate is the fake for method ActiveDirectoryConnectorsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, dataControllerName string, activeDirectoryConnectorName string, activeDirectoryConnectorResource armazurearcdata.ActiveDirectoryConnectorResource, options *armazurearcdata.ActiveDirectoryConnectorsClientBeginCreateOptions) (resp azfake.PollerResponder[armazurearcdata.ActiveDirectoryConnectorsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ActiveDirectoryConnectorsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, dataControllerName string, activeDirectoryConnectorName string, options *armazurearcdata.ActiveDirectoryConnectorsClientBeginDeleteOptions) (resp azfake.PollerResponder[armazurearcdata.ActiveDirectoryConnectorsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ActiveDirectoryConnectorsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, dataControllerName string, activeDirectoryConnectorName string, options *armazurearcdata.ActiveDirectoryConnectorsClientGetOptions) (resp azfake.Responder[armazurearcdata.ActiveDirectoryConnectorsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ActiveDirectoryConnectorsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, dataControllerName string, options *armazurearcdata.ActiveDirectoryConnectorsClientListOptions) (resp azfake.PagerResponder[armazurearcdata.ActiveDirectoryConnectorsClientListResponse])
}

ActiveDirectoryConnectorsServer is a fake server for instances of the armazurearcdata.ActiveDirectoryConnectorsClient type.

type ActiveDirectoryConnectorsServerTransport

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

ActiveDirectoryConnectorsServerTransport connects instances of armazurearcdata.ActiveDirectoryConnectorsClient to instances of ActiveDirectoryConnectorsServer. Don't use this type directly, use NewActiveDirectoryConnectorsServerTransport instead.

func NewActiveDirectoryConnectorsServerTransport

func NewActiveDirectoryConnectorsServerTransport(srv *ActiveDirectoryConnectorsServer) *ActiveDirectoryConnectorsServerTransport

NewActiveDirectoryConnectorsServerTransport creates a new instance of ActiveDirectoryConnectorsServerTransport with the provided implementation. The returned ActiveDirectoryConnectorsServerTransport instance is connected to an instance of armazurearcdata.ActiveDirectoryConnectorsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ActiveDirectoryConnectorsServerTransport) Do

Do implements the policy.Transporter interface for ActiveDirectoryConnectorsServerTransport.

type DataControllersServer

type DataControllersServer struct {
	// BeginDeleteDataController is the fake for method DataControllersClient.BeginDeleteDataController
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDeleteDataController func(ctx context.Context, resourceGroupName string, dataControllerName string, options *armazurearcdata.DataControllersClientBeginDeleteDataControllerOptions) (resp azfake.PollerResponder[armazurearcdata.DataControllersClientDeleteDataControllerResponse], errResp azfake.ErrorResponder)

	// GetDataController is the fake for method DataControllersClient.GetDataController
	// HTTP status codes to indicate success: http.StatusOK
	GetDataController func(ctx context.Context, resourceGroupName string, dataControllerName string, options *armazurearcdata.DataControllersClientGetDataControllerOptions) (resp azfake.Responder[armazurearcdata.DataControllersClientGetDataControllerResponse], errResp azfake.ErrorResponder)

	// NewListInGroupPager is the fake for method DataControllersClient.NewListInGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListInGroupPager func(resourceGroupName string, options *armazurearcdata.DataControllersClientListInGroupOptions) (resp azfake.PagerResponder[armazurearcdata.DataControllersClientListInGroupResponse])

	// NewListInSubscriptionPager is the fake for method DataControllersClient.NewListInSubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListInSubscriptionPager func(options *armazurearcdata.DataControllersClientListInSubscriptionOptions) (resp azfake.PagerResponder[armazurearcdata.DataControllersClientListInSubscriptionResponse])

	// BeginPatchDataController is the fake for method DataControllersClient.BeginPatchDataController
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginPatchDataController func(ctx context.Context, resourceGroupName string, dataControllerName string, dataControllerResource armazurearcdata.DataControllerUpdate, options *armazurearcdata.DataControllersClientBeginPatchDataControllerOptions) (resp azfake.PollerResponder[armazurearcdata.DataControllersClientPatchDataControllerResponse], errResp azfake.ErrorResponder)

	// BeginPutDataController is the fake for method DataControllersClient.BeginPutDataController
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginPutDataController func(ctx context.Context, resourceGroupName string, dataControllerName string, dataControllerResource armazurearcdata.DataControllerResource, options *armazurearcdata.DataControllersClientBeginPutDataControllerOptions) (resp azfake.PollerResponder[armazurearcdata.DataControllersClientPutDataControllerResponse], errResp azfake.ErrorResponder)
}

DataControllersServer is a fake server for instances of the armazurearcdata.DataControllersClient type.

type DataControllersServerTransport

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

DataControllersServerTransport connects instances of armazurearcdata.DataControllersClient to instances of DataControllersServer. Don't use this type directly, use NewDataControllersServerTransport instead.

func NewDataControllersServerTransport

func NewDataControllersServerTransport(srv *DataControllersServer) *DataControllersServerTransport

NewDataControllersServerTransport creates a new instance of DataControllersServerTransport with the provided implementation. The returned DataControllersServerTransport instance is connected to an instance of armazurearcdata.DataControllersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DataControllersServerTransport) Do

Do implements the policy.Transporter interface for DataControllersServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armazurearcdata.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 armazurearcdata.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 PostgresInstancesServer

type PostgresInstancesServer struct {
	// BeginCreate is the fake for method PostgresInstancesClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, postgresInstanceName string, resource armazurearcdata.PostgresInstance, options *armazurearcdata.PostgresInstancesClientBeginCreateOptions) (resp azfake.PollerResponder[armazurearcdata.PostgresInstancesClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method PostgresInstancesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, postgresInstanceName string, options *armazurearcdata.PostgresInstancesClientBeginDeleteOptions) (resp azfake.PollerResponder[armazurearcdata.PostgresInstancesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PostgresInstancesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, postgresInstanceName string, options *armazurearcdata.PostgresInstancesClientGetOptions) (resp azfake.Responder[armazurearcdata.PostgresInstancesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PostgresInstancesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armazurearcdata.PostgresInstancesClientListOptions) (resp azfake.PagerResponder[armazurearcdata.PostgresInstancesClientListResponse])

	// NewListByResourceGroupPager is the fake for method PostgresInstancesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armazurearcdata.PostgresInstancesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armazurearcdata.PostgresInstancesClientListByResourceGroupResponse])

	// Update is the fake for method PostgresInstancesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, postgresInstanceName string, parameters armazurearcdata.PostgresInstanceUpdate, options *armazurearcdata.PostgresInstancesClientUpdateOptions) (resp azfake.Responder[armazurearcdata.PostgresInstancesClientUpdateResponse], errResp azfake.ErrorResponder)
}

PostgresInstancesServer is a fake server for instances of the armazurearcdata.PostgresInstancesClient type.

type PostgresInstancesServerTransport

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

PostgresInstancesServerTransport connects instances of armazurearcdata.PostgresInstancesClient to instances of PostgresInstancesServer. Don't use this type directly, use NewPostgresInstancesServerTransport instead.

func NewPostgresInstancesServerTransport

func NewPostgresInstancesServerTransport(srv *PostgresInstancesServer) *PostgresInstancesServerTransport

NewPostgresInstancesServerTransport creates a new instance of PostgresInstancesServerTransport with the provided implementation. The returned PostgresInstancesServerTransport instance is connected to an instance of armazurearcdata.PostgresInstancesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PostgresInstancesServerTransport) Do

Do implements the policy.Transporter interface for PostgresInstancesServerTransport.

type SQLManagedInstancesServer

type SQLManagedInstancesServer struct {
	// BeginCreate is the fake for method SQLManagedInstancesClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, sqlManagedInstanceName string, sqlManagedInstance armazurearcdata.SQLManagedInstance, options *armazurearcdata.SQLManagedInstancesClientBeginCreateOptions) (resp azfake.PollerResponder[armazurearcdata.SQLManagedInstancesClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SQLManagedInstancesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, sqlManagedInstanceName string, options *armazurearcdata.SQLManagedInstancesClientBeginDeleteOptions) (resp azfake.PollerResponder[armazurearcdata.SQLManagedInstancesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SQLManagedInstancesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sqlManagedInstanceName string, options *armazurearcdata.SQLManagedInstancesClientGetOptions) (resp azfake.Responder[armazurearcdata.SQLManagedInstancesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SQLManagedInstancesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armazurearcdata.SQLManagedInstancesClientListOptions) (resp azfake.PagerResponder[armazurearcdata.SQLManagedInstancesClientListResponse])

	// NewListByResourceGroupPager is the fake for method SQLManagedInstancesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armazurearcdata.SQLManagedInstancesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armazurearcdata.SQLManagedInstancesClientListByResourceGroupResponse])

	// Update is the fake for method SQLManagedInstancesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, sqlManagedInstanceName string, parameters armazurearcdata.SQLManagedInstanceUpdate, options *armazurearcdata.SQLManagedInstancesClientUpdateOptions) (resp azfake.Responder[armazurearcdata.SQLManagedInstancesClientUpdateResponse], errResp azfake.ErrorResponder)
}

SQLManagedInstancesServer is a fake server for instances of the armazurearcdata.SQLManagedInstancesClient type.

type SQLManagedInstancesServerTransport

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

SQLManagedInstancesServerTransport connects instances of armazurearcdata.SQLManagedInstancesClient to instances of SQLManagedInstancesServer. Don't use this type directly, use NewSQLManagedInstancesServerTransport instead.

func NewSQLManagedInstancesServerTransport

func NewSQLManagedInstancesServerTransport(srv *SQLManagedInstancesServer) *SQLManagedInstancesServerTransport

NewSQLManagedInstancesServerTransport creates a new instance of SQLManagedInstancesServerTransport with the provided implementation. The returned SQLManagedInstancesServerTransport instance is connected to an instance of armazurearcdata.SQLManagedInstancesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SQLManagedInstancesServerTransport) Do

Do implements the policy.Transporter interface for SQLManagedInstancesServerTransport.

type SQLServerInstancesServer

type SQLServerInstancesServer struct {
	// BeginCreate is the fake for method SQLServerInstancesClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, sqlServerInstanceName string, sqlServerInstance armazurearcdata.SQLServerInstance, options *armazurearcdata.SQLServerInstancesClientBeginCreateOptions) (resp azfake.PollerResponder[armazurearcdata.SQLServerInstancesClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SQLServerInstancesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, sqlServerInstanceName string, options *armazurearcdata.SQLServerInstancesClientBeginDeleteOptions) (resp azfake.PollerResponder[armazurearcdata.SQLServerInstancesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SQLServerInstancesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sqlServerInstanceName string, options *armazurearcdata.SQLServerInstancesClientGetOptions) (resp azfake.Responder[armazurearcdata.SQLServerInstancesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SQLServerInstancesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armazurearcdata.SQLServerInstancesClientListOptions) (resp azfake.PagerResponder[armazurearcdata.SQLServerInstancesClientListResponse])

	// NewListByResourceGroupPager is the fake for method SQLServerInstancesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armazurearcdata.SQLServerInstancesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armazurearcdata.SQLServerInstancesClientListByResourceGroupResponse])

	// Update is the fake for method SQLServerInstancesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, sqlServerInstanceName string, parameters armazurearcdata.SQLServerInstanceUpdate, options *armazurearcdata.SQLServerInstancesClientUpdateOptions) (resp azfake.Responder[armazurearcdata.SQLServerInstancesClientUpdateResponse], errResp azfake.ErrorResponder)
}

SQLServerInstancesServer is a fake server for instances of the armazurearcdata.SQLServerInstancesClient type.

type SQLServerInstancesServerTransport

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

SQLServerInstancesServerTransport connects instances of armazurearcdata.SQLServerInstancesClient to instances of SQLServerInstancesServer. Don't use this type directly, use NewSQLServerInstancesServerTransport instead.

func NewSQLServerInstancesServerTransport

func NewSQLServerInstancesServerTransport(srv *SQLServerInstancesServer) *SQLServerInstancesServerTransport

NewSQLServerInstancesServerTransport creates a new instance of SQLServerInstancesServerTransport with the provided implementation. The returned SQLServerInstancesServerTransport instance is connected to an instance of armazurearcdata.SQLServerInstancesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SQLServerInstancesServerTransport) Do

Do implements the policy.Transporter interface for SQLServerInstancesServerTransport.

type ServerFactory

type ServerFactory struct {
	ActiveDirectoryConnectorsServer ActiveDirectoryConnectorsServer
	DataControllersServer           DataControllersServer
	OperationsServer                OperationsServer
	PostgresInstancesServer         PostgresInstancesServer
	SQLManagedInstancesServer       SQLManagedInstancesServer
	SQLServerInstancesServer        SQLServerInstancesServer
}

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

type ServerFactoryTransport

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

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