fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 DiagnosticsServer

type DiagnosticsServer struct {
	// CheckNameAvailability is the fake for method DiagnosticsClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, scope string, options *armselfhelp.DiagnosticsClientCheckNameAvailabilityOptions) (resp azfake.Responder[armselfhelp.DiagnosticsClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)

	// BeginCreate is the fake for method DiagnosticsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, scope string, diagnosticsResourceName string, diagnosticResourceRequest armselfhelp.DiagnosticResource, options *armselfhelp.DiagnosticsClientBeginCreateOptions) (resp azfake.PollerResponder[armselfhelp.DiagnosticsClientCreateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method DiagnosticsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, scope string, diagnosticsResourceName string, options *armselfhelp.DiagnosticsClientGetOptions) (resp azfake.Responder[armselfhelp.DiagnosticsClientGetResponse], errResp azfake.ErrorResponder)
}

DiagnosticsServer is a fake server for instances of the armselfhelp.DiagnosticsClient type.

type DiagnosticsServerTransport

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

DiagnosticsServerTransport connects instances of armselfhelp.DiagnosticsClient to instances of DiagnosticsServer. Don't use this type directly, use NewDiagnosticsServerTransport instead.

func NewDiagnosticsServerTransport

func NewDiagnosticsServerTransport(srv *DiagnosticsServer) *DiagnosticsServerTransport

NewDiagnosticsServerTransport creates a new instance of DiagnosticsServerTransport with the provided implementation. The returned DiagnosticsServerTransport instance is connected to an instance of armselfhelp.DiagnosticsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DiagnosticsServerTransport) Do

Do implements the policy.Transporter interface for DiagnosticsServerTransport.

type DiscoverySolutionServer

type DiscoverySolutionServer struct {
	// NewListPager is the fake for method DiscoverySolutionClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(scope string, options *armselfhelp.DiscoverySolutionClientListOptions) (resp azfake.PagerResponder[armselfhelp.DiscoverySolutionClientListResponse])
}

DiscoverySolutionServer is a fake server for instances of the armselfhelp.DiscoverySolutionClient type.

type DiscoverySolutionServerTransport

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

DiscoverySolutionServerTransport connects instances of armselfhelp.DiscoverySolutionClient to instances of DiscoverySolutionServer. Don't use this type directly, use NewDiscoverySolutionServerTransport instead.

func NewDiscoverySolutionServerTransport

func NewDiscoverySolutionServerTransport(srv *DiscoverySolutionServer) *DiscoverySolutionServerTransport

NewDiscoverySolutionServerTransport creates a new instance of DiscoverySolutionServerTransport with the provided implementation. The returned DiscoverySolutionServerTransport instance is connected to an instance of armselfhelp.DiscoverySolutionClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DiscoverySolutionServerTransport) Do

Do implements the policy.Transporter interface for DiscoverySolutionServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armselfhelp.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 armselfhelp.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 {
	DiagnosticsServer       DiagnosticsServer
	DiscoverySolutionServer DiscoverySolutionServer
	OperationsServer        OperationsServer
}

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

type ServerFactoryTransport

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

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