fake

package
v2.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 CheckNameAvailabilityServer

type CheckNameAvailabilityServer struct {
	// Post is the fake for method CheckNameAvailabilityClient.Post
	// HTTP status codes to indicate success: http.StatusOK
	Post func(ctx context.Context, scope string, options *armselfhelp.CheckNameAvailabilityClientPostOptions) (resp azfake.Responder[armselfhelp.CheckNameAvailabilityClientPostResponse], errResp azfake.ErrorResponder)
}

CheckNameAvailabilityServer is a fake server for instances of the armselfhelp.CheckNameAvailabilityClient type.

type CheckNameAvailabilityServerTransport

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

CheckNameAvailabilityServerTransport connects instances of armselfhelp.CheckNameAvailabilityClient to instances of CheckNameAvailabilityServer. Don't use this type directly, use NewCheckNameAvailabilityServerTransport instead.

func NewCheckNameAvailabilityServerTransport

func NewCheckNameAvailabilityServerTransport(srv *CheckNameAvailabilityServer) *CheckNameAvailabilityServerTransport

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

func (*CheckNameAvailabilityServerTransport) Do

Do implements the policy.Transporter interface for CheckNameAvailabilityServerTransport.

type DiagnosticsServer

type DiagnosticsServer struct {
	// 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 DiscoverySolutionNLPSubscriptionScopeServer

type DiscoverySolutionNLPSubscriptionScopeServer struct {
	// Post is the fake for method DiscoverySolutionNLPSubscriptionScopeClient.Post
	// HTTP status codes to indicate success: http.StatusOK
	Post func(ctx context.Context, options *armselfhelp.DiscoverySolutionNLPSubscriptionScopeClientPostOptions) (resp azfake.Responder[armselfhelp.DiscoverySolutionNLPSubscriptionScopeClientPostResponse], errResp azfake.ErrorResponder)
}

DiscoverySolutionNLPSubscriptionScopeServer is a fake server for instances of the armselfhelp.DiscoverySolutionNLPSubscriptionScopeClient type.

type DiscoverySolutionNLPSubscriptionScopeServerTransport

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

DiscoverySolutionNLPSubscriptionScopeServerTransport connects instances of armselfhelp.DiscoverySolutionNLPSubscriptionScopeClient to instances of DiscoverySolutionNLPSubscriptionScopeServer. Don't use this type directly, use NewDiscoverySolutionNLPSubscriptionScopeServerTransport instead.

func NewDiscoverySolutionNLPSubscriptionScopeServerTransport

func NewDiscoverySolutionNLPSubscriptionScopeServerTransport(srv *DiscoverySolutionNLPSubscriptionScopeServer) *DiscoverySolutionNLPSubscriptionScopeServerTransport

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

func (*DiscoverySolutionNLPSubscriptionScopeServerTransport) Do

Do implements the policy.Transporter interface for DiscoverySolutionNLPSubscriptionScopeServerTransport.

type DiscoverySolutionNLPTenantScopeServer

type DiscoverySolutionNLPTenantScopeServer struct {
	// Post is the fake for method DiscoverySolutionNLPTenantScopeClient.Post
	// HTTP status codes to indicate success: http.StatusOK
	Post func(ctx context.Context, options *armselfhelp.DiscoverySolutionNLPTenantScopeClientPostOptions) (resp azfake.Responder[armselfhelp.DiscoverySolutionNLPTenantScopeClientPostResponse], errResp azfake.ErrorResponder)
}

DiscoverySolutionNLPTenantScopeServer is a fake server for instances of the armselfhelp.DiscoverySolutionNLPTenantScopeClient type.

type DiscoverySolutionNLPTenantScopeServerTransport

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

DiscoverySolutionNLPTenantScopeServerTransport connects instances of armselfhelp.DiscoverySolutionNLPTenantScopeClient to instances of DiscoverySolutionNLPTenantScopeServer. Don't use this type directly, use NewDiscoverySolutionNLPTenantScopeServerTransport instead.

func NewDiscoverySolutionNLPTenantScopeServerTransport

func NewDiscoverySolutionNLPTenantScopeServerTransport(srv *DiscoverySolutionNLPTenantScopeServer) *DiscoverySolutionNLPTenantScopeServerTransport

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

func (*DiscoverySolutionNLPTenantScopeServerTransport) Do

Do implements the policy.Transporter interface for DiscoverySolutionNLPTenantScopeServerTransport.

type DiscoverySolutionServer

type DiscoverySolutionServer struct {
	// NewListPager is the fake for method DiscoverySolutionClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(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 {
	CheckNameAvailabilityServer                 CheckNameAvailabilityServer
	DiagnosticsServer                           DiagnosticsServer
	DiscoverySolutionServer                     DiscoverySolutionServer
	DiscoverySolutionNLPSubscriptionScopeServer DiscoverySolutionNLPSubscriptionScopeServer
	DiscoverySolutionNLPTenantScopeServer       DiscoverySolutionNLPTenantScopeServer
	OperationsServer                            OperationsServer
	SimplifiedSolutionsServer                   SimplifiedSolutionsServer
	SolutionServer                              SolutionServer
	SolutionSelfHelpServer                      SolutionSelfHelpServer
	TroubleshootersServer                       TroubleshootersServer
}

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.

type SimplifiedSolutionsServer

type SimplifiedSolutionsServer struct {
	// BeginCreate is the fake for method SimplifiedSolutionsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, scope string, simplifiedSolutionsResourceName string, simplifiedSolutionsRequestBody armselfhelp.SimplifiedSolutionsResource, options *armselfhelp.SimplifiedSolutionsClientBeginCreateOptions) (resp azfake.PollerResponder[armselfhelp.SimplifiedSolutionsClientCreateResponse], errResp azfake.ErrorResponder)

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

SimplifiedSolutionsServer is a fake server for instances of the armselfhelp.SimplifiedSolutionsClient type.

type SimplifiedSolutionsServerTransport

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

SimplifiedSolutionsServerTransport connects instances of armselfhelp.SimplifiedSolutionsClient to instances of SimplifiedSolutionsServer. Don't use this type directly, use NewSimplifiedSolutionsServerTransport instead.

func NewSimplifiedSolutionsServerTransport

func NewSimplifiedSolutionsServerTransport(srv *SimplifiedSolutionsServer) *SimplifiedSolutionsServerTransport

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

func (*SimplifiedSolutionsServerTransport) Do

Do implements the policy.Transporter interface for SimplifiedSolutionsServerTransport.

type SolutionSelfHelpServer

type SolutionSelfHelpServer struct {
	// Get is the fake for method SolutionSelfHelpClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, solutionID string, options *armselfhelp.SolutionSelfHelpClientGetOptions) (resp azfake.Responder[armselfhelp.SolutionSelfHelpClientGetResponse], errResp azfake.ErrorResponder)
}

SolutionSelfHelpServer is a fake server for instances of the armselfhelp.SolutionSelfHelpClient type.

type SolutionSelfHelpServerTransport

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

SolutionSelfHelpServerTransport connects instances of armselfhelp.SolutionSelfHelpClient to instances of SolutionSelfHelpServer. Don't use this type directly, use NewSolutionSelfHelpServerTransport instead.

func NewSolutionSelfHelpServerTransport

func NewSolutionSelfHelpServerTransport(srv *SolutionSelfHelpServer) *SolutionSelfHelpServerTransport

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

func (*SolutionSelfHelpServerTransport) Do

Do implements the policy.Transporter interface for SolutionSelfHelpServerTransport.

type SolutionServer

type SolutionServer struct {
	// BeginCreate is the fake for method SolutionClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, scope string, solutionResourceName string, solutionRequestBody armselfhelp.SolutionResource, options *armselfhelp.SolutionClientBeginCreateOptions) (resp azfake.PollerResponder[armselfhelp.SolutionClientCreateResponse], errResp azfake.ErrorResponder)

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

	// BeginUpdate is the fake for method SolutionClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, scope string, solutionResourceName string, solutionPatchRequestBody armselfhelp.SolutionPatchRequestBody, options *armselfhelp.SolutionClientBeginUpdateOptions) (resp azfake.PollerResponder[armselfhelp.SolutionClientUpdateResponse], errResp azfake.ErrorResponder)

	// WarmUp is the fake for method SolutionClient.WarmUp
	// HTTP status codes to indicate success: http.StatusNoContent
	WarmUp func(ctx context.Context, scope string, solutionResourceName string, options *armselfhelp.SolutionClientWarmUpOptions) (resp azfake.Responder[armselfhelp.SolutionClientWarmUpResponse], errResp azfake.ErrorResponder)
}

SolutionServer is a fake server for instances of the armselfhelp.SolutionClient type.

type SolutionServerTransport

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

SolutionServerTransport connects instances of armselfhelp.SolutionClient to instances of SolutionServer. Don't use this type directly, use NewSolutionServerTransport instead.

func NewSolutionServerTransport

func NewSolutionServerTransport(srv *SolutionServer) *SolutionServerTransport

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

func (*SolutionServerTransport) Do

Do implements the policy.Transporter interface for SolutionServerTransport.

type TroubleshootersServer

type TroubleshootersServer struct {
	// Continue is the fake for method TroubleshootersClient.Continue
	// HTTP status codes to indicate success: http.StatusNoContent
	Continue func(ctx context.Context, scope string, troubleshooterName string, options *armselfhelp.TroubleshootersClientContinueOptions) (resp azfake.Responder[armselfhelp.TroubleshootersClientContinueResponse], errResp azfake.ErrorResponder)

	// Create is the fake for method TroubleshootersClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, scope string, troubleshooterName string, createTroubleshooterRequestBody armselfhelp.TroubleshooterResource, options *armselfhelp.TroubleshootersClientCreateOptions) (resp azfake.Responder[armselfhelp.TroubleshootersClientCreateResponse], errResp azfake.ErrorResponder)

	// End is the fake for method TroubleshootersClient.End
	// HTTP status codes to indicate success: http.StatusNoContent
	End func(ctx context.Context, scope string, troubleshooterName string, options *armselfhelp.TroubleshootersClientEndOptions) (resp azfake.Responder[armselfhelp.TroubleshootersClientEndResponse], errResp azfake.ErrorResponder)

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

	// Restart is the fake for method TroubleshootersClient.Restart
	// HTTP status codes to indicate success: http.StatusOK
	Restart func(ctx context.Context, scope string, troubleshooterName string, options *armselfhelp.TroubleshootersClientRestartOptions) (resp azfake.Responder[armselfhelp.TroubleshootersClientRestartResponse], errResp azfake.ErrorResponder)
}

TroubleshootersServer is a fake server for instances of the armselfhelp.TroubleshootersClient type.

type TroubleshootersServerTransport

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

TroubleshootersServerTransport connects instances of armselfhelp.TroubleshootersClient to instances of TroubleshootersServer. Don't use this type directly, use NewTroubleshootersServerTransport instead.

func NewTroubleshootersServerTransport

func NewTroubleshootersServerTransport(srv *TroubleshootersServer) *TroubleshootersServerTransport

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

func (*TroubleshootersServerTransport) Do

Do implements the policy.Transporter interface for TroubleshootersServerTransport.

Jump to

Keyboard shortcuts

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