fake

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 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 ConfigurationNamesServer

type ConfigurationNamesServer struct {
	// NewListPager is the fake for method ConfigurationNamesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armservicelinker.ConfigurationNamesClientListOptions) (resp azfake.PagerResponder[armservicelinker.ConfigurationNamesClientListResponse])
}

ConfigurationNamesServer is a fake server for instances of the armservicelinker.ConfigurationNamesClient type.

type ConfigurationNamesServerTransport

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

ConfigurationNamesServerTransport connects instances of armservicelinker.ConfigurationNamesClient to instances of ConfigurationNamesServer. Don't use this type directly, use NewConfigurationNamesServerTransport instead.

func NewConfigurationNamesServerTransport

func NewConfigurationNamesServerTransport(srv *ConfigurationNamesServer) *ConfigurationNamesServerTransport

NewConfigurationNamesServerTransport creates a new instance of ConfigurationNamesServerTransport with the provided implementation. The returned ConfigurationNamesServerTransport instance is connected to an instance of armservicelinker.ConfigurationNamesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ConfigurationNamesServerTransport) Do

Do implements the policy.Transporter interface for ConfigurationNamesServerTransport.

type ConnectorServer

type ConnectorServer struct {
	// BeginCreateDryrun is the fake for method ConnectorClient.BeginCreateDryrun
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateDryrun func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, dryrunName string, parameters armservicelinker.DryrunResource, options *armservicelinker.ConnectorClientBeginCreateDryrunOptions) (resp azfake.PollerResponder[armservicelinker.ConnectorClientCreateDryrunResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method ConnectorClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, connectorName string, parameters armservicelinker.LinkerResource, options *armservicelinker.ConnectorClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicelinker.ConnectorClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ConnectorClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, connectorName string, options *armservicelinker.ConnectorClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicelinker.ConnectorClientDeleteResponse], errResp azfake.ErrorResponder)

	// DeleteDryrun is the fake for method ConnectorClient.DeleteDryrun
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	DeleteDryrun func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, dryrunName string, options *armservicelinker.ConnectorClientDeleteDryrunOptions) (resp azfake.Responder[armservicelinker.ConnectorClientDeleteDryrunResponse], errResp azfake.ErrorResponder)

	// GenerateConfigurations is the fake for method ConnectorClient.GenerateConfigurations
	// HTTP status codes to indicate success: http.StatusOK
	GenerateConfigurations func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, connectorName string, options *armservicelinker.ConnectorClientGenerateConfigurationsOptions) (resp azfake.Responder[armservicelinker.ConnectorClientGenerateConfigurationsResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ConnectorClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, connectorName string, options *armservicelinker.ConnectorClientGetOptions) (resp azfake.Responder[armservicelinker.ConnectorClientGetResponse], errResp azfake.ErrorResponder)

	// GetDryrun is the fake for method ConnectorClient.GetDryrun
	// HTTP status codes to indicate success: http.StatusOK
	GetDryrun func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, dryrunName string, options *armservicelinker.ConnectorClientGetDryrunOptions) (resp azfake.Responder[armservicelinker.ConnectorClientGetDryrunResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ConnectorClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(subscriptionID string, resourceGroupName string, location string, options *armservicelinker.ConnectorClientListOptions) (resp azfake.PagerResponder[armservicelinker.ConnectorClientListResponse])

	// NewListDryrunPager is the fake for method ConnectorClient.NewListDryrunPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListDryrunPager func(subscriptionID string, resourceGroupName string, location string, options *armservicelinker.ConnectorClientListDryrunOptions) (resp azfake.PagerResponder[armservicelinker.ConnectorClientListDryrunResponse])

	// BeginUpdate is the fake for method ConnectorClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, connectorName string, parameters armservicelinker.LinkerPatch, options *armservicelinker.ConnectorClientBeginUpdateOptions) (resp azfake.PollerResponder[armservicelinker.ConnectorClientUpdateResponse], errResp azfake.ErrorResponder)

	// BeginUpdateDryrun is the fake for method ConnectorClient.BeginUpdateDryrun
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdateDryrun func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, dryrunName string, parameters armservicelinker.DryrunPatch, options *armservicelinker.ConnectorClientBeginUpdateDryrunOptions) (resp azfake.PollerResponder[armservicelinker.ConnectorClientUpdateDryrunResponse], errResp azfake.ErrorResponder)

	// BeginValidate is the fake for method ConnectorClient.BeginValidate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginValidate func(ctx context.Context, subscriptionID string, resourceGroupName string, location string, connectorName string, options *armservicelinker.ConnectorClientBeginValidateOptions) (resp azfake.PollerResponder[armservicelinker.ConnectorClientValidateResponse], errResp azfake.ErrorResponder)
}

ConnectorServer is a fake server for instances of the armservicelinker.ConnectorClient type.

type ConnectorServerTransport

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

ConnectorServerTransport connects instances of armservicelinker.ConnectorClient to instances of ConnectorServer. Don't use this type directly, use NewConnectorServerTransport instead.

func NewConnectorServerTransport

func NewConnectorServerTransport(srv *ConnectorServer) *ConnectorServerTransport

NewConnectorServerTransport creates a new instance of ConnectorServerTransport with the provided implementation. The returned ConnectorServerTransport instance is connected to an instance of armservicelinker.ConnectorClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ConnectorServerTransport) Do

Do implements the policy.Transporter interface for ConnectorServerTransport.

type LinkerServer

type LinkerServer struct {
	// BeginCreateOrUpdate is the fake for method LinkerClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceURI string, linkerName string, parameters armservicelinker.LinkerResource, options *armservicelinker.LinkerClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method LinkerClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method LinkerClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientGetOptions) (resp azfake.Responder[armservicelinker.LinkerClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method LinkerClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceURI string, options *armservicelinker.LinkerClientListOptions) (resp azfake.PagerResponder[armservicelinker.LinkerClientListResponse])

	// ListConfigurations is the fake for method LinkerClient.ListConfigurations
	// HTTP status codes to indicate success: http.StatusOK
	ListConfigurations func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientListConfigurationsOptions) (resp azfake.Responder[armservicelinker.LinkerClientListConfigurationsResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method LinkerClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceURI string, linkerName string, parameters armservicelinker.LinkerPatch, options *armservicelinker.LinkerClientBeginUpdateOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientUpdateResponse], errResp azfake.ErrorResponder)

	// BeginValidate is the fake for method LinkerClient.BeginValidate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginValidate func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientBeginValidateOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientValidateResponse], errResp azfake.ErrorResponder)
}

LinkerServer is a fake server for instances of the armservicelinker.LinkerClient type.

type LinkerServerTransport

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

LinkerServerTransport connects instances of armservicelinker.LinkerClient to instances of LinkerServer. Don't use this type directly, use NewLinkerServerTransport instead.

func NewLinkerServerTransport

func NewLinkerServerTransport(srv *LinkerServer) *LinkerServerTransport

NewLinkerServerTransport creates a new instance of LinkerServerTransport with the provided implementation. The returned LinkerServerTransport instance is connected to an instance of armservicelinker.LinkerClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LinkerServerTransport) Do

Do implements the policy.Transporter interface for LinkerServerTransport.

type LinkersServer

type LinkersServer struct {
	// BeginCreateDryrun is the fake for method LinkersClient.BeginCreateDryrun
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateDryrun func(ctx context.Context, resourceURI string, dryrunName string, parameters armservicelinker.DryrunResource, options *armservicelinker.LinkersClientBeginCreateDryrunOptions) (resp azfake.PollerResponder[armservicelinker.LinkersClientCreateDryrunResponse], errResp azfake.ErrorResponder)

	// DeleteDryrun is the fake for method LinkersClient.DeleteDryrun
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	DeleteDryrun func(ctx context.Context, resourceURI string, dryrunName string, options *armservicelinker.LinkersClientDeleteDryrunOptions) (resp azfake.Responder[armservicelinker.LinkersClientDeleteDryrunResponse], errResp azfake.ErrorResponder)

	// GenerateConfigurations is the fake for method LinkersClient.GenerateConfigurations
	// HTTP status codes to indicate success: http.StatusOK
	GenerateConfigurations func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkersClientGenerateConfigurationsOptions) (resp azfake.Responder[armservicelinker.LinkersClientGenerateConfigurationsResponse], errResp azfake.ErrorResponder)

	// GetDryrun is the fake for method LinkersClient.GetDryrun
	// HTTP status codes to indicate success: http.StatusOK
	GetDryrun func(ctx context.Context, resourceURI string, dryrunName string, options *armservicelinker.LinkersClientGetDryrunOptions) (resp azfake.Responder[armservicelinker.LinkersClientGetDryrunResponse], errResp azfake.ErrorResponder)

	// NewListDaprConfigurationsPager is the fake for method LinkersClient.NewListDaprConfigurationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListDaprConfigurationsPager func(resourceURI string, options *armservicelinker.LinkersClientListDaprConfigurationsOptions) (resp azfake.PagerResponder[armservicelinker.LinkersClientListDaprConfigurationsResponse])

	// NewListDryrunPager is the fake for method LinkersClient.NewListDryrunPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListDryrunPager func(resourceURI string, options *armservicelinker.LinkersClientListDryrunOptions) (resp azfake.PagerResponder[armservicelinker.LinkersClientListDryrunResponse])

	// BeginUpdateDryrun is the fake for method LinkersClient.BeginUpdateDryrun
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdateDryrun func(ctx context.Context, resourceURI string, dryrunName string, parameters armservicelinker.DryrunPatch, options *armservicelinker.LinkersClientBeginUpdateDryrunOptions) (resp azfake.PollerResponder[armservicelinker.LinkersClientUpdateDryrunResponse], errResp azfake.ErrorResponder)
}

LinkersServer is a fake server for instances of the armservicelinker.LinkersClient type.

type LinkersServerTransport

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

LinkersServerTransport connects instances of armservicelinker.LinkersClient to instances of LinkersServer. Don't use this type directly, use NewLinkersServerTransport instead.

func NewLinkersServerTransport

func NewLinkersServerTransport(srv *LinkersServer) *LinkersServerTransport

NewLinkersServerTransport creates a new instance of LinkersServerTransport with the provided implementation. The returned LinkersServerTransport instance is connected to an instance of armservicelinker.LinkersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LinkersServerTransport) Do

Do implements the policy.Transporter interface for LinkersServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armservicelinker.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 armservicelinker.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 {
	ConfigurationNamesServer ConfigurationNamesServer
	ConnectorServer          ConnectorServer
	LinkerServer             LinkerServer
	LinkersServer            LinkersServer
	OperationsServer         OperationsServer
}

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

type ServerFactoryTransport

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

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