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 ControllerServer

type ControllerServer struct {
	// BeginCreate is the fake for method ControllerClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, resourceName string, parameters armdelegatednetwork.DelegatedController, options *armdelegatednetwork.ControllerClientBeginCreateOptions) (resp azfake.PollerResponder[armdelegatednetwork.ControllerClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ControllerClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, resourceName string, options *armdelegatednetwork.ControllerClientBeginDeleteOptions) (resp azfake.PollerResponder[armdelegatednetwork.ControllerClientDeleteResponse], errResp azfake.ErrorResponder)

	// GetDetails is the fake for method ControllerClient.GetDetails
	// HTTP status codes to indicate success: http.StatusOK
	GetDetails func(ctx context.Context, resourceGroupName string, resourceName string, options *armdelegatednetwork.ControllerClientGetDetailsOptions) (resp azfake.Responder[armdelegatednetwork.ControllerClientGetDetailsResponse], errResp azfake.ErrorResponder)

	// Patch is the fake for method ControllerClient.Patch
	// HTTP status codes to indicate success: http.StatusOK
	Patch func(ctx context.Context, resourceGroupName string, resourceName string, parameters armdelegatednetwork.ControllerResourceUpdateParameters, options *armdelegatednetwork.ControllerClientPatchOptions) (resp azfake.Responder[armdelegatednetwork.ControllerClientPatchResponse], errResp azfake.ErrorResponder)
}

ControllerServer is a fake server for instances of the armdelegatednetwork.ControllerClient type.

type ControllerServerTransport

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

ControllerServerTransport connects instances of armdelegatednetwork.ControllerClient to instances of ControllerServer. Don't use this type directly, use NewControllerServerTransport instead.

func NewControllerServerTransport

func NewControllerServerTransport(srv *ControllerServer) *ControllerServerTransport

NewControllerServerTransport creates a new instance of ControllerServerTransport with the provided implementation. The returned ControllerServerTransport instance is connected to an instance of armdelegatednetwork.ControllerClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ControllerServerTransport) Do

Do implements the policy.Transporter interface for ControllerServerTransport.

type DelegatedSubnetServiceServer

type DelegatedSubnetServiceServer struct {
	// BeginDeleteDetails is the fake for method DelegatedSubnetServiceClient.BeginDeleteDetails
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDeleteDetails func(ctx context.Context, resourceGroupName string, resourceName string, options *armdelegatednetwork.DelegatedSubnetServiceClientBeginDeleteDetailsOptions) (resp azfake.PollerResponder[armdelegatednetwork.DelegatedSubnetServiceClientDeleteDetailsResponse], errResp azfake.ErrorResponder)

	// GetDetails is the fake for method DelegatedSubnetServiceClient.GetDetails
	// HTTP status codes to indicate success: http.StatusOK
	GetDetails func(ctx context.Context, resourceGroupName string, resourceName string, options *armdelegatednetwork.DelegatedSubnetServiceClientGetDetailsOptions) (resp azfake.Responder[armdelegatednetwork.DelegatedSubnetServiceClientGetDetailsResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method DelegatedSubnetServiceClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdelegatednetwork.DelegatedSubnetServiceClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdelegatednetwork.DelegatedSubnetServiceClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method DelegatedSubnetServiceClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armdelegatednetwork.DelegatedSubnetServiceClientListBySubscriptionOptions) (resp azfake.PagerResponder[armdelegatednetwork.DelegatedSubnetServiceClientListBySubscriptionResponse])

	// BeginPatchDetails is the fake for method DelegatedSubnetServiceClient.BeginPatchDetails
	// HTTP status codes to indicate success: http.StatusOK
	BeginPatchDetails func(ctx context.Context, resourceGroupName string, resourceName string, parameters armdelegatednetwork.ResourceUpdateParameters, options *armdelegatednetwork.DelegatedSubnetServiceClientBeginPatchDetailsOptions) (resp azfake.PollerResponder[armdelegatednetwork.DelegatedSubnetServiceClientPatchDetailsResponse], errResp azfake.ErrorResponder)

	// BeginPutDetails is the fake for method DelegatedSubnetServiceClient.BeginPutDetails
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginPutDetails func(ctx context.Context, resourceGroupName string, resourceName string, parameters armdelegatednetwork.DelegatedSubnet, options *armdelegatednetwork.DelegatedSubnetServiceClientBeginPutDetailsOptions) (resp azfake.PollerResponder[armdelegatednetwork.DelegatedSubnetServiceClientPutDetailsResponse], errResp azfake.ErrorResponder)
}

DelegatedSubnetServiceServer is a fake server for instances of the armdelegatednetwork.DelegatedSubnetServiceClient type.

type DelegatedSubnetServiceServerTransport

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

DelegatedSubnetServiceServerTransport connects instances of armdelegatednetwork.DelegatedSubnetServiceClient to instances of DelegatedSubnetServiceServer. Don't use this type directly, use NewDelegatedSubnetServiceServerTransport instead.

func NewDelegatedSubnetServiceServerTransport

func NewDelegatedSubnetServiceServerTransport(srv *DelegatedSubnetServiceServer) *DelegatedSubnetServiceServerTransport

NewDelegatedSubnetServiceServerTransport creates a new instance of DelegatedSubnetServiceServerTransport with the provided implementation. The returned DelegatedSubnetServiceServerTransport instance is connected to an instance of armdelegatednetwork.DelegatedSubnetServiceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DelegatedSubnetServiceServerTransport) Do

Do implements the policy.Transporter interface for DelegatedSubnetServiceServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armdelegatednetwork.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 armdelegatednetwork.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 OrchestratorInstanceServiceServer

type OrchestratorInstanceServiceServer struct {
	// BeginCreate is the fake for method OrchestratorInstanceServiceClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, resourceName string, parameters armdelegatednetwork.Orchestrator, options *armdelegatednetwork.OrchestratorInstanceServiceClientBeginCreateOptions) (resp azfake.PollerResponder[armdelegatednetwork.OrchestratorInstanceServiceClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method OrchestratorInstanceServiceClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, resourceName string, options *armdelegatednetwork.OrchestratorInstanceServiceClientBeginDeleteOptions) (resp azfake.PollerResponder[armdelegatednetwork.OrchestratorInstanceServiceClientDeleteResponse], errResp azfake.ErrorResponder)

	// GetDetails is the fake for method OrchestratorInstanceServiceClient.GetDetails
	// HTTP status codes to indicate success: http.StatusOK
	GetDetails func(ctx context.Context, resourceGroupName string, resourceName string, options *armdelegatednetwork.OrchestratorInstanceServiceClientGetDetailsOptions) (resp azfake.Responder[armdelegatednetwork.OrchestratorInstanceServiceClientGetDetailsResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method OrchestratorInstanceServiceClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdelegatednetwork.OrchestratorInstanceServiceClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdelegatednetwork.OrchestratorInstanceServiceClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method OrchestratorInstanceServiceClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armdelegatednetwork.OrchestratorInstanceServiceClientListBySubscriptionOptions) (resp azfake.PagerResponder[armdelegatednetwork.OrchestratorInstanceServiceClientListBySubscriptionResponse])

	// Patch is the fake for method OrchestratorInstanceServiceClient.Patch
	// HTTP status codes to indicate success: http.StatusOK
	Patch func(ctx context.Context, resourceGroupName string, resourceName string, parameters armdelegatednetwork.OrchestratorResourceUpdateParameters, options *armdelegatednetwork.OrchestratorInstanceServiceClientPatchOptions) (resp azfake.Responder[armdelegatednetwork.OrchestratorInstanceServiceClientPatchResponse], errResp azfake.ErrorResponder)
}

OrchestratorInstanceServiceServer is a fake server for instances of the armdelegatednetwork.OrchestratorInstanceServiceClient type.

type OrchestratorInstanceServiceServerTransport

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

OrchestratorInstanceServiceServerTransport connects instances of armdelegatednetwork.OrchestratorInstanceServiceClient to instances of OrchestratorInstanceServiceServer. Don't use this type directly, use NewOrchestratorInstanceServiceServerTransport instead.

func NewOrchestratorInstanceServiceServerTransport

func NewOrchestratorInstanceServiceServerTransport(srv *OrchestratorInstanceServiceServer) *OrchestratorInstanceServiceServerTransport

NewOrchestratorInstanceServiceServerTransport creates a new instance of OrchestratorInstanceServiceServerTransport with the provided implementation. The returned OrchestratorInstanceServiceServerTransport instance is connected to an instance of armdelegatednetwork.OrchestratorInstanceServiceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OrchestratorInstanceServiceServerTransport) Do

Do implements the policy.Transporter interface for OrchestratorInstanceServiceServerTransport.

type Server

type Server struct {
	// NewListByResourceGroupPager is the fake for method Client.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdelegatednetwork.ClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdelegatednetwork.ClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method Client.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armdelegatednetwork.ClientListBySubscriptionOptions) (resp azfake.PagerResponder[armdelegatednetwork.ClientListBySubscriptionResponse])
}

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

type ServerFactory

type ServerFactory struct {
	Server                            Server
	ControllerServer                  ControllerServer
	DelegatedSubnetServiceServer      DelegatedSubnetServiceServer
	OperationsServer                  OperationsServer
	OrchestratorInstanceServiceServer OrchestratorInstanceServiceServer
}

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

type ServerFactoryTransport

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

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

Jump to

Keyboard shortcuts

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