fake

package
v0.3.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 RateCardServer

type RateCardServer struct {
	// Get is the fake for method RateCardClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, filter string, options *armcommerce.RateCardClientGetOptions) (resp azfake.Responder[armcommerce.RateCardClientGetResponse], errResp azfake.ErrorResponder)
}

RateCardServer is a fake server for instances of the armcommerce.RateCardClient type.

type RateCardServerTransport

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

RateCardServerTransport connects instances of armcommerce.RateCardClient to instances of RateCardServer. Don't use this type directly, use NewRateCardServerTransport instead.

func NewRateCardServerTransport

func NewRateCardServerTransport(srv *RateCardServer) *RateCardServerTransport

NewRateCardServerTransport creates a new instance of RateCardServerTransport with the provided implementation. The returned RateCardServerTransport instance is connected to an instance of armcommerce.RateCardClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RateCardServerTransport) Do

Do implements the policy.Transporter interface for RateCardServerTransport.

type ServerFactory

type ServerFactory struct {
	RateCardServer        RateCardServer
	UsageAggregatesServer UsageAggregatesServer
}

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

type ServerFactoryTransport

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

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

type UsageAggregatesServer struct {
	// NewListPager is the fake for method UsageAggregatesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(reportedStartTime time.Time, reportedEndTime time.Time, options *armcommerce.UsageAggregatesClientListOptions) (resp azfake.PagerResponder[armcommerce.UsageAggregatesClientListResponse])
}

UsageAggregatesServer is a fake server for instances of the armcommerce.UsageAggregatesClient type.

type UsageAggregatesServerTransport

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

UsageAggregatesServerTransport connects instances of armcommerce.UsageAggregatesClient to instances of UsageAggregatesServer. Don't use this type directly, use NewUsageAggregatesServerTransport instead.

func NewUsageAggregatesServerTransport

func NewUsageAggregatesServerTransport(srv *UsageAggregatesServer) *UsageAggregatesServerTransport

NewUsageAggregatesServerTransport creates a new instance of UsageAggregatesServerTransport with the provided implementation. The returned UsageAggregatesServerTransport instance is connected to an instance of armcommerce.UsageAggregatesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*UsageAggregatesServerTransport) Do

Do implements the policy.Transporter interface for UsageAggregatesServerTransport.

Jump to

Keyboard shortcuts

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