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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrafanaServer

type GrafanaServer struct {
	// CheckEnterpriseDetails is the fake for method GrafanaClient.CheckEnterpriseDetails
	// HTTP status codes to indicate success: http.StatusOK
	CheckEnterpriseDetails func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdashboard.GrafanaClientCheckEnterpriseDetailsOptions) (resp azfake.Responder[armdashboard.GrafanaClientCheckEnterpriseDetailsResponse], errResp azfake.ErrorResponder)

	// BeginCreate is the fake for method GrafanaClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, workspaceName string, requestBodyParameters armdashboard.ManagedGrafana, options *armdashboard.GrafanaClientBeginCreateOptions) (resp azfake.PollerResponder[armdashboard.GrafanaClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method GrafanaClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdashboard.GrafanaClientBeginDeleteOptions) (resp azfake.PollerResponder[armdashboard.GrafanaClientDeleteResponse], errResp azfake.ErrorResponder)

	// FetchAvailablePlugins is the fake for method GrafanaClient.FetchAvailablePlugins
	// HTTP status codes to indicate success: http.StatusOK
	FetchAvailablePlugins func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdashboard.GrafanaClientFetchAvailablePluginsOptions) (resp azfake.Responder[armdashboard.GrafanaClientFetchAvailablePluginsResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method GrafanaClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdashboard.GrafanaClientGetOptions) (resp azfake.Responder[armdashboard.GrafanaClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method GrafanaClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdashboard.GrafanaClientListOptions) (resp azfake.PagerResponder[armdashboard.GrafanaClientListResponse])

	// NewListByResourceGroupPager is the fake for method GrafanaClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdashboard.GrafanaClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdashboard.GrafanaClientListByResourceGroupResponse])

	// Update is the fake for method GrafanaClient.Update
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	Update func(ctx context.Context, resourceGroupName string, workspaceName string, requestBodyParameters armdashboard.ManagedGrafanaUpdateParameters, options *armdashboard.GrafanaClientUpdateOptions) (resp azfake.Responder[armdashboard.GrafanaClientUpdateResponse], errResp azfake.ErrorResponder)
}

GrafanaServer is a fake server for instances of the armdashboard.GrafanaClient type.

type GrafanaServerTransport

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

GrafanaServerTransport connects instances of armdashboard.GrafanaClient to instances of GrafanaServer. Don't use this type directly, use NewGrafanaServerTransport instead.

func NewGrafanaServerTransport

func NewGrafanaServerTransport(srv *GrafanaServer) *GrafanaServerTransport

NewGrafanaServerTransport creates a new instance of GrafanaServerTransport with the provided implementation. The returned GrafanaServerTransport instance is connected to an instance of armdashboard.GrafanaClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*GrafanaServerTransport) Do

Do implements the policy.Transporter interface for GrafanaServerTransport.

type ManagedPrivateEndpointsServer

type ManagedPrivateEndpointsServer struct {
	// BeginCreate is the fake for method ManagedPrivateEndpointsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, requestBodyParameters armdashboard.ManagedPrivateEndpointModel, options *armdashboard.ManagedPrivateEndpointsClientBeginCreateOptions) (resp azfake.PollerResponder[armdashboard.ManagedPrivateEndpointsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ManagedPrivateEndpointsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, options *armdashboard.ManagedPrivateEndpointsClientBeginDeleteOptions) (resp azfake.PollerResponder[armdashboard.ManagedPrivateEndpointsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ManagedPrivateEndpointsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, options *armdashboard.ManagedPrivateEndpointsClientGetOptions) (resp azfake.Responder[armdashboard.ManagedPrivateEndpointsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ManagedPrivateEndpointsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, workspaceName string, options *armdashboard.ManagedPrivateEndpointsClientListOptions) (resp azfake.PagerResponder[armdashboard.ManagedPrivateEndpointsClientListResponse])

	// BeginRefresh is the fake for method ManagedPrivateEndpointsClient.BeginRefresh
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginRefresh func(ctx context.Context, resourceGroupName string, workspaceName string, options *armdashboard.ManagedPrivateEndpointsClientBeginRefreshOptions) (resp azfake.PollerResponder[armdashboard.ManagedPrivateEndpointsClientRefreshResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method ManagedPrivateEndpointsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, workspaceName string, managedPrivateEndpointName string, requestBodyParameters armdashboard.ManagedPrivateEndpointUpdateParameters, options *armdashboard.ManagedPrivateEndpointsClientBeginUpdateOptions) (resp azfake.PollerResponder[armdashboard.ManagedPrivateEndpointsClientUpdateResponse], errResp azfake.ErrorResponder)
}

ManagedPrivateEndpointsServer is a fake server for instances of the armdashboard.ManagedPrivateEndpointsClient type.

type ManagedPrivateEndpointsServerTransport

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

ManagedPrivateEndpointsServerTransport connects instances of armdashboard.ManagedPrivateEndpointsClient to instances of ManagedPrivateEndpointsServer. Don't use this type directly, use NewManagedPrivateEndpointsServerTransport instead.

func NewManagedPrivateEndpointsServerTransport

func NewManagedPrivateEndpointsServerTransport(srv *ManagedPrivateEndpointsServer) *ManagedPrivateEndpointsServerTransport

NewManagedPrivateEndpointsServerTransport creates a new instance of ManagedPrivateEndpointsServerTransport with the provided implementation. The returned ManagedPrivateEndpointsServerTransport instance is connected to an instance of armdashboard.ManagedPrivateEndpointsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ManagedPrivateEndpointsServerTransport) Do

Do implements the policy.Transporter interface for ManagedPrivateEndpointsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armdashboard.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 armdashboard.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 PrivateEndpointConnectionsServer

type PrivateEndpointConnectionsServer struct {
	// BeginApprove is the fake for method PrivateEndpointConnectionsClient.BeginApprove
	// HTTP status codes to indicate success: http.StatusCreated
	BeginApprove func(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, body armdashboard.PrivateEndpointConnection, options *armdashboard.PrivateEndpointConnectionsClientBeginApproveOptions) (resp azfake.PollerResponder[armdashboard.PrivateEndpointConnectionsClientApproveResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method PrivateEndpointConnectionsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *armdashboard.PrivateEndpointConnectionsClientBeginDeleteOptions) (resp azfake.PollerResponder[armdashboard.PrivateEndpointConnectionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateEndpointConnectionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *armdashboard.PrivateEndpointConnectionsClientGetOptions) (resp azfake.Responder[armdashboard.PrivateEndpointConnectionsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateEndpointConnectionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, workspaceName string, options *armdashboard.PrivateEndpointConnectionsClientListOptions) (resp azfake.PagerResponder[armdashboard.PrivateEndpointConnectionsClientListResponse])
}

PrivateEndpointConnectionsServer is a fake server for instances of the armdashboard.PrivateEndpointConnectionsClient type.

type PrivateEndpointConnectionsServerTransport

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

PrivateEndpointConnectionsServerTransport connects instances of armdashboard.PrivateEndpointConnectionsClient to instances of PrivateEndpointConnectionsServer. Don't use this type directly, use NewPrivateEndpointConnectionsServerTransport instead.

func NewPrivateEndpointConnectionsServerTransport

func NewPrivateEndpointConnectionsServerTransport(srv *PrivateEndpointConnectionsServer) *PrivateEndpointConnectionsServerTransport

NewPrivateEndpointConnectionsServerTransport creates a new instance of PrivateEndpointConnectionsServerTransport with the provided implementation. The returned PrivateEndpointConnectionsServerTransport instance is connected to an instance of armdashboard.PrivateEndpointConnectionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateEndpointConnectionsServerTransport) Do

Do implements the policy.Transporter interface for PrivateEndpointConnectionsServerTransport.

type PrivateLinkResourcesServer

type PrivateLinkResourcesServer struct {
	// Get is the fake for method PrivateLinkResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, privateLinkResourceName string, options *armdashboard.PrivateLinkResourcesClientGetOptions) (resp azfake.Responder[armdashboard.PrivateLinkResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateLinkResourcesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, workspaceName string, options *armdashboard.PrivateLinkResourcesClientListOptions) (resp azfake.PagerResponder[armdashboard.PrivateLinkResourcesClientListResponse])
}

PrivateLinkResourcesServer is a fake server for instances of the armdashboard.PrivateLinkResourcesClient type.

type PrivateLinkResourcesServerTransport

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

PrivateLinkResourcesServerTransport connects instances of armdashboard.PrivateLinkResourcesClient to instances of PrivateLinkResourcesServer. Don't use this type directly, use NewPrivateLinkResourcesServerTransport instead.

func NewPrivateLinkResourcesServerTransport

func NewPrivateLinkResourcesServerTransport(srv *PrivateLinkResourcesServer) *PrivateLinkResourcesServerTransport

NewPrivateLinkResourcesServerTransport creates a new instance of PrivateLinkResourcesServerTransport with the provided implementation. The returned PrivateLinkResourcesServerTransport instance is connected to an instance of armdashboard.PrivateLinkResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateLinkResourcesServerTransport) Do

Do implements the policy.Transporter interface for PrivateLinkResourcesServerTransport.

type ServerFactory

type ServerFactory struct {
	GrafanaServer                    GrafanaServer
	ManagedPrivateEndpointsServer    ManagedPrivateEndpointsServer
	OperationsServer                 OperationsServer
	PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer
	PrivateLinkResourcesServer       PrivateLinkResourcesServer
}

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

type ServerFactoryTransport

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

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