fake

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 AzureTrafficCollectorsByResourceGroupServer

type AzureTrafficCollectorsByResourceGroupServer struct {
	// NewListPager is the fake for method AzureTrafficCollectorsByResourceGroupClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, options *armnetworkfunction.AzureTrafficCollectorsByResourceGroupClientListOptions) (resp azfake.PagerResponder[armnetworkfunction.AzureTrafficCollectorsByResourceGroupClientListResponse])
}

AzureTrafficCollectorsByResourceGroupServer is a fake server for instances of the armnetworkfunction.AzureTrafficCollectorsByResourceGroupClient type.

type AzureTrafficCollectorsByResourceGroupServerTransport

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

AzureTrafficCollectorsByResourceGroupServerTransport connects instances of armnetworkfunction.AzureTrafficCollectorsByResourceGroupClient to instances of AzureTrafficCollectorsByResourceGroupServer. Don't use this type directly, use NewAzureTrafficCollectorsByResourceGroupServerTransport instead.

func NewAzureTrafficCollectorsByResourceGroupServerTransport

func NewAzureTrafficCollectorsByResourceGroupServerTransport(srv *AzureTrafficCollectorsByResourceGroupServer) *AzureTrafficCollectorsByResourceGroupServerTransport

NewAzureTrafficCollectorsByResourceGroupServerTransport creates a new instance of AzureTrafficCollectorsByResourceGroupServerTransport with the provided implementation. The returned AzureTrafficCollectorsByResourceGroupServerTransport instance is connected to an instance of armnetworkfunction.AzureTrafficCollectorsByResourceGroupClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AzureTrafficCollectorsByResourceGroupServerTransport) Do

Do implements the policy.Transporter interface for AzureTrafficCollectorsByResourceGroupServerTransport.

type AzureTrafficCollectorsBySubscriptionServer

type AzureTrafficCollectorsBySubscriptionServer struct {
	// NewListPager is the fake for method AzureTrafficCollectorsBySubscriptionClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armnetworkfunction.AzureTrafficCollectorsBySubscriptionClientListOptions) (resp azfake.PagerResponder[armnetworkfunction.AzureTrafficCollectorsBySubscriptionClientListResponse])
}

AzureTrafficCollectorsBySubscriptionServer is a fake server for instances of the armnetworkfunction.AzureTrafficCollectorsBySubscriptionClient type.

type AzureTrafficCollectorsBySubscriptionServerTransport

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

AzureTrafficCollectorsBySubscriptionServerTransport connects instances of armnetworkfunction.AzureTrafficCollectorsBySubscriptionClient to instances of AzureTrafficCollectorsBySubscriptionServer. Don't use this type directly, use NewAzureTrafficCollectorsBySubscriptionServerTransport instead.

func NewAzureTrafficCollectorsBySubscriptionServerTransport

func NewAzureTrafficCollectorsBySubscriptionServerTransport(srv *AzureTrafficCollectorsBySubscriptionServer) *AzureTrafficCollectorsBySubscriptionServerTransport

NewAzureTrafficCollectorsBySubscriptionServerTransport creates a new instance of AzureTrafficCollectorsBySubscriptionServerTransport with the provided implementation. The returned AzureTrafficCollectorsBySubscriptionServerTransport instance is connected to an instance of armnetworkfunction.AzureTrafficCollectorsBySubscriptionClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AzureTrafficCollectorsBySubscriptionServerTransport) Do

Do implements the policy.Transporter interface for AzureTrafficCollectorsBySubscriptionServerTransport.

type AzureTrafficCollectorsServer

type AzureTrafficCollectorsServer struct {
	// BeginCreateOrUpdate is the fake for method AzureTrafficCollectorsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, parameters armnetworkfunction.AzureTrafficCollector, options *armnetworkfunction.AzureTrafficCollectorsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnetworkfunction.AzureTrafficCollectorsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AzureTrafficCollectorsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, options *armnetworkfunction.AzureTrafficCollectorsClientBeginDeleteOptions) (resp azfake.PollerResponder[armnetworkfunction.AzureTrafficCollectorsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AzureTrafficCollectorsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, options *armnetworkfunction.AzureTrafficCollectorsClientGetOptions) (resp azfake.Responder[armnetworkfunction.AzureTrafficCollectorsClientGetResponse], errResp azfake.ErrorResponder)

	// UpdateTags is the fake for method AzureTrafficCollectorsClient.UpdateTags
	// HTTP status codes to indicate success: http.StatusOK
	UpdateTags func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, parameters armnetworkfunction.TagsObject, options *armnetworkfunction.AzureTrafficCollectorsClientUpdateTagsOptions) (resp azfake.Responder[armnetworkfunction.AzureTrafficCollectorsClientUpdateTagsResponse], errResp azfake.ErrorResponder)
}

AzureTrafficCollectorsServer is a fake server for instances of the armnetworkfunction.AzureTrafficCollectorsClient type.

type AzureTrafficCollectorsServerTransport

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

AzureTrafficCollectorsServerTransport connects instances of armnetworkfunction.AzureTrafficCollectorsClient to instances of AzureTrafficCollectorsServer. Don't use this type directly, use NewAzureTrafficCollectorsServerTransport instead.

func NewAzureTrafficCollectorsServerTransport

func NewAzureTrafficCollectorsServerTransport(srv *AzureTrafficCollectorsServer) *AzureTrafficCollectorsServerTransport

NewAzureTrafficCollectorsServerTransport creates a new instance of AzureTrafficCollectorsServerTransport with the provided implementation. The returned AzureTrafficCollectorsServerTransport instance is connected to an instance of armnetworkfunction.AzureTrafficCollectorsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AzureTrafficCollectorsServerTransport) Do

Do implements the policy.Transporter interface for AzureTrafficCollectorsServerTransport.

type CollectorPoliciesServer

type CollectorPoliciesServer struct {
	// BeginCreateOrUpdate is the fake for method CollectorPoliciesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, collectorPolicyName string, parameters armnetworkfunction.CollectorPolicy, options *armnetworkfunction.CollectorPoliciesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnetworkfunction.CollectorPoliciesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method CollectorPoliciesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, collectorPolicyName string, options *armnetworkfunction.CollectorPoliciesClientBeginDeleteOptions) (resp azfake.PollerResponder[armnetworkfunction.CollectorPoliciesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method CollectorPoliciesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, collectorPolicyName string, options *armnetworkfunction.CollectorPoliciesClientGetOptions) (resp azfake.Responder[armnetworkfunction.CollectorPoliciesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method CollectorPoliciesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, azureTrafficCollectorName string, options *armnetworkfunction.CollectorPoliciesClientListOptions) (resp azfake.PagerResponder[armnetworkfunction.CollectorPoliciesClientListResponse])

	// UpdateTags is the fake for method CollectorPoliciesClient.UpdateTags
	// HTTP status codes to indicate success: http.StatusOK
	UpdateTags func(ctx context.Context, resourceGroupName string, azureTrafficCollectorName string, collectorPolicyName string, parameters armnetworkfunction.TagsObject, options *armnetworkfunction.CollectorPoliciesClientUpdateTagsOptions) (resp azfake.Responder[armnetworkfunction.CollectorPoliciesClientUpdateTagsResponse], errResp azfake.ErrorResponder)
}

CollectorPoliciesServer is a fake server for instances of the armnetworkfunction.CollectorPoliciesClient type.

type CollectorPoliciesServerTransport

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

CollectorPoliciesServerTransport connects instances of armnetworkfunction.CollectorPoliciesClient to instances of CollectorPoliciesServer. Don't use this type directly, use NewCollectorPoliciesServerTransport instead.

func NewCollectorPoliciesServerTransport

func NewCollectorPoliciesServerTransport(srv *CollectorPoliciesServer) *CollectorPoliciesServerTransport

NewCollectorPoliciesServerTransport creates a new instance of CollectorPoliciesServerTransport with the provided implementation. The returned CollectorPoliciesServerTransport instance is connected to an instance of armnetworkfunction.CollectorPoliciesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CollectorPoliciesServerTransport) Do

Do implements the policy.Transporter interface for CollectorPoliciesServerTransport.

type Server

type Server struct {
	// NewListOperationsPager is the fake for method Client.NewListOperationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListOperationsPager func(options *armnetworkfunction.ClientListOperationsOptions) (resp azfake.PagerResponder[armnetworkfunction.ClientListOperationsResponse])
}

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

type ServerFactory

type ServerFactory struct {
	AzureTrafficCollectorsByResourceGroupServer AzureTrafficCollectorsByResourceGroupServer
	AzureTrafficCollectorsBySubscriptionServer  AzureTrafficCollectorsBySubscriptionServer
	AzureTrafficCollectorsServer                AzureTrafficCollectorsServer
	Server                                      Server
	CollectorPoliciesServer                     CollectorPoliciesServer
}

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

type ServerFactoryTransport

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

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