fake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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 ElasticSansServer

type ElasticSansServer struct {
	// BeginCreate is the fake for method ElasticSansClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, elasticSanName string, parameters armelasticsan.ElasticSan, options *armelasticsan.ElasticSansClientBeginCreateOptions) (resp azfake.PollerResponder[armelasticsan.ElasticSansClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ElasticSansClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, elasticSanName string, options *armelasticsan.ElasticSansClientBeginDeleteOptions) (resp azfake.PollerResponder[armelasticsan.ElasticSansClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ElasticSansClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, elasticSanName string, options *armelasticsan.ElasticSansClientGetOptions) (resp azfake.Responder[armelasticsan.ElasticSansClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ElasticSansClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armelasticsan.ElasticSansClientListByResourceGroupOptions) (resp azfake.PagerResponder[armelasticsan.ElasticSansClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ElasticSansClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armelasticsan.ElasticSansClientListBySubscriptionOptions) (resp azfake.PagerResponder[armelasticsan.ElasticSansClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method ElasticSansClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, elasticSanName string, parameters armelasticsan.Update, options *armelasticsan.ElasticSansClientBeginUpdateOptions) (resp azfake.PollerResponder[armelasticsan.ElasticSansClientUpdateResponse], errResp azfake.ErrorResponder)
}

ElasticSansServer is a fake server for instances of the armelasticsan.ElasticSansClient type.

type ElasticSansServerTransport

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

ElasticSansServerTransport connects instances of armelasticsan.ElasticSansClient to instances of ElasticSansServer. Don't use this type directly, use NewElasticSansServerTransport instead.

func NewElasticSansServerTransport

func NewElasticSansServerTransport(srv *ElasticSansServer) *ElasticSansServerTransport

NewElasticSansServerTransport creates a new instance of ElasticSansServerTransport with the provided implementation. The returned ElasticSansServerTransport instance is connected to an instance of armelasticsan.ElasticSansClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ElasticSansServerTransport) Do

Do implements the policy.Transporter interface for ElasticSansServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armelasticsan.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 armelasticsan.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 PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// BeginCreate is the fake for method PrivateEndpointConnectionsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, elasticSanName string, privateEndpointConnectionName string, parameters armelasticsan.PrivateEndpointConnection, options *armelasticsan.PrivateEndpointConnectionsClientBeginCreateOptions) (resp azfake.PollerResponder[armelasticsan.PrivateEndpointConnectionsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method PrivateEndpointConnectionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, elasticSanName string, privateEndpointConnectionName string, options *armelasticsan.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armelasticsan.PrivateEndpointConnectionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateEndpointConnectionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, elasticSanName string, privateEndpointConnectionName string, options *armelasticsan.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armelasticsan.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateEndpointConnectionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, elasticSanName string, options *armelasticsan.PrivateEndpointConnectionsClientListOptions) (resp azfake.PagerResponder[armelasticsan.PrivateEndpointConnectionsClientListResponse])
}

PrivateEndpointConnectionsServer is a fake server for instances of the armelasticsan.PrivateEndpointConnectionsClient type.

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armelasticsan.PrivateEndpointConnectionsClient to instances of PrivateEndpointConnectionsServer. Don't use this type directly, use NewPrivateEndpointConnectionsServerTransport instead.

func NewPrivateEndpointConnectionsServerTransport

func NewPrivateEndpointConnectionsServerTransport(srv *PrivateEndpointConnectionsServer) *PrivateEndpointConnectionsServerTransport

NewPrivateEndpointConnectionsServerTransport creates a new instance of PrivateEndpointConnectionsServerTransport with the provided implementation. The returned PrivateEndpointConnectionsServerTransport instance is connected to an instance of armelasticsan.PrivateEndpointConnectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateEndpointConnectionsServerTransport) Do

Do implements the policy.Transporter interface for PrivateEndpointConnectionsServerTransport.

type PrivateLinkResourcesServer

type PrivateLinkResourcesServer struct {
	// ListByElasticSan is the fake for method PrivateLinkResourcesClient.ListByElasticSan
	// HTTP status codes to indicate success: http.StatusOK
	ListByElasticSan func(ctx context.Context, resourceGroupName string, elasticSanName string, options *armelasticsan.PrivateLinkResourcesClientListByElasticSanOptions) (resp azfake.Responder[armelasticsan.PrivateLinkResourcesClientListByElasticSanResponse], errResp azfake.ErrorResponder)
}

PrivateLinkResourcesServer is a fake server for instances of the armelasticsan.PrivateLinkResourcesClient type.

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armelasticsan.PrivateLinkResourcesClient to instances of PrivateLinkResourcesServer. Don't use this type directly, use NewPrivateLinkResourcesServerTransport instead.

func NewPrivateLinkResourcesServerTransport

func NewPrivateLinkResourcesServerTransport(srv *PrivateLinkResourcesServer) *PrivateLinkResourcesServerTransport

NewPrivateLinkResourcesServerTransport creates a new instance of PrivateLinkResourcesServerTransport with the provided implementation. The returned PrivateLinkResourcesServerTransport instance is connected to an instance of armelasticsan.PrivateLinkResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkResourcesServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkResourcesServerTransport.

type SKUsServer

type SKUsServer struct {
	// NewListPager is the fake for method SKUsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armelasticsan.SKUsClientListOptions) (resp azfake.PagerResponder[armelasticsan.SKUsClientListResponse])
}

SKUsServer is a fake server for instances of the armelasticsan.SKUsClient type.

type SKUsServerTransport

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

SKUsServerTransport connects instances of armelasticsan.SKUsClient to instances of SKUsServer. Don't use this type directly, use NewSKUsServerTransport instead.

func NewSKUsServerTransport

func NewSKUsServerTransport(srv *SKUsServer) *SKUsServerTransport

NewSKUsServerTransport creates a new instance of SKUsServerTransport with the provided implementation. The returned SKUsServerTransport instance is connected to an instance of armelasticsan.SKUsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SKUsServerTransport) Do

Do implements the policy.Transporter interface for SKUsServerTransport.

type ServerFactory

type ServerFactory struct {
	ElasticSansServer                ElasticSansServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
	SKUsServer                       SKUsServer
	VolumeGroupsServer               VolumeGroupsServer
	VolumeSnapshotsServer            VolumeSnapshotsServer
	VolumesServer                    VolumesServer
}

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

type ServerFactoryTransport

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

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

type VolumeGroupsServer struct {
	// BeginCreate is the fake for method VolumeGroupsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, parameters armelasticsan.VolumeGroup, options *armelasticsan.VolumeGroupsClientBeginCreateOptions) (resp azfake.PollerResponder[armelasticsan.VolumeGroupsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method VolumeGroupsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, options *armelasticsan.VolumeGroupsClientBeginDeleteOptions) (resp azfake.PollerResponder[armelasticsan.VolumeGroupsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method VolumeGroupsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, options *armelasticsan.VolumeGroupsClientGetOptions) (resp azfake.Responder[armelasticsan.VolumeGroupsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByElasticSanPager is the fake for method VolumeGroupsClient.NewListByElasticSanPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByElasticSanPager func(resourceGroupName string, elasticSanName string, options *armelasticsan.VolumeGroupsClientListByElasticSanOptions) (resp azfake.PagerResponder[armelasticsan.VolumeGroupsClientListByElasticSanResponse])

	// BeginUpdate is the fake for method VolumeGroupsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, parameters armelasticsan.VolumeGroupUpdate, options *armelasticsan.VolumeGroupsClientBeginUpdateOptions) (resp azfake.PollerResponder[armelasticsan.VolumeGroupsClientUpdateResponse], errResp azfake.ErrorResponder)
}

VolumeGroupsServer is a fake server for instances of the armelasticsan.VolumeGroupsClient type.

type VolumeGroupsServerTransport

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

VolumeGroupsServerTransport connects instances of armelasticsan.VolumeGroupsClient to instances of VolumeGroupsServer. Don't use this type directly, use NewVolumeGroupsServerTransport instead.

func NewVolumeGroupsServerTransport

func NewVolumeGroupsServerTransport(srv *VolumeGroupsServer) *VolumeGroupsServerTransport

NewVolumeGroupsServerTransport creates a new instance of VolumeGroupsServerTransport with the provided implementation. The returned VolumeGroupsServerTransport instance is connected to an instance of armelasticsan.VolumeGroupsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VolumeGroupsServerTransport) Do

Do implements the policy.Transporter interface for VolumeGroupsServerTransport.

type VolumeSnapshotsServer

type VolumeSnapshotsServer struct {
	// BeginCreate is the fake for method VolumeSnapshotsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, snapshotName string, parameters armelasticsan.Snapshot, options *armelasticsan.VolumeSnapshotsClientBeginCreateOptions) (resp azfake.PollerResponder[armelasticsan.VolumeSnapshotsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method VolumeSnapshotsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, snapshotName string, options *armelasticsan.VolumeSnapshotsClientBeginDeleteOptions) (resp azfake.PollerResponder[armelasticsan.VolumeSnapshotsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method VolumeSnapshotsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, snapshotName string, options *armelasticsan.VolumeSnapshotsClientGetOptions) (resp azfake.Responder[armelasticsan.VolumeSnapshotsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByVolumeGroupPager is the fake for method VolumeSnapshotsClient.NewListByVolumeGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByVolumeGroupPager func(resourceGroupName string, elasticSanName string, volumeGroupName string, options *armelasticsan.VolumeSnapshotsClientListByVolumeGroupOptions) (resp azfake.PagerResponder[armelasticsan.VolumeSnapshotsClientListByVolumeGroupResponse])
}

VolumeSnapshotsServer is a fake server for instances of the armelasticsan.VolumeSnapshotsClient type.

type VolumeSnapshotsServerTransport

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

VolumeSnapshotsServerTransport connects instances of armelasticsan.VolumeSnapshotsClient to instances of VolumeSnapshotsServer. Don't use this type directly, use NewVolumeSnapshotsServerTransport instead.

func NewVolumeSnapshotsServerTransport

func NewVolumeSnapshotsServerTransport(srv *VolumeSnapshotsServer) *VolumeSnapshotsServerTransport

NewVolumeSnapshotsServerTransport creates a new instance of VolumeSnapshotsServerTransport with the provided implementation. The returned VolumeSnapshotsServerTransport instance is connected to an instance of armelasticsan.VolumeSnapshotsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VolumeSnapshotsServerTransport) Do

Do implements the policy.Transporter interface for VolumeSnapshotsServerTransport.

type VolumesServer

type VolumesServer struct {
	// BeginCreate is the fake for method VolumesClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, volumeName string, parameters armelasticsan.Volume, options *armelasticsan.VolumesClientBeginCreateOptions) (resp azfake.PollerResponder[armelasticsan.VolumesClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method VolumesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, volumeName string, options *armelasticsan.VolumesClientBeginDeleteOptions) (resp azfake.PollerResponder[armelasticsan.VolumesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method VolumesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, volumeName string, options *armelasticsan.VolumesClientGetOptions) (resp azfake.Responder[armelasticsan.VolumesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByVolumeGroupPager is the fake for method VolumesClient.NewListByVolumeGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByVolumeGroupPager func(resourceGroupName string, elasticSanName string, volumeGroupName string, options *armelasticsan.VolumesClientListByVolumeGroupOptions) (resp azfake.PagerResponder[armelasticsan.VolumesClientListByVolumeGroupResponse])

	// BeginUpdate is the fake for method VolumesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, elasticSanName string, volumeGroupName string, volumeName string, parameters armelasticsan.VolumeUpdate, options *armelasticsan.VolumesClientBeginUpdateOptions) (resp azfake.PollerResponder[armelasticsan.VolumesClientUpdateResponse], errResp azfake.ErrorResponder)
}

VolumesServer is a fake server for instances of the armelasticsan.VolumesClient type.

type VolumesServerTransport

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

VolumesServerTransport connects instances of armelasticsan.VolumesClient to instances of VolumesServer. Don't use this type directly, use NewVolumesServerTransport instead.

func NewVolumesServerTransport

func NewVolumesServerTransport(srv *VolumesServer) *VolumesServerTransport

NewVolumesServerTransport creates a new instance of VolumesServerTransport with the provided implementation. The returned VolumesServerTransport instance is connected to an instance of armelasticsan.VolumesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VolumesServerTransport) Do

Do implements the policy.Transporter interface for VolumesServerTransport.

Jump to

Keyboard shortcuts

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