fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 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 ExtendedZonesServer

type ExtendedZonesServer struct {
	// Get is the fake for method ExtendedZonesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, extendedZoneName string, options *armedgezones.ExtendedZonesClientGetOptions) (resp azfake.Responder[armedgezones.ExtendedZonesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListBySubscriptionPager is the fake for method ExtendedZonesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armedgezones.ExtendedZonesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armedgezones.ExtendedZonesClientListBySubscriptionResponse])

	// Register is the fake for method ExtendedZonesClient.Register
	// HTTP status codes to indicate success: http.StatusOK
	Register func(ctx context.Context, extendedZoneName string, options *armedgezones.ExtendedZonesClientRegisterOptions) (resp azfake.Responder[armedgezones.ExtendedZonesClientRegisterResponse], errResp azfake.ErrorResponder)

	// Unregister is the fake for method ExtendedZonesClient.Unregister
	// HTTP status codes to indicate success: http.StatusOK
	Unregister func(ctx context.Context, extendedZoneName string, options *armedgezones.ExtendedZonesClientUnregisterOptions) (resp azfake.Responder[armedgezones.ExtendedZonesClientUnregisterResponse], errResp azfake.ErrorResponder)
}

ExtendedZonesServer is a fake server for instances of the armedgezones.ExtendedZonesClient type.

type ExtendedZonesServerTransport

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

ExtendedZonesServerTransport connects instances of armedgezones.ExtendedZonesClient to instances of ExtendedZonesServer. Don't use this type directly, use NewExtendedZonesServerTransport instead.

func NewExtendedZonesServerTransport

func NewExtendedZonesServerTransport(srv *ExtendedZonesServer) *ExtendedZonesServerTransport

NewExtendedZonesServerTransport creates a new instance of ExtendedZonesServerTransport with the provided implementation. The returned ExtendedZonesServerTransport instance is connected to an instance of armedgezones.ExtendedZonesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ExtendedZonesServerTransport) Do

Do implements the policy.Transporter interface for ExtendedZonesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armedgezones.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 armedgezones.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 {
	// ExtendedZonesServer contains the fakes for client ExtendedZonesClient
	ExtendedZonesServer ExtendedZonesServer

	// OperationsServer contains the fakes for client OperationsClient
	OperationsServer OperationsServer
}

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

type ServerFactoryTransport

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

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