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 OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armazuredata.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 armazuredata.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 SQLServerRegistrationsServer

type SQLServerRegistrationsServer struct {
	// CreateOrUpdate is the fake for method SQLServerRegistrationsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, sqlServerRegistrationName string, parameters armazuredata.SQLServerRegistration, options *armazuredata.SQLServerRegistrationsClientCreateOrUpdateOptions) (resp azfake.Responder[armazuredata.SQLServerRegistrationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SQLServerRegistrationsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, sqlServerRegistrationName string, options *armazuredata.SQLServerRegistrationsClientDeleteOptions) (resp azfake.Responder[armazuredata.SQLServerRegistrationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SQLServerRegistrationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sqlServerRegistrationName string, options *armazuredata.SQLServerRegistrationsClientGetOptions) (resp azfake.Responder[armazuredata.SQLServerRegistrationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SQLServerRegistrationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armazuredata.SQLServerRegistrationsClientListOptions) (resp azfake.PagerResponder[armazuredata.SQLServerRegistrationsClientListResponse])

	// NewListByResourceGroupPager is the fake for method SQLServerRegistrationsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armazuredata.SQLServerRegistrationsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armazuredata.SQLServerRegistrationsClientListByResourceGroupResponse])

	// Update is the fake for method SQLServerRegistrationsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, sqlServerRegistrationName string, parameters armazuredata.SQLServerRegistrationUpdate, options *armazuredata.SQLServerRegistrationsClientUpdateOptions) (resp azfake.Responder[armazuredata.SQLServerRegistrationsClientUpdateResponse], errResp azfake.ErrorResponder)
}

SQLServerRegistrationsServer is a fake server for instances of the armazuredata.SQLServerRegistrationsClient type.

type SQLServerRegistrationsServerTransport

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

SQLServerRegistrationsServerTransport connects instances of armazuredata.SQLServerRegistrationsClient to instances of SQLServerRegistrationsServer. Don't use this type directly, use NewSQLServerRegistrationsServerTransport instead.

func NewSQLServerRegistrationsServerTransport

func NewSQLServerRegistrationsServerTransport(srv *SQLServerRegistrationsServer) *SQLServerRegistrationsServerTransport

NewSQLServerRegistrationsServerTransport creates a new instance of SQLServerRegistrationsServerTransport with the provided implementation. The returned SQLServerRegistrationsServerTransport instance is connected to an instance of armazuredata.SQLServerRegistrationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SQLServerRegistrationsServerTransport) Do

Do implements the policy.Transporter interface for SQLServerRegistrationsServerTransport.

type SQLServersServer

type SQLServersServer struct {
	// CreateOrUpdate is the fake for method SQLServersClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, sqlServerRegistrationName string, sqlServerName string, parameters armazuredata.SQLServer, options *armazuredata.SQLServersClientCreateOrUpdateOptions) (resp azfake.Responder[armazuredata.SQLServersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SQLServersClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, sqlServerRegistrationName string, sqlServerName string, options *armazuredata.SQLServersClientDeleteOptions) (resp azfake.Responder[armazuredata.SQLServersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SQLServersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, sqlServerRegistrationName string, sqlServerName string, options *armazuredata.SQLServersClientGetOptions) (resp azfake.Responder[armazuredata.SQLServersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method SQLServersClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, sqlServerRegistrationName string, options *armazuredata.SQLServersClientListByResourceGroupOptions) (resp azfake.PagerResponder[armazuredata.SQLServersClientListByResourceGroupResponse])
}

SQLServersServer is a fake server for instances of the armazuredata.SQLServersClient type.

type SQLServersServerTransport

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

SQLServersServerTransport connects instances of armazuredata.SQLServersClient to instances of SQLServersServer. Don't use this type directly, use NewSQLServersServerTransport instead.

func NewSQLServersServerTransport

func NewSQLServersServerTransport(srv *SQLServersServer) *SQLServersServerTransport

NewSQLServersServerTransport creates a new instance of SQLServersServerTransport with the provided implementation. The returned SQLServersServerTransport instance is connected to an instance of armazuredata.SQLServersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SQLServersServerTransport) Do

Do implements the policy.Transporter interface for SQLServersServerTransport.

type ServerFactory

type ServerFactory struct {
	OperationsServer             OperationsServer
	SQLServerRegistrationsServer SQLServerRegistrationsServer
	SQLServersServer             SQLServersServer
}

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

type ServerFactoryTransport

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

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