fake

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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 ApplicationTypeVersionsServer

type ApplicationTypeVersionsServer struct {
	// BeginCreateOrUpdate is the fake for method ApplicationTypeVersionsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string, parameters armservicefabric.ApplicationTypeVersionResource, options *armservicefabric.ApplicationTypeVersionsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicefabric.ApplicationTypeVersionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ApplicationTypeVersionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string, options *armservicefabric.ApplicationTypeVersionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicefabric.ApplicationTypeVersionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ApplicationTypeVersionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string, options *armservicefabric.ApplicationTypeVersionsClientGetOptions) (resp azfake.Responder[armservicefabric.ApplicationTypeVersionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ApplicationTypeVersionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, clusterName string, applicationTypeName string, options *armservicefabric.ApplicationTypeVersionsClientListOptions) (resp azfake.PagerResponder[armservicefabric.ApplicationTypeVersionsClientListResponse])
}

ApplicationTypeVersionsServer is a fake server for instances of the armservicefabric.ApplicationTypeVersionsClient type.

type ApplicationTypeVersionsServerTransport

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

ApplicationTypeVersionsServerTransport connects instances of armservicefabric.ApplicationTypeVersionsClient to instances of ApplicationTypeVersionsServer. Don't use this type directly, use NewApplicationTypeVersionsServerTransport instead.

func NewApplicationTypeVersionsServerTransport

func NewApplicationTypeVersionsServerTransport(srv *ApplicationTypeVersionsServer) *ApplicationTypeVersionsServerTransport

NewApplicationTypeVersionsServerTransport creates a new instance of ApplicationTypeVersionsServerTransport with the provided implementation. The returned ApplicationTypeVersionsServerTransport instance is connected to an instance of armservicefabric.ApplicationTypeVersionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ApplicationTypeVersionsServerTransport) Do

Do implements the policy.Transporter interface for ApplicationTypeVersionsServerTransport.

type ApplicationTypesServer

type ApplicationTypesServer struct {
	// CreateOrUpdate is the fake for method ApplicationTypesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, parameters armservicefabric.ApplicationTypeResource, options *armservicefabric.ApplicationTypesClientCreateOrUpdateOptions) (resp azfake.Responder[armservicefabric.ApplicationTypesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ApplicationTypesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, options *armservicefabric.ApplicationTypesClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicefabric.ApplicationTypesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ApplicationTypesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, options *armservicefabric.ApplicationTypesClientGetOptions) (resp azfake.Responder[armservicefabric.ApplicationTypesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ApplicationTypesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, clusterName string, options *armservicefabric.ApplicationTypesClientListOptions) (resp azfake.PagerResponder[armservicefabric.ApplicationTypesClientListResponse])
}

ApplicationTypesServer is a fake server for instances of the armservicefabric.ApplicationTypesClient type.

type ApplicationTypesServerTransport

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

ApplicationTypesServerTransport connects instances of armservicefabric.ApplicationTypesClient to instances of ApplicationTypesServer. Don't use this type directly, use NewApplicationTypesServerTransport instead.

func NewApplicationTypesServerTransport

func NewApplicationTypesServerTransport(srv *ApplicationTypesServer) *ApplicationTypesServerTransport

NewApplicationTypesServerTransport creates a new instance of ApplicationTypesServerTransport with the provided implementation. The returned ApplicationTypesServerTransport instance is connected to an instance of armservicefabric.ApplicationTypesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ApplicationTypesServerTransport) Do

Do implements the policy.Transporter interface for ApplicationTypesServerTransport.

type ApplicationsServer

type ApplicationsServer struct {
	// BeginCreateOrUpdate is the fake for method ApplicationsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters armservicefabric.ApplicationResource, options *armservicefabric.ApplicationsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicefabric.ApplicationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ApplicationsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, options *armservicefabric.ApplicationsClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicefabric.ApplicationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ApplicationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, options *armservicefabric.ApplicationsClientGetOptions) (resp azfake.Responder[armservicefabric.ApplicationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ApplicationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, clusterName string, options *armservicefabric.ApplicationsClientListOptions) (resp azfake.PagerResponder[armservicefabric.ApplicationsClientListResponse])

	// BeginUpdate is the fake for method ApplicationsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters armservicefabric.ApplicationResourceUpdate, options *armservicefabric.ApplicationsClientBeginUpdateOptions) (resp azfake.PollerResponder[armservicefabric.ApplicationsClientUpdateResponse], errResp azfake.ErrorResponder)
}

ApplicationsServer is a fake server for instances of the armservicefabric.ApplicationsClient type.

type ApplicationsServerTransport

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

ApplicationsServerTransport connects instances of armservicefabric.ApplicationsClient to instances of ApplicationsServer. Don't use this type directly, use NewApplicationsServerTransport instead.

func NewApplicationsServerTransport

func NewApplicationsServerTransport(srv *ApplicationsServer) *ApplicationsServerTransport

NewApplicationsServerTransport creates a new instance of ApplicationsServerTransport with the provided implementation. The returned ApplicationsServerTransport instance is connected to an instance of armservicefabric.ApplicationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ApplicationsServerTransport) Do

Do implements the policy.Transporter interface for ApplicationsServerTransport.

type ClusterVersionsServer

type ClusterVersionsServer struct {
	// Get is the fake for method ClusterVersionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, location string, clusterVersion string, options *armservicefabric.ClusterVersionsClientGetOptions) (resp azfake.Responder[armservicefabric.ClusterVersionsClientGetResponse], errResp azfake.ErrorResponder)

	// GetByEnvironment is the fake for method ClusterVersionsClient.GetByEnvironment
	// HTTP status codes to indicate success: http.StatusOK
	GetByEnvironment func(ctx context.Context, location string, environment armservicefabric.ClusterVersionsEnvironment, clusterVersion string, options *armservicefabric.ClusterVersionsClientGetByEnvironmentOptions) (resp azfake.Responder[armservicefabric.ClusterVersionsClientGetByEnvironmentResponse], errResp azfake.ErrorResponder)

	// List is the fake for method ClusterVersionsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, location string, options *armservicefabric.ClusterVersionsClientListOptions) (resp azfake.Responder[armservicefabric.ClusterVersionsClientListResponse], errResp azfake.ErrorResponder)

	// ListByEnvironment is the fake for method ClusterVersionsClient.ListByEnvironment
	// HTTP status codes to indicate success: http.StatusOK
	ListByEnvironment func(ctx context.Context, location string, environment armservicefabric.ClusterVersionsEnvironment, options *armservicefabric.ClusterVersionsClientListByEnvironmentOptions) (resp azfake.Responder[armservicefabric.ClusterVersionsClientListByEnvironmentResponse], errResp azfake.ErrorResponder)
}

ClusterVersionsServer is a fake server for instances of the armservicefabric.ClusterVersionsClient type.

type ClusterVersionsServerTransport

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

ClusterVersionsServerTransport connects instances of armservicefabric.ClusterVersionsClient to instances of ClusterVersionsServer. Don't use this type directly, use NewClusterVersionsServerTransport instead.

func NewClusterVersionsServerTransport

func NewClusterVersionsServerTransport(srv *ClusterVersionsServer) *ClusterVersionsServerTransport

NewClusterVersionsServerTransport creates a new instance of ClusterVersionsServerTransport with the provided implementation. The returned ClusterVersionsServerTransport instance is connected to an instance of armservicefabric.ClusterVersionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ClusterVersionsServerTransport) Do

Do implements the policy.Transporter interface for ClusterVersionsServerTransport.

type ClustersServer

type ClustersServer struct {
	// BeginCreateOrUpdate is the fake for method ClustersClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, clusterName string, parameters armservicefabric.Cluster, options *armservicefabric.ClustersClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicefabric.ClustersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ClustersClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, clusterName string, options *armservicefabric.ClustersClientDeleteOptions) (resp azfake.Responder[armservicefabric.ClustersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ClustersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, clusterName string, options *armservicefabric.ClustersClientGetOptions) (resp azfake.Responder[armservicefabric.ClustersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ClustersClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armservicefabric.ClustersClientListOptions) (resp azfake.PagerResponder[armservicefabric.ClustersClientListResponse])

	// NewListByResourceGroupPager is the fake for method ClustersClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armservicefabric.ClustersClientListByResourceGroupOptions) (resp azfake.PagerResponder[armservicefabric.ClustersClientListByResourceGroupResponse])

	// ListUpgradableVersions is the fake for method ClustersClient.ListUpgradableVersions
	// HTTP status codes to indicate success: http.StatusOK
	ListUpgradableVersions func(ctx context.Context, resourceGroupName string, clusterName string, options *armservicefabric.ClustersClientListUpgradableVersionsOptions) (resp azfake.Responder[armservicefabric.ClustersClientListUpgradableVersionsResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method ClustersClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, clusterName string, parameters armservicefabric.ClusterUpdateParameters, options *armservicefabric.ClustersClientBeginUpdateOptions) (resp azfake.PollerResponder[armservicefabric.ClustersClientUpdateResponse], errResp azfake.ErrorResponder)
}

ClustersServer is a fake server for instances of the armservicefabric.ClustersClient type.

type ClustersServerTransport

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

ClustersServerTransport connects instances of armservicefabric.ClustersClient to instances of ClustersServer. Don't use this type directly, use NewClustersServerTransport instead.

func NewClustersServerTransport

func NewClustersServerTransport(srv *ClustersServer) *ClustersServerTransport

NewClustersServerTransport creates a new instance of ClustersServerTransport with the provided implementation. The returned ClustersServerTransport instance is connected to an instance of armservicefabric.ClustersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ClustersServerTransport) Do

Do implements the policy.Transporter interface for ClustersServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armservicefabric.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 armservicefabric.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 {
	ApplicationTypeVersionsServer ApplicationTypeVersionsServer
	ApplicationTypesServer        ApplicationTypesServer
	ApplicationsServer            ApplicationsServer
	ClusterVersionsServer         ClusterVersionsServer
	ClustersServer                ClustersServer
	OperationsServer              OperationsServer
	ServicesServer                ServicesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armservicefabric.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 armservicefabric.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

type ServicesServer

type ServicesServer struct {
	// BeginCreateOrUpdate is the fake for method ServicesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters armservicefabric.ServiceResource, options *armservicefabric.ServicesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicefabric.ServicesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ServicesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, options *armservicefabric.ServicesClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicefabric.ServicesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServicesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, options *armservicefabric.ServicesClientGetOptions) (resp azfake.Responder[armservicefabric.ServicesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ServicesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, clusterName string, applicationName string, options *armservicefabric.ServicesClientListOptions) (resp azfake.PagerResponder[armservicefabric.ServicesClientListResponse])

	// BeginUpdate is the fake for method ServicesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters armservicefabric.ServiceResourceUpdate, options *armservicefabric.ServicesClientBeginUpdateOptions) (resp azfake.PollerResponder[armservicefabric.ServicesClientUpdateResponse], errResp azfake.ErrorResponder)
}

ServicesServer is a fake server for instances of the armservicefabric.ServicesClient type.

type ServicesServerTransport

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

ServicesServerTransport connects instances of armservicefabric.ServicesClient to instances of ServicesServer. Don't use this type directly, use NewServicesServerTransport instead.

func NewServicesServerTransport

func NewServicesServerTransport(srv *ServicesServer) *ServicesServerTransport

NewServicesServerTransport creates a new instance of ServicesServerTransport with the provided implementation. The returned ServicesServerTransport instance is connected to an instance of armservicefabric.ServicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServicesServerTransport) Do

Do implements the policy.Transporter interface for ServicesServerTransport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL