fake

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardsServer

type DashboardsServer struct {
	// CreateOrUpdate is the fake for method DashboardsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, dashboardName string, dashboard armportal.Dashboard, options *armportal.DashboardsClientCreateOrUpdateOptions) (resp azfake.Responder[armportal.DashboardsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method DashboardsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, dashboardName string, options *armportal.DashboardsClientDeleteOptions) (resp azfake.Responder[armportal.DashboardsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method DashboardsClient.Get
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	Get func(ctx context.Context, resourceGroupName string, dashboardName string, options *armportal.DashboardsClientGetOptions) (resp azfake.Responder[armportal.DashboardsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method DashboardsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armportal.DashboardsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armportal.DashboardsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method DashboardsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armportal.DashboardsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armportal.DashboardsClientListBySubscriptionResponse])

	// Update is the fake for method DashboardsClient.Update
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	Update func(ctx context.Context, resourceGroupName string, dashboardName string, dashboard armportal.PatchableDashboard, options *armportal.DashboardsClientUpdateOptions) (resp azfake.Responder[armportal.DashboardsClientUpdateResponse], errResp azfake.ErrorResponder)
}

DashboardsServer is a fake server for instances of the armportal.DashboardsClient type.

type DashboardsServerTransport

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

DashboardsServerTransport connects instances of armportal.DashboardsClient to instances of DashboardsServer. Don't use this type directly, use NewDashboardsServerTransport instead.

func NewDashboardsServerTransport

func NewDashboardsServerTransport(srv *DashboardsServer) *DashboardsServerTransport

NewDashboardsServerTransport creates a new instance of DashboardsServerTransport with the provided implementation. The returned DashboardsServerTransport instance is connected to an instance of armportal.DashboardsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DashboardsServerTransport) Do

Do implements the policy.Transporter interface for DashboardsServerTransport.

type ListTenantConfigurationViolationsServer

type ListTenantConfigurationViolationsServer struct {
	// NewListPager is the fake for method ListTenantConfigurationViolationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armportal.ListTenantConfigurationViolationsClientListOptions) (resp azfake.PagerResponder[armportal.ListTenantConfigurationViolationsClientListResponse])
}

ListTenantConfigurationViolationsServer is a fake server for instances of the armportal.ListTenantConfigurationViolationsClient type.

type ListTenantConfigurationViolationsServerTransport

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

ListTenantConfigurationViolationsServerTransport connects instances of armportal.ListTenantConfigurationViolationsClient to instances of ListTenantConfigurationViolationsServer. Don't use this type directly, use NewListTenantConfigurationViolationsServerTransport instead.

func NewListTenantConfigurationViolationsServerTransport

func NewListTenantConfigurationViolationsServerTransport(srv *ListTenantConfigurationViolationsServer) *ListTenantConfigurationViolationsServerTransport

NewListTenantConfigurationViolationsServerTransport creates a new instance of ListTenantConfigurationViolationsServerTransport with the provided implementation. The returned ListTenantConfigurationViolationsServerTransport instance is connected to an instance of armportal.ListTenantConfigurationViolationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ListTenantConfigurationViolationsServerTransport) Do

Do implements the policy.Transporter interface for ListTenantConfigurationViolationsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armportal.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 armportal.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 {
	DashboardsServer                        DashboardsServer
	ListTenantConfigurationViolationsServer ListTenantConfigurationViolationsServer
	OperationsServer                        OperationsServer
	TenantConfigurationsServer              TenantConfigurationsServer
}

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

type ServerFactoryTransport

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

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

type TenantConfigurationsServer struct {
	// Create is the fake for method TenantConfigurationsClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, configurationName armportal.ConfigurationName, tenantConfiguration armportal.Configuration, options *armportal.TenantConfigurationsClientCreateOptions) (resp azfake.Responder[armportal.TenantConfigurationsClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method TenantConfigurationsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, configurationName armportal.ConfigurationName, options *armportal.TenantConfigurationsClientDeleteOptions) (resp azfake.Responder[armportal.TenantConfigurationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method TenantConfigurationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNotFound
	Get func(ctx context.Context, configurationName armportal.ConfigurationName, options *armportal.TenantConfigurationsClientGetOptions) (resp azfake.Responder[armportal.TenantConfigurationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method TenantConfigurationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armportal.TenantConfigurationsClientListOptions) (resp azfake.PagerResponder[armportal.TenantConfigurationsClientListResponse])
}

TenantConfigurationsServer is a fake server for instances of the armportal.TenantConfigurationsClient type.

type TenantConfigurationsServerTransport

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

TenantConfigurationsServerTransport connects instances of armportal.TenantConfigurationsClient to instances of TenantConfigurationsServer. Don't use this type directly, use NewTenantConfigurationsServerTransport instead.

func NewTenantConfigurationsServerTransport

func NewTenantConfigurationsServerTransport(srv *TenantConfigurationsServer) *TenantConfigurationsServerTransport

NewTenantConfigurationsServerTransport creates a new instance of TenantConfigurationsServerTransport with the provided implementation. The returned TenantConfigurationsServerTransport instance is connected to an instance of armportal.TenantConfigurationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TenantConfigurationsServerTransport) Do

Do implements the policy.Transporter interface for TenantConfigurationsServerTransport.

Jump to

Keyboard shortcuts

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