fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationsServer

type ConfigurationsServer struct {
	// CreateInResourceGroup is the fake for method ConfigurationsClient.CreateInResourceGroup
	// HTTP status codes to indicate success: http.StatusOK
	CreateInResourceGroup func(ctx context.Context, configurationName armadvisor.ConfigurationName, resourceGroup string, configContract armadvisor.ConfigData, options *armadvisor.ConfigurationsClientCreateInResourceGroupOptions) (resp azfake.Responder[armadvisor.ConfigurationsClientCreateInResourceGroupResponse], errResp azfake.ErrorResponder)

	// CreateInSubscription is the fake for method ConfigurationsClient.CreateInSubscription
	// HTTP status codes to indicate success: http.StatusOK
	CreateInSubscription func(ctx context.Context, configurationName armadvisor.ConfigurationName, configContract armadvisor.ConfigData, options *armadvisor.ConfigurationsClientCreateInSubscriptionOptions) (resp azfake.Responder[armadvisor.ConfigurationsClientCreateInSubscriptionResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ConfigurationsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroup string, options *armadvisor.ConfigurationsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armadvisor.ConfigurationsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ConfigurationsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armadvisor.ConfigurationsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armadvisor.ConfigurationsClientListBySubscriptionResponse])
}

ConfigurationsServer is a fake server for instances of the armadvisor.ConfigurationsClient type.

type ConfigurationsServerTransport

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

ConfigurationsServerTransport connects instances of armadvisor.ConfigurationsClient to instances of ConfigurationsServer. Don't use this type directly, use NewConfigurationsServerTransport instead.

func NewConfigurationsServerTransport

func NewConfigurationsServerTransport(srv *ConfigurationsServer) *ConfigurationsServerTransport

NewConfigurationsServerTransport creates a new instance of ConfigurationsServerTransport with the provided implementation. The returned ConfigurationsServerTransport instance is connected to an instance of armadvisor.ConfigurationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ConfigurationsServerTransport) Do

Do implements the policy.Transporter interface for ConfigurationsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armadvisor.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 armadvisor.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 RecommendationMetadataServer

type RecommendationMetadataServer struct {
	// Get is the fake for method RecommendationMetadataClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, name string, options *armadvisor.RecommendationMetadataClientGetOptions) (resp azfake.Responder[armadvisor.RecommendationMetadataClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method RecommendationMetadataClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armadvisor.RecommendationMetadataClientListOptions) (resp azfake.PagerResponder[armadvisor.RecommendationMetadataClientListResponse])
}

RecommendationMetadataServer is a fake server for instances of the armadvisor.RecommendationMetadataClient type.

type RecommendationMetadataServerTransport

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

RecommendationMetadataServerTransport connects instances of armadvisor.RecommendationMetadataClient to instances of RecommendationMetadataServer. Don't use this type directly, use NewRecommendationMetadataServerTransport instead.

func NewRecommendationMetadataServerTransport

func NewRecommendationMetadataServerTransport(srv *RecommendationMetadataServer) *RecommendationMetadataServerTransport

NewRecommendationMetadataServerTransport creates a new instance of RecommendationMetadataServerTransport with the provided implementation. The returned RecommendationMetadataServerTransport instance is connected to an instance of armadvisor.RecommendationMetadataClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RecommendationMetadataServerTransport) Do

Do implements the policy.Transporter interface for RecommendationMetadataServerTransport.

type RecommendationsServer

type RecommendationsServer struct {
	// Generate is the fake for method RecommendationsClient.Generate
	// HTTP status codes to indicate success: http.StatusAccepted
	Generate func(ctx context.Context, options *armadvisor.RecommendationsClientGenerateOptions) (resp azfake.Responder[armadvisor.RecommendationsClientGenerateResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method RecommendationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, recommendationID string, options *armadvisor.RecommendationsClientGetOptions) (resp azfake.Responder[armadvisor.RecommendationsClientGetResponse], errResp azfake.ErrorResponder)

	// GetGenerateStatus is the fake for method RecommendationsClient.GetGenerateStatus
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	GetGenerateStatus func(ctx context.Context, operationID string, options *armadvisor.RecommendationsClientGetGenerateStatusOptions) (resp azfake.Responder[armadvisor.RecommendationsClientGetGenerateStatusResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method RecommendationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armadvisor.RecommendationsClientListOptions) (resp azfake.PagerResponder[armadvisor.RecommendationsClientListResponse])
}

RecommendationsServer is a fake server for instances of the armadvisor.RecommendationsClient type.

type RecommendationsServerTransport

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

RecommendationsServerTransport connects instances of armadvisor.RecommendationsClient to instances of RecommendationsServer. Don't use this type directly, use NewRecommendationsServerTransport instead.

func NewRecommendationsServerTransport

func NewRecommendationsServerTransport(srv *RecommendationsServer) *RecommendationsServerTransport

NewRecommendationsServerTransport creates a new instance of RecommendationsServerTransport with the provided implementation. The returned RecommendationsServerTransport instance is connected to an instance of armadvisor.RecommendationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RecommendationsServerTransport) Do

Do implements the policy.Transporter interface for RecommendationsServerTransport.

type ServerFactory

type ServerFactory struct {
	ConfigurationsServer         ConfigurationsServer
	OperationsServer             OperationsServer
	RecommendationMetadataServer RecommendationMetadataServer
	RecommendationsServer        RecommendationsServer
	SuppressionsServer           SuppressionsServer
}

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

type ServerFactoryTransport

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

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

type SuppressionsServer struct {
	// Create is the fake for method SuppressionsClient.Create
	// HTTP status codes to indicate success: http.StatusOK
	Create func(ctx context.Context, resourceURI string, recommendationID string, name string, suppressionContract armadvisor.SuppressionContract, options *armadvisor.SuppressionsClientCreateOptions) (resp azfake.Responder[armadvisor.SuppressionsClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SuppressionsClient.Delete
	// HTTP status codes to indicate success: http.StatusNoContent
	Delete func(ctx context.Context, resourceURI string, recommendationID string, name string, options *armadvisor.SuppressionsClientDeleteOptions) (resp azfake.Responder[armadvisor.SuppressionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SuppressionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, recommendationID string, name string, options *armadvisor.SuppressionsClientGetOptions) (resp azfake.Responder[armadvisor.SuppressionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SuppressionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armadvisor.SuppressionsClientListOptions) (resp azfake.PagerResponder[armadvisor.SuppressionsClientListResponse])
}

SuppressionsServer is a fake server for instances of the armadvisor.SuppressionsClient type.

type SuppressionsServerTransport

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

SuppressionsServerTransport connects instances of armadvisor.SuppressionsClient to instances of SuppressionsServer. Don't use this type directly, use NewSuppressionsServerTransport instead.

func NewSuppressionsServerTransport

func NewSuppressionsServerTransport(srv *SuppressionsServer) *SuppressionsServerTransport

NewSuppressionsServerTransport creates a new instance of SuppressionsServerTransport with the provided implementation. The returned SuppressionsServerTransport instance is connected to an instance of armadvisor.SuppressionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SuppressionsServerTransport) Do

Do implements the policy.Transporter interface for SuppressionsServerTransport.

Jump to

Keyboard shortcuts

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