fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 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 ErrorSummariesServer

type ErrorSummariesServer struct {
	// Get is the fake for method ErrorSummariesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, siteName string, errorSummaryName string, options *armspringappdiscovery.ErrorSummariesClientGetOptions) (resp azfake.Responder[armspringappdiscovery.ErrorSummariesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListBySitePager is the fake for method ErrorSummariesClient.NewListBySitePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySitePager func(resourceGroupName string, siteName string, options *armspringappdiscovery.ErrorSummariesClientListBySiteOptions) (resp azfake.PagerResponder[armspringappdiscovery.ErrorSummariesClientListBySiteResponse])
}

ErrorSummariesServer is a fake server for instances of the armspringappdiscovery.ErrorSummariesClient type.

type ErrorSummariesServerTransport

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

ErrorSummariesServerTransport connects instances of armspringappdiscovery.ErrorSummariesClient to instances of ErrorSummariesServer. Don't use this type directly, use NewErrorSummariesServerTransport instead.

func NewErrorSummariesServerTransport

func NewErrorSummariesServerTransport(srv *ErrorSummariesServer) *ErrorSummariesServerTransport

NewErrorSummariesServerTransport creates a new instance of ErrorSummariesServerTransport with the provided implementation. The returned ErrorSummariesServerTransport instance is connected to an instance of armspringappdiscovery.ErrorSummariesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ErrorSummariesServerTransport) Do

Do implements the policy.Transporter interface for ErrorSummariesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armspringappdiscovery.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 armspringappdiscovery.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 {
	ErrorSummariesServer    ErrorSummariesServer
	OperationsServer        OperationsServer
	SpringbootappsServer    SpringbootappsServer
	SpringbootserversServer SpringbootserversServer
	SpringbootsitesServer   SpringbootsitesServer
	SummariesServer         SummariesServer
}

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

type ServerFactoryTransport

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

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

type SpringbootappsServer struct {
	// Get is the fake for method SpringbootappsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, siteName string, springbootappsName string, options *armspringappdiscovery.SpringbootappsClientGetOptions) (resp azfake.Responder[armspringappdiscovery.SpringbootappsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method SpringbootappsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, siteName string, options *armspringappdiscovery.SpringbootappsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armspringappdiscovery.SpringbootappsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method SpringbootappsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(siteName string, options *armspringappdiscovery.SpringbootappsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armspringappdiscovery.SpringbootappsClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method SpringbootappsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, siteName string, springbootappsName string, springbootapps armspringappdiscovery.SpringbootappsPatch, options *armspringappdiscovery.SpringbootappsClientBeginUpdateOptions) (resp azfake.PollerResponder[armspringappdiscovery.SpringbootappsClientUpdateResponse], errResp azfake.ErrorResponder)
}

SpringbootappsServer is a fake server for instances of the armspringappdiscovery.SpringbootappsClient type.

type SpringbootappsServerTransport

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

SpringbootappsServerTransport connects instances of armspringappdiscovery.SpringbootappsClient to instances of SpringbootappsServer. Don't use this type directly, use NewSpringbootappsServerTransport instead.

func NewSpringbootappsServerTransport

func NewSpringbootappsServerTransport(srv *SpringbootappsServer) *SpringbootappsServerTransport

NewSpringbootappsServerTransport creates a new instance of SpringbootappsServerTransport with the provided implementation. The returned SpringbootappsServerTransport instance is connected to an instance of armspringappdiscovery.SpringbootappsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SpringbootappsServerTransport) Do

Do implements the policy.Transporter interface for SpringbootappsServerTransport.

type SpringbootserversServer

type SpringbootserversServer struct {
	// CreateOrUpdate is the fake for method SpringbootserversClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, springbootservers armspringappdiscovery.SpringbootserversModel, options *armspringappdiscovery.SpringbootserversClientCreateOrUpdateOptions) (resp azfake.Responder[armspringappdiscovery.SpringbootserversClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SpringbootserversClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, options *armspringappdiscovery.SpringbootserversClientBeginDeleteOptions) (resp azfake.PollerResponder[armspringappdiscovery.SpringbootserversClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SpringbootserversClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, options *armspringappdiscovery.SpringbootserversClientGetOptions) (resp azfake.Responder[armspringappdiscovery.SpringbootserversClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method SpringbootserversClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, siteName string, options *armspringappdiscovery.SpringbootserversClientListByResourceGroupOptions) (resp azfake.PagerResponder[armspringappdiscovery.SpringbootserversClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method SpringbootserversClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(siteName string, options *armspringappdiscovery.SpringbootserversClientListBySubscriptionOptions) (resp azfake.PagerResponder[armspringappdiscovery.SpringbootserversClientListBySubscriptionResponse])

	// BeginUpdate is the fake for method SpringbootserversClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, siteName string, springbootserversName string, springbootservers armspringappdiscovery.SpringbootserversPatch, options *armspringappdiscovery.SpringbootserversClientBeginUpdateOptions) (resp azfake.PollerResponder[armspringappdiscovery.SpringbootserversClientUpdateResponse], errResp azfake.ErrorResponder)
}

SpringbootserversServer is a fake server for instances of the armspringappdiscovery.SpringbootserversClient type.

type SpringbootserversServerTransport

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

SpringbootserversServerTransport connects instances of armspringappdiscovery.SpringbootserversClient to instances of SpringbootserversServer. Don't use this type directly, use NewSpringbootserversServerTransport instead.

func NewSpringbootserversServerTransport

func NewSpringbootserversServerTransport(srv *SpringbootserversServer) *SpringbootserversServerTransport

NewSpringbootserversServerTransport creates a new instance of SpringbootserversServerTransport with the provided implementation. The returned SpringbootserversServerTransport instance is connected to an instance of armspringappdiscovery.SpringbootserversClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SpringbootserversServerTransport) Do

Do implements the policy.Transporter interface for SpringbootserversServerTransport.

type SpringbootsitesServer

type SpringbootsitesServer struct {
	// CreateOrUpdate is the fake for method SpringbootsitesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, springbootsitesName string, springbootsites armspringappdiscovery.SpringbootsitesModel, options *armspringappdiscovery.SpringbootsitesClientCreateOrUpdateOptions) (resp azfake.Responder[armspringappdiscovery.SpringbootsitesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SpringbootsitesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, springbootsitesName string, options *armspringappdiscovery.SpringbootsitesClientBeginDeleteOptions) (resp azfake.PollerResponder[armspringappdiscovery.SpringbootsitesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SpringbootsitesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, springbootsitesName string, options *armspringappdiscovery.SpringbootsitesClientGetOptions) (resp azfake.Responder[armspringappdiscovery.SpringbootsitesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method SpringbootsitesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armspringappdiscovery.SpringbootsitesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armspringappdiscovery.SpringbootsitesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method SpringbootsitesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armspringappdiscovery.SpringbootsitesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armspringappdiscovery.SpringbootsitesClientListBySubscriptionResponse])

	// BeginTriggerRefreshSite is the fake for method SpringbootsitesClient.BeginTriggerRefreshSite
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginTriggerRefreshSite func(ctx context.Context, resourceGroupName string, springbootsitesName string, options *armspringappdiscovery.SpringbootsitesClientBeginTriggerRefreshSiteOptions) (resp azfake.PollerResponder[armspringappdiscovery.SpringbootsitesClientTriggerRefreshSiteResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method SpringbootsitesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, springbootsitesName string, springbootsites armspringappdiscovery.SpringbootsitesPatch, options *armspringappdiscovery.SpringbootsitesClientBeginUpdateOptions) (resp azfake.PollerResponder[armspringappdiscovery.SpringbootsitesClientUpdateResponse], errResp azfake.ErrorResponder)
}

SpringbootsitesServer is a fake server for instances of the armspringappdiscovery.SpringbootsitesClient type.

type SpringbootsitesServerTransport

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

SpringbootsitesServerTransport connects instances of armspringappdiscovery.SpringbootsitesClient to instances of SpringbootsitesServer. Don't use this type directly, use NewSpringbootsitesServerTransport instead.

func NewSpringbootsitesServerTransport

func NewSpringbootsitesServerTransport(srv *SpringbootsitesServer) *SpringbootsitesServerTransport

NewSpringbootsitesServerTransport creates a new instance of SpringbootsitesServerTransport with the provided implementation. The returned SpringbootsitesServerTransport instance is connected to an instance of armspringappdiscovery.SpringbootsitesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SpringbootsitesServerTransport) Do

Do implements the policy.Transporter interface for SpringbootsitesServerTransport.

type SummariesServer

type SummariesServer struct {
	// Get is the fake for method SummariesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, siteName string, summaryName string, options *armspringappdiscovery.SummariesClientGetOptions) (resp azfake.Responder[armspringappdiscovery.SummariesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListBySitePager is the fake for method SummariesClient.NewListBySitePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySitePager func(resourceGroupName string, siteName string, options *armspringappdiscovery.SummariesClientListBySiteOptions) (resp azfake.PagerResponder[armspringappdiscovery.SummariesClientListBySiteResponse])
}

SummariesServer is a fake server for instances of the armspringappdiscovery.SummariesClient type.

type SummariesServerTransport

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

SummariesServerTransport connects instances of armspringappdiscovery.SummariesClient to instances of SummariesServer. Don't use this type directly, use NewSummariesServerTransport instead.

func NewSummariesServerTransport

func NewSummariesServerTransport(srv *SummariesServer) *SummariesServerTransport

NewSummariesServerTransport creates a new instance of SummariesServerTransport with the provided implementation. The returned SummariesServerTransport instance is connected to an instance of armspringappdiscovery.SummariesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SummariesServerTransport) Do

Do implements the policy.Transporter interface for SummariesServerTransport.

Jump to

Keyboard shortcuts

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