fake

package
v1.2.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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// BeginCreate is the fake for method PrivateEndpointConnectionsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, policyName string, privateEndpointConnectionName string, parameters armaad.PrivateEndpointConnection, options *armaad.PrivateEndpointConnectionsClientBeginCreateOptions) (resp azfake.PollerResponder[armaad.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, policyName string, privateEndpointConnectionName string, options *armaad.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armaad.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, policyName string, privateEndpointConnectionName string, options *armaad.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armaad.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByPolicyNamePager is the fake for method PrivateEndpointConnectionsClient.NewListByPolicyNamePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByPolicyNamePager func(resourceGroupName string, policyName string, options *armaad.PrivateEndpointConnectionsClientListByPolicyNameOptions) (resp azfake.PagerResponder[armaad.PrivateEndpointConnectionsClientListByPolicyNameResponse])
}

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

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armaad.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 armaad.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 PrivateLinkForAzureAdServer

type PrivateLinkForAzureAdServer struct {
	// BeginCreate is the fake for method PrivateLinkForAzureAdClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, policyName string, privateLinkPolicy armaad.PrivateLinkPolicy, options *armaad.PrivateLinkForAzureAdClientBeginCreateOptions) (resp azfake.PollerResponder[armaad.PrivateLinkForAzureAdClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method PrivateLinkForAzureAdClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, policyName string, options *armaad.PrivateLinkForAzureAdClientDeleteOptions) (resp azfake.Responder[armaad.PrivateLinkForAzureAdClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateLinkForAzureAdClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, policyName string, options *armaad.PrivateLinkForAzureAdClientGetOptions) (resp azfake.Responder[armaad.PrivateLinkForAzureAdClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateLinkForAzureAdClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, options *armaad.PrivateLinkForAzureAdClientListOptions) (resp azfake.PagerResponder[armaad.PrivateLinkForAzureAdClientListResponse])

	// NewListBySubscriptionPager is the fake for method PrivateLinkForAzureAdClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armaad.PrivateLinkForAzureAdClientListBySubscriptionOptions) (resp azfake.PagerResponder[armaad.PrivateLinkForAzureAdClientListBySubscriptionResponse])

	// Update is the fake for method PrivateLinkForAzureAdClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, policyName string, options *armaad.PrivateLinkForAzureAdClientUpdateOptions) (resp azfake.Responder[armaad.PrivateLinkForAzureAdClientUpdateResponse], errResp azfake.ErrorResponder)
}

PrivateLinkForAzureAdServer is a fake server for instances of the armaad.PrivateLinkForAzureAdClient type.

type PrivateLinkForAzureAdServerTransport

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

PrivateLinkForAzureAdServerTransport connects instances of armaad.PrivateLinkForAzureAdClient to instances of PrivateLinkForAzureAdServer. Don't use this type directly, use NewPrivateLinkForAzureAdServerTransport instead.

func NewPrivateLinkForAzureAdServerTransport

func NewPrivateLinkForAzureAdServerTransport(srv *PrivateLinkForAzureAdServer) *PrivateLinkForAzureAdServerTransport

NewPrivateLinkForAzureAdServerTransport creates a new instance of PrivateLinkForAzureAdServerTransport with the provided implementation. The returned PrivateLinkForAzureAdServerTransport instance is connected to an instance of armaad.PrivateLinkForAzureAdClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkForAzureAdServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkForAzureAdServerTransport.

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, policyName string, groupName string, options *armaad.PrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armaad.PrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByPrivateLinkPolicyPager is the fake for method PrivateLinkResourcesClient.NewListByPrivateLinkPolicyPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByPrivateLinkPolicyPager func(resourceGroupName string, policyName string, options *armaad.PrivateLinkResourcesClientListByPrivateLinkPolicyOptions) (resp azfake.PagerResponder[armaad.PrivateLinkResourcesClientListByPrivateLinkPolicyResponse])
}

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

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armaad.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 armaad.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 ServerFactory

type ServerFactory struct {
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkForAzureAdServer      PrivateLinkForAzureAdServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
}

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

type ServerFactoryTransport

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

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