fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 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 {
	// GetOperationResult is the fake for method OperationsClient.GetOperationResult
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	GetOperationResult func(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *armrecoveryservices.OperationsClientGetOperationResultOptions) (resp azfake.Responder[armrecoveryservices.OperationsClientGetOperationResultResponse], errResp azfake.ErrorResponder)

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

	// OperationStatusGet is the fake for method OperationsClient.OperationStatusGet
	// HTTP status codes to indicate success: http.StatusOK
	OperationStatusGet func(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *armrecoveryservices.OperationsClientOperationStatusGetOptions) (resp azfake.Responder[armrecoveryservices.OperationsClientOperationStatusGetResponse], errResp azfake.ErrorResponder)
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armrecoveryservices.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 armrecoveryservices.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 PrivateLinkResourcesServer

type PrivateLinkResourcesServer struct {
	// Get is the fake for method PrivateLinkResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, vaultName string, privateLinkResourceName string, options *armrecoveryservices.PrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armrecoveryservices.PrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateLinkResourcesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, vaultName string, options *armrecoveryservices.PrivateLinkResourcesClientListOptions) (resp azfake.PagerResponder[armrecoveryservices.PrivateLinkResourcesClientListResponse])
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armrecoveryservices.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 armrecoveryservices.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 RegisteredIdentitiesServer

type RegisteredIdentitiesServer struct {
	// Delete is the fake for method RegisteredIdentitiesClient.Delete
	// HTTP status codes to indicate success: http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, vaultName string, identityName string, options *armrecoveryservices.RegisteredIdentitiesClientDeleteOptions) (resp azfake.Responder[armrecoveryservices.RegisteredIdentitiesClientDeleteResponse], errResp azfake.ErrorResponder)
}

RegisteredIdentitiesServer is a fake server for instances of the armrecoveryservices.RegisteredIdentitiesClient type.

type RegisteredIdentitiesServerTransport

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

RegisteredIdentitiesServerTransport connects instances of armrecoveryservices.RegisteredIdentitiesClient to instances of RegisteredIdentitiesServer. Don't use this type directly, use NewRegisteredIdentitiesServerTransport instead.

func NewRegisteredIdentitiesServerTransport

func NewRegisteredIdentitiesServerTransport(srv *RegisteredIdentitiesServer) *RegisteredIdentitiesServerTransport

NewRegisteredIdentitiesServerTransport creates a new instance of RegisteredIdentitiesServerTransport with the provided implementation. The returned RegisteredIdentitiesServerTransport instance is connected to an instance of armrecoveryservices.RegisteredIdentitiesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RegisteredIdentitiesServerTransport) Do

Do implements the policy.Transporter interface for RegisteredIdentitiesServerTransport.

type ReplicationUsagesServer

type ReplicationUsagesServer struct {
	// NewListPager is the fake for method ReplicationUsagesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, vaultName string, options *armrecoveryservices.ReplicationUsagesClientListOptions) (resp azfake.PagerResponder[armrecoveryservices.ReplicationUsagesClientListResponse])
}

ReplicationUsagesServer is a fake server for instances of the armrecoveryservices.ReplicationUsagesClient type.

type ReplicationUsagesServerTransport

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

ReplicationUsagesServerTransport connects instances of armrecoveryservices.ReplicationUsagesClient to instances of ReplicationUsagesServer. Don't use this type directly, use NewReplicationUsagesServerTransport instead.

func NewReplicationUsagesServerTransport

func NewReplicationUsagesServerTransport(srv *ReplicationUsagesServer) *ReplicationUsagesServerTransport

NewReplicationUsagesServerTransport creates a new instance of ReplicationUsagesServerTransport with the provided implementation. The returned ReplicationUsagesServerTransport instance is connected to an instance of armrecoveryservices.ReplicationUsagesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ReplicationUsagesServerTransport) Do

Do implements the policy.Transporter interface for ReplicationUsagesServerTransport.

type Server

type Server struct {
	// Capabilities is the fake for method Client.Capabilities
	// HTTP status codes to indicate success: http.StatusOK
	Capabilities func(ctx context.Context, location string, input armrecoveryservices.ResourceCapabilities, options *armrecoveryservices.ClientCapabilitiesOptions) (resp azfake.Responder[armrecoveryservices.ClientCapabilitiesResponse], errResp azfake.ErrorResponder)

	// CheckNameAvailability is the fake for method Client.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, resourceGroupName string, location string, input armrecoveryservices.CheckNameAvailabilityParameters, options *armrecoveryservices.ClientCheckNameAvailabilityOptions) (resp azfake.Responder[armrecoveryservices.ClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)
}

Server is a fake server for instances of the armrecoveryservices.Client type.

type ServerFactory

type ServerFactory struct {
	Server                     Server
	OperationsServer           OperationsServer
	PrivateLinkResourcesServer PrivateLinkResourcesServer
	RegisteredIdentitiesServer RegisteredIdentitiesServer
	ReplicationUsagesServer    ReplicationUsagesServer
	UsagesServer               UsagesServer
	VaultCertificatesServer    VaultCertificatesServer
	VaultExtendedInfoServer    VaultExtendedInfoServer
	VaultsServer               VaultsServer
}

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

type ServerFactoryTransport

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

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

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

ServerTransport connects instances of armrecoveryservices.Client to instances of Server. Don't use this type directly, use NewServerTransport instead.

func NewServerTransport

func NewServerTransport(srv *Server) *ServerTransport

NewServerTransport creates a new instance of ServerTransport with the provided implementation. The returned ServerTransport instance is connected to an instance of armrecoveryservices.Client via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerTransport) Do

func (s *ServerTransport) Do(req *http.Request) (*http.Response, error)

Do implements the policy.Transporter interface for ServerTransport.

type UsagesServer

type UsagesServer struct {
	// NewListByVaultsPager is the fake for method UsagesClient.NewListByVaultsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByVaultsPager func(resourceGroupName string, vaultName string, options *armrecoveryservices.UsagesClientListByVaultsOptions) (resp azfake.PagerResponder[armrecoveryservices.UsagesClientListByVaultsResponse])
}

UsagesServer is a fake server for instances of the armrecoveryservices.UsagesClient type.

type UsagesServerTransport

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

UsagesServerTransport connects instances of armrecoveryservices.UsagesClient to instances of UsagesServer. Don't use this type directly, use NewUsagesServerTransport instead.

func NewUsagesServerTransport

func NewUsagesServerTransport(srv *UsagesServer) *UsagesServerTransport

NewUsagesServerTransport creates a new instance of UsagesServerTransport with the provided implementation. The returned UsagesServerTransport instance is connected to an instance of armrecoveryservices.UsagesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*UsagesServerTransport) Do

Do implements the policy.Transporter interface for UsagesServerTransport.

type VaultCertificatesServer

type VaultCertificatesServer struct {
	// Create is the fake for method VaultCertificatesClient.Create
	// HTTP status codes to indicate success: http.StatusOK
	Create func(ctx context.Context, resourceGroupName string, vaultName string, certificateName string, certificateRequest armrecoveryservices.CertificateRequest, options *armrecoveryservices.VaultCertificatesClientCreateOptions) (resp azfake.Responder[armrecoveryservices.VaultCertificatesClientCreateResponse], errResp azfake.ErrorResponder)
}

VaultCertificatesServer is a fake server for instances of the armrecoveryservices.VaultCertificatesClient type.

type VaultCertificatesServerTransport

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

VaultCertificatesServerTransport connects instances of armrecoveryservices.VaultCertificatesClient to instances of VaultCertificatesServer. Don't use this type directly, use NewVaultCertificatesServerTransport instead.

func NewVaultCertificatesServerTransport

func NewVaultCertificatesServerTransport(srv *VaultCertificatesServer) *VaultCertificatesServerTransport

NewVaultCertificatesServerTransport creates a new instance of VaultCertificatesServerTransport with the provided implementation. The returned VaultCertificatesServerTransport instance is connected to an instance of armrecoveryservices.VaultCertificatesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VaultCertificatesServerTransport) Do

Do implements the policy.Transporter interface for VaultCertificatesServerTransport.

type VaultExtendedInfoServer

type VaultExtendedInfoServer struct {
	// CreateOrUpdate is the fake for method VaultExtendedInfoClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, vaultName string, resourceExtendedInfoDetails armrecoveryservices.VaultExtendedInfoResource, options *armrecoveryservices.VaultExtendedInfoClientCreateOrUpdateOptions) (resp azfake.Responder[armrecoveryservices.VaultExtendedInfoClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method VaultExtendedInfoClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, vaultName string, options *armrecoveryservices.VaultExtendedInfoClientGetOptions) (resp azfake.Responder[armrecoveryservices.VaultExtendedInfoClientGetResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method VaultExtendedInfoClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, vaultName string, resourceExtendedInfoDetails armrecoveryservices.VaultExtendedInfoResource, options *armrecoveryservices.VaultExtendedInfoClientUpdateOptions) (resp azfake.Responder[armrecoveryservices.VaultExtendedInfoClientUpdateResponse], errResp azfake.ErrorResponder)
}

VaultExtendedInfoServer is a fake server for instances of the armrecoveryservices.VaultExtendedInfoClient type.

type VaultExtendedInfoServerTransport

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

VaultExtendedInfoServerTransport connects instances of armrecoveryservices.VaultExtendedInfoClient to instances of VaultExtendedInfoServer. Don't use this type directly, use NewVaultExtendedInfoServerTransport instead.

func NewVaultExtendedInfoServerTransport

func NewVaultExtendedInfoServerTransport(srv *VaultExtendedInfoServer) *VaultExtendedInfoServerTransport

NewVaultExtendedInfoServerTransport creates a new instance of VaultExtendedInfoServerTransport with the provided implementation. The returned VaultExtendedInfoServerTransport instance is connected to an instance of armrecoveryservices.VaultExtendedInfoClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VaultExtendedInfoServerTransport) Do

Do implements the policy.Transporter interface for VaultExtendedInfoServerTransport.

type VaultsServer

type VaultsServer struct {
	// BeginCreateOrUpdate is the fake for method VaultsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, vaultName string, vault armrecoveryservices.Vault, options *armrecoveryservices.VaultsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armrecoveryservices.VaultsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method VaultsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK
	Delete func(ctx context.Context, resourceGroupName string, vaultName string, options *armrecoveryservices.VaultsClientDeleteOptions) (resp azfake.Responder[armrecoveryservices.VaultsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method VaultsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, vaultName string, options *armrecoveryservices.VaultsClientGetOptions) (resp azfake.Responder[armrecoveryservices.VaultsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method VaultsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armrecoveryservices.VaultsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armrecoveryservices.VaultsClientListByResourceGroupResponse])

	// NewListBySubscriptionIDPager is the fake for method VaultsClient.NewListBySubscriptionIDPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionIDPager func(options *armrecoveryservices.VaultsClientListBySubscriptionIDOptions) (resp azfake.PagerResponder[armrecoveryservices.VaultsClientListBySubscriptionIDResponse])

	// BeginUpdate is the fake for method VaultsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, vaultName string, vault armrecoveryservices.PatchVault, options *armrecoveryservices.VaultsClientBeginUpdateOptions) (resp azfake.PollerResponder[armrecoveryservices.VaultsClientUpdateResponse], errResp azfake.ErrorResponder)
}

VaultsServer is a fake server for instances of the armrecoveryservices.VaultsClient type.

type VaultsServerTransport

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

VaultsServerTransport connects instances of armrecoveryservices.VaultsClient to instances of VaultsServer. Don't use this type directly, use NewVaultsServerTransport instead.

func NewVaultsServerTransport

func NewVaultsServerTransport(srv *VaultsServer) *VaultsServerTransport

NewVaultsServerTransport creates a new instance of VaultsServerTransport with the provided implementation. The returned VaultsServerTransport instance is connected to an instance of armrecoveryservices.VaultsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VaultsServerTransport) Do

Do implements the policy.Transporter interface for VaultsServerTransport.

Jump to

Keyboard shortcuts

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