fake

package
v2.1.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 ConfigurationStoresServer

type ConfigurationStoresServer struct {
	// BeginCreate is the fake for method ConfigurationStoresClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, configStoreName string, configStoreCreationParameters armappconfiguration.ConfigurationStore, options *armappconfiguration.ConfigurationStoresClientBeginCreateOptions) (resp azfake.PollerResponder[armappconfiguration.ConfigurationStoresClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ConfigurationStoresClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, configStoreName string, options *armappconfiguration.ConfigurationStoresClientBeginDeleteOptions) (resp azfake.PollerResponder[armappconfiguration.ConfigurationStoresClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ConfigurationStoresClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, configStoreName string, options *armappconfiguration.ConfigurationStoresClientGetOptions) (resp azfake.Responder[armappconfiguration.ConfigurationStoresClientGetResponse], errResp azfake.ErrorResponder)

	// GetDeleted is the fake for method ConfigurationStoresClient.GetDeleted
	// HTTP status codes to indicate success: http.StatusOK
	GetDeleted func(ctx context.Context, location string, configStoreName string, options *armappconfiguration.ConfigurationStoresClientGetDeletedOptions) (resp azfake.Responder[armappconfiguration.ConfigurationStoresClientGetDeletedResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ConfigurationStoresClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armappconfiguration.ConfigurationStoresClientListOptions) (resp azfake.PagerResponder[armappconfiguration.ConfigurationStoresClientListResponse])

	// NewListByResourceGroupPager is the fake for method ConfigurationStoresClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armappconfiguration.ConfigurationStoresClientListByResourceGroupOptions) (resp azfake.PagerResponder[armappconfiguration.ConfigurationStoresClientListByResourceGroupResponse])

	// NewListDeletedPager is the fake for method ConfigurationStoresClient.NewListDeletedPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListDeletedPager func(options *armappconfiguration.ConfigurationStoresClientListDeletedOptions) (resp azfake.PagerResponder[armappconfiguration.ConfigurationStoresClientListDeletedResponse])

	// NewListKeysPager is the fake for method ConfigurationStoresClient.NewListKeysPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListKeysPager func(resourceGroupName string, configStoreName string, options *armappconfiguration.ConfigurationStoresClientListKeysOptions) (resp azfake.PagerResponder[armappconfiguration.ConfigurationStoresClientListKeysResponse])

	// BeginPurgeDeleted is the fake for method ConfigurationStoresClient.BeginPurgeDeleted
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginPurgeDeleted func(ctx context.Context, location string, configStoreName string, options *armappconfiguration.ConfigurationStoresClientBeginPurgeDeletedOptions) (resp azfake.PollerResponder[armappconfiguration.ConfigurationStoresClientPurgeDeletedResponse], errResp azfake.ErrorResponder)

	// RegenerateKey is the fake for method ConfigurationStoresClient.RegenerateKey
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKey func(ctx context.Context, resourceGroupName string, configStoreName string, regenerateKeyParameters armappconfiguration.RegenerateKeyParameters, options *armappconfiguration.ConfigurationStoresClientRegenerateKeyOptions) (resp azfake.Responder[armappconfiguration.ConfigurationStoresClientRegenerateKeyResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method ConfigurationStoresClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceGroupName string, configStoreName string, configStoreUpdateParameters armappconfiguration.ConfigurationStoreUpdateParameters, options *armappconfiguration.ConfigurationStoresClientBeginUpdateOptions) (resp azfake.PollerResponder[armappconfiguration.ConfigurationStoresClientUpdateResponse], errResp azfake.ErrorResponder)
}

ConfigurationStoresServer is a fake server for instances of the armappconfiguration.ConfigurationStoresClient type.

type ConfigurationStoresServerTransport

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

ConfigurationStoresServerTransport connects instances of armappconfiguration.ConfigurationStoresClient to instances of ConfigurationStoresServer. Don't use this type directly, use NewConfigurationStoresServerTransport instead.

func NewConfigurationStoresServerTransport

func NewConfigurationStoresServerTransport(srv *ConfigurationStoresServer) *ConfigurationStoresServerTransport

NewConfigurationStoresServerTransport creates a new instance of ConfigurationStoresServerTransport with the provided implementation. The returned ConfigurationStoresServerTransport instance is connected to an instance of armappconfiguration.ConfigurationStoresClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ConfigurationStoresServerTransport) Do

Do implements the policy.Transporter interface for ConfigurationStoresServerTransport.

type KeyValuesServer

type KeyValuesServer struct {
	// CreateOrUpdate is the fake for method KeyValuesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, configStoreName string, keyValueName string, options *armappconfiguration.KeyValuesClientCreateOrUpdateOptions) (resp azfake.Responder[armappconfiguration.KeyValuesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method KeyValuesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, configStoreName string, keyValueName string, options *armappconfiguration.KeyValuesClientBeginDeleteOptions) (resp azfake.PollerResponder[armappconfiguration.KeyValuesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method KeyValuesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, configStoreName string, keyValueName string, options *armappconfiguration.KeyValuesClientGetOptions) (resp azfake.Responder[armappconfiguration.KeyValuesClientGetResponse], errResp azfake.ErrorResponder)
}

KeyValuesServer is a fake server for instances of the armappconfiguration.KeyValuesClient type.

type KeyValuesServerTransport

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

KeyValuesServerTransport connects instances of armappconfiguration.KeyValuesClient to instances of KeyValuesServer. Don't use this type directly, use NewKeyValuesServerTransport instead.

func NewKeyValuesServerTransport

func NewKeyValuesServerTransport(srv *KeyValuesServer) *KeyValuesServerTransport

NewKeyValuesServerTransport creates a new instance of KeyValuesServerTransport with the provided implementation. The returned KeyValuesServerTransport instance is connected to an instance of armappconfiguration.KeyValuesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*KeyValuesServerTransport) Do

Do implements the policy.Transporter interface for KeyValuesServerTransport.

type OperationsServer

type OperationsServer struct {
	// CheckNameAvailability is the fake for method OperationsClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, checkNameAvailabilityParameters armappconfiguration.CheckNameAvailabilityParameters, options *armappconfiguration.OperationsClientCheckNameAvailabilityOptions) (resp azfake.Responder[armappconfiguration.OperationsClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

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

	// RegionalCheckNameAvailability is the fake for method OperationsClient.RegionalCheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	RegionalCheckNameAvailability func(ctx context.Context, location string, checkNameAvailabilityParameters armappconfiguration.CheckNameAvailabilityParameters, options *armappconfiguration.OperationsClientRegionalCheckNameAvailabilityOptions) (resp azfake.Responder[armappconfiguration.OperationsClientRegionalCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armappconfiguration.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 armappconfiguration.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 {
	// BeginCreateOrUpdate is the fake for method PrivateEndpointConnectionsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, configStoreName string, privateEndpointConnectionName string, privateEndpointConnection armappconfiguration.PrivateEndpointConnection, options *armappconfiguration.PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armappconfiguration.PrivateEndpointConnectionsClientCreateOrUpdateResponse], 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, configStoreName string, privateEndpointConnectionName string, options *armappconfiguration.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armappconfiguration.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, configStoreName string, privateEndpointConnectionName string, options *armappconfiguration.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armappconfiguration.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByConfigurationStorePager is the fake for method PrivateEndpointConnectionsClient.NewListByConfigurationStorePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByConfigurationStorePager func(resourceGroupName string, configStoreName string, options *armappconfiguration.PrivateEndpointConnectionsClientListByConfigurationStoreOptions) (resp azfake.PagerResponder[armappconfiguration.PrivateEndpointConnectionsClientListByConfigurationStoreResponse])
}

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

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armappconfiguration.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 armappconfiguration.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 {
	// Get is the fake for method PrivateLinkResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, configStoreName string, groupName string, options *armappconfiguration.PrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armappconfiguration.PrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByConfigurationStorePager is the fake for method PrivateLinkResourcesClient.NewListByConfigurationStorePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByConfigurationStorePager func(resourceGroupName string, configStoreName string, options *armappconfiguration.PrivateLinkResourcesClientListByConfigurationStoreOptions) (resp azfake.PagerResponder[armappconfiguration.PrivateLinkResourcesClientListByConfigurationStoreResponse])
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armappconfiguration.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 armappconfiguration.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 ReplicasServer

type ReplicasServer struct {
	// BeginCreate is the fake for method ReplicasClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, configStoreName string, replicaName string, replicaCreationParameters armappconfiguration.Replica, options *armappconfiguration.ReplicasClientBeginCreateOptions) (resp azfake.PollerResponder[armappconfiguration.ReplicasClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ReplicasClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, configStoreName string, replicaName string, options *armappconfiguration.ReplicasClientBeginDeleteOptions) (resp azfake.PollerResponder[armappconfiguration.ReplicasClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ReplicasClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, configStoreName string, replicaName string, options *armappconfiguration.ReplicasClientGetOptions) (resp azfake.Responder[armappconfiguration.ReplicasClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByConfigurationStorePager is the fake for method ReplicasClient.NewListByConfigurationStorePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByConfigurationStorePager func(resourceGroupName string, configStoreName string, options *armappconfiguration.ReplicasClientListByConfigurationStoreOptions) (resp azfake.PagerResponder[armappconfiguration.ReplicasClientListByConfigurationStoreResponse])
}

ReplicasServer is a fake server for instances of the armappconfiguration.ReplicasClient type.

type ReplicasServerTransport

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

ReplicasServerTransport connects instances of armappconfiguration.ReplicasClient to instances of ReplicasServer. Don't use this type directly, use NewReplicasServerTransport instead.

func NewReplicasServerTransport

func NewReplicasServerTransport(srv *ReplicasServer) *ReplicasServerTransport

NewReplicasServerTransport creates a new instance of ReplicasServerTransport with the provided implementation. The returned ReplicasServerTransport instance is connected to an instance of armappconfiguration.ReplicasClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ReplicasServerTransport) Do

Do implements the policy.Transporter interface for ReplicasServerTransport.

type ServerFactory

type ServerFactory struct {
	ConfigurationStoresServer        ConfigurationStoresServer
	KeyValuesServer                  KeyValuesServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
	ReplicasServer                   ReplicasServer
}

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

type ServerFactoryTransport

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

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