fake

package
v1.0.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 AssociationsInterfaceServer

type AssociationsInterfaceServer struct {
	// BeginCreateOrUpdate is the fake for method AssociationsInterfaceClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, resource armservicenetworking.Association, options *armservicenetworking.AssociationsInterfaceClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicenetworking.AssociationsInterfaceClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method AssociationsInterfaceClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, options *armservicenetworking.AssociationsInterfaceClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicenetworking.AssociationsInterfaceClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AssociationsInterfaceClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, options *armservicenetworking.AssociationsInterfaceClientGetOptions) (resp azfake.Responder[armservicenetworking.AssociationsInterfaceClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByTrafficControllerPager is the fake for method AssociationsInterfaceClient.NewListByTrafficControllerPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByTrafficControllerPager func(resourceGroupName string, trafficControllerName string, options *armservicenetworking.AssociationsInterfaceClientListByTrafficControllerOptions) (resp azfake.PagerResponder[armservicenetworking.AssociationsInterfaceClientListByTrafficControllerResponse])

	// Update is the fake for method AssociationsInterfaceClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, properties armservicenetworking.AssociationUpdate, options *armservicenetworking.AssociationsInterfaceClientUpdateOptions) (resp azfake.Responder[armservicenetworking.AssociationsInterfaceClientUpdateResponse], errResp azfake.ErrorResponder)
}

AssociationsInterfaceServer is a fake server for instances of the armservicenetworking.AssociationsInterfaceClient type.

type AssociationsInterfaceServerTransport

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

AssociationsInterfaceServerTransport connects instances of armservicenetworking.AssociationsInterfaceClient to instances of AssociationsInterfaceServer. Don't use this type directly, use NewAssociationsInterfaceServerTransport instead.

func NewAssociationsInterfaceServerTransport

func NewAssociationsInterfaceServerTransport(srv *AssociationsInterfaceServer) *AssociationsInterfaceServerTransport

NewAssociationsInterfaceServerTransport creates a new instance of AssociationsInterfaceServerTransport with the provided implementation. The returned AssociationsInterfaceServerTransport instance is connected to an instance of armservicenetworking.AssociationsInterfaceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssociationsInterfaceServerTransport) Do

Do implements the policy.Transporter interface for AssociationsInterfaceServerTransport.

type FrontendsInterfaceServer

type FrontendsInterfaceServer struct {
	// BeginCreateOrUpdate is the fake for method FrontendsInterfaceClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, resource armservicenetworking.Frontend, options *armservicenetworking.FrontendsInterfaceClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicenetworking.FrontendsInterfaceClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method FrontendsInterfaceClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, options *armservicenetworking.FrontendsInterfaceClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicenetworking.FrontendsInterfaceClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method FrontendsInterfaceClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, options *armservicenetworking.FrontendsInterfaceClientGetOptions) (resp azfake.Responder[armservicenetworking.FrontendsInterfaceClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByTrafficControllerPager is the fake for method FrontendsInterfaceClient.NewListByTrafficControllerPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByTrafficControllerPager func(resourceGroupName string, trafficControllerName string, options *armservicenetworking.FrontendsInterfaceClientListByTrafficControllerOptions) (resp azfake.PagerResponder[armservicenetworking.FrontendsInterfaceClientListByTrafficControllerResponse])

	// Update is the fake for method FrontendsInterfaceClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, properties armservicenetworking.FrontendUpdate, options *armservicenetworking.FrontendsInterfaceClientUpdateOptions) (resp azfake.Responder[armservicenetworking.FrontendsInterfaceClientUpdateResponse], errResp azfake.ErrorResponder)
}

FrontendsInterfaceServer is a fake server for instances of the armservicenetworking.FrontendsInterfaceClient type.

type FrontendsInterfaceServerTransport

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

FrontendsInterfaceServerTransport connects instances of armservicenetworking.FrontendsInterfaceClient to instances of FrontendsInterfaceServer. Don't use this type directly, use NewFrontendsInterfaceServerTransport instead.

func NewFrontendsInterfaceServerTransport

func NewFrontendsInterfaceServerTransport(srv *FrontendsInterfaceServer) *FrontendsInterfaceServerTransport

NewFrontendsInterfaceServerTransport creates a new instance of FrontendsInterfaceServerTransport with the provided implementation. The returned FrontendsInterfaceServerTransport instance is connected to an instance of armservicenetworking.FrontendsInterfaceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*FrontendsInterfaceServerTransport) Do

Do implements the policy.Transporter interface for FrontendsInterfaceServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armservicenetworking.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 armservicenetworking.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 ServerFactory

type ServerFactory struct {
	AssociationsInterfaceServer      AssociationsInterfaceServer
	FrontendsInterfaceServer         FrontendsInterfaceServer
	OperationsServer                 OperationsServer
	TrafficControllerInterfaceServer TrafficControllerInterfaceServer
}

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

type ServerFactoryTransport

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

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

type TrafficControllerInterfaceServer struct {
	// BeginCreateOrUpdate is the fake for method TrafficControllerInterfaceClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, trafficControllerName string, resource armservicenetworking.TrafficController, options *armservicenetworking.TrafficControllerInterfaceClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicenetworking.TrafficControllerInterfaceClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method TrafficControllerInterfaceClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, trafficControllerName string, options *armservicenetworking.TrafficControllerInterfaceClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicenetworking.TrafficControllerInterfaceClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method TrafficControllerInterfaceClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, trafficControllerName string, options *armservicenetworking.TrafficControllerInterfaceClientGetOptions) (resp azfake.Responder[armservicenetworking.TrafficControllerInterfaceClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method TrafficControllerInterfaceClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armservicenetworking.TrafficControllerInterfaceClientListByResourceGroupOptions) (resp azfake.PagerResponder[armservicenetworking.TrafficControllerInterfaceClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method TrafficControllerInterfaceClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armservicenetworking.TrafficControllerInterfaceClientListBySubscriptionOptions) (resp azfake.PagerResponder[armservicenetworking.TrafficControllerInterfaceClientListBySubscriptionResponse])

	// Update is the fake for method TrafficControllerInterfaceClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, trafficControllerName string, properties armservicenetworking.TrafficControllerUpdate, options *armservicenetworking.TrafficControllerInterfaceClientUpdateOptions) (resp azfake.Responder[armservicenetworking.TrafficControllerInterfaceClientUpdateResponse], errResp azfake.ErrorResponder)
}

TrafficControllerInterfaceServer is a fake server for instances of the armservicenetworking.TrafficControllerInterfaceClient type.

type TrafficControllerInterfaceServerTransport

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

TrafficControllerInterfaceServerTransport connects instances of armservicenetworking.TrafficControllerInterfaceClient to instances of TrafficControllerInterfaceServer. Don't use this type directly, use NewTrafficControllerInterfaceServerTransport instead.

func NewTrafficControllerInterfaceServerTransport

func NewTrafficControllerInterfaceServerTransport(srv *TrafficControllerInterfaceServer) *TrafficControllerInterfaceServerTransport

NewTrafficControllerInterfaceServerTransport creates a new instance of TrafficControllerInterfaceServerTransport with the provided implementation. The returned TrafficControllerInterfaceServerTransport instance is connected to an instance of armservicenetworking.TrafficControllerInterfaceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TrafficControllerInterfaceServerTransport) Do

Do implements the policy.Transporter interface for TrafficControllerInterfaceServerTransport.

Jump to

Keyboard shortcuts

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