fake

package
v3.0.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 CertificatesServer

type CertificatesServer struct {
	// BeginCreateOrUpdate is the fake for method CertificatesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, deploymentName string, certificateName string, options *armnginx.CertificatesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnginx.CertificatesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method CertificatesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, deploymentName string, certificateName string, options *armnginx.CertificatesClientBeginDeleteOptions) (resp azfake.PollerResponder[armnginx.CertificatesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method CertificatesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, deploymentName string, certificateName string, options *armnginx.CertificatesClientGetOptions) (resp azfake.Responder[armnginx.CertificatesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method CertificatesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, deploymentName string, options *armnginx.CertificatesClientListOptions) (resp azfake.PagerResponder[armnginx.CertificatesClientListResponse])
}

CertificatesServer is a fake server for instances of the armnginx.CertificatesClient type.

type CertificatesServerTransport

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

CertificatesServerTransport connects instances of armnginx.CertificatesClient to instances of CertificatesServer. Don't use this type directly, use NewCertificatesServerTransport instead.

func NewCertificatesServerTransport

func NewCertificatesServerTransport(srv *CertificatesServer) *CertificatesServerTransport

NewCertificatesServerTransport creates a new instance of CertificatesServerTransport with the provided implementation. The returned CertificatesServerTransport instance is connected to an instance of armnginx.CertificatesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CertificatesServerTransport) Do

Do implements the policy.Transporter interface for CertificatesServerTransport.

type ConfigurationsServer

type ConfigurationsServer struct {
	// BeginCreateOrUpdate is the fake for method ConfigurationsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, deploymentName string, configurationName string, options *armnginx.ConfigurationsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnginx.ConfigurationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ConfigurationsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, deploymentName string, configurationName string, options *armnginx.ConfigurationsClientBeginDeleteOptions) (resp azfake.PollerResponder[armnginx.ConfigurationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ConfigurationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, deploymentName string, configurationName string, options *armnginx.ConfigurationsClientGetOptions) (resp azfake.Responder[armnginx.ConfigurationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ConfigurationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, deploymentName string, options *armnginx.ConfigurationsClientListOptions) (resp azfake.PagerResponder[armnginx.ConfigurationsClientListResponse])
}

ConfigurationsServer is a fake server for instances of the armnginx.ConfigurationsClient type.

type ConfigurationsServerTransport

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

ConfigurationsServerTransport connects instances of armnginx.ConfigurationsClient to instances of ConfigurationsServer. Don't use this type directly, use NewConfigurationsServerTransport instead.

func NewConfigurationsServerTransport

func NewConfigurationsServerTransport(srv *ConfigurationsServer) *ConfigurationsServerTransport

NewConfigurationsServerTransport creates a new instance of ConfigurationsServerTransport with the provided implementation. The returned ConfigurationsServerTransport instance is connected to an instance of armnginx.ConfigurationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ConfigurationsServerTransport) Do

Do implements the policy.Transporter interface for ConfigurationsServerTransport.

type DeploymentsServer

type DeploymentsServer struct {
	// BeginCreateOrUpdate is the fake for method DeploymentsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, deploymentName string, options *armnginx.DeploymentsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnginx.DeploymentsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method DeploymentsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, deploymentName string, options *armnginx.DeploymentsClientBeginDeleteOptions) (resp azfake.PollerResponder[armnginx.DeploymentsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method DeploymentsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, deploymentName string, options *armnginx.DeploymentsClientGetOptions) (resp azfake.Responder[armnginx.DeploymentsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method DeploymentsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armnginx.DeploymentsClientListOptions) (resp azfake.PagerResponder[armnginx.DeploymentsClientListResponse])

	// NewListByResourceGroupPager is the fake for method DeploymentsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armnginx.DeploymentsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armnginx.DeploymentsClientListByResourceGroupResponse])

	// BeginUpdate is the fake for method DeploymentsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceGroupName string, deploymentName string, options *armnginx.DeploymentsClientBeginUpdateOptions) (resp azfake.PollerResponder[armnginx.DeploymentsClientUpdateResponse], errResp azfake.ErrorResponder)
}

DeploymentsServer is a fake server for instances of the armnginx.DeploymentsClient type.

type DeploymentsServerTransport

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

DeploymentsServerTransport connects instances of armnginx.DeploymentsClient to instances of DeploymentsServer. Don't use this type directly, use NewDeploymentsServerTransport instead.

func NewDeploymentsServerTransport

func NewDeploymentsServerTransport(srv *DeploymentsServer) *DeploymentsServerTransport

NewDeploymentsServerTransport creates a new instance of DeploymentsServerTransport with the provided implementation. The returned DeploymentsServerTransport instance is connected to an instance of armnginx.DeploymentsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DeploymentsServerTransport) Do

Do implements the policy.Transporter interface for DeploymentsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armnginx.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 armnginx.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 {
	CertificatesServer   CertificatesServer
	ConfigurationsServer ConfigurationsServer
	DeploymentsServer    DeploymentsServer
	OperationsServer     OperationsServer
}

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

type ServerFactoryTransport

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

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