fake

package
v1.2.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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkerServer

type LinkerServer struct {
	// BeginCreateOrUpdate is the fake for method LinkerClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceURI string, linkerName string, parameters armservicelinker.LinkerResource, options *armservicelinker.LinkerClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method LinkerClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientBeginDeleteOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method LinkerClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientGetOptions) (resp azfake.Responder[armservicelinker.LinkerClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method LinkerClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceURI string, options *armservicelinker.LinkerClientListOptions) (resp azfake.PagerResponder[armservicelinker.LinkerClientListResponse])

	// ListConfigurations is the fake for method LinkerClient.ListConfigurations
	// HTTP status codes to indicate success: http.StatusOK
	ListConfigurations func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientListConfigurationsOptions) (resp azfake.Responder[armservicelinker.LinkerClientListConfigurationsResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method LinkerClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceURI string, linkerName string, parameters armservicelinker.LinkerPatch, options *armservicelinker.LinkerClientBeginUpdateOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientUpdateResponse], errResp azfake.ErrorResponder)

	// BeginValidate is the fake for method LinkerClient.BeginValidate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginValidate func(ctx context.Context, resourceURI string, linkerName string, options *armservicelinker.LinkerClientBeginValidateOptions) (resp azfake.PollerResponder[armservicelinker.LinkerClientValidateResponse], errResp azfake.ErrorResponder)
}

LinkerServer is a fake server for instances of the armservicelinker.LinkerClient type.

type LinkerServerTransport

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

LinkerServerTransport connects instances of armservicelinker.LinkerClient to instances of LinkerServer. Don't use this type directly, use NewLinkerServerTransport instead.

func NewLinkerServerTransport

func NewLinkerServerTransport(srv *LinkerServer) *LinkerServerTransport

NewLinkerServerTransport creates a new instance of LinkerServerTransport with the provided implementation. The returned LinkerServerTransport instance is connected to an instance of armservicelinker.LinkerClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LinkerServerTransport) Do

Do implements the policy.Transporter interface for LinkerServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armservicelinker.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 armservicelinker.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 {
	LinkerServer     LinkerServer
	OperationsServer OperationsServer
}

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

type ServerFactoryTransport

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

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