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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armlinks.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 armlinks.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 ResourceLinksServer

type ResourceLinksServer struct {
	// CreateOrUpdate is the fake for method ResourceLinksClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, linkID string, parameters armlinks.ResourceLink, options *armlinks.ResourceLinksClientCreateOrUpdateOptions) (resp azfake.Responder[armlinks.ResourceLinksClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ResourceLinksClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, linkID string, options *armlinks.ResourceLinksClientDeleteOptions) (resp azfake.Responder[armlinks.ResourceLinksClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ResourceLinksClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, linkID string, options *armlinks.ResourceLinksClientGetOptions) (resp azfake.Responder[armlinks.ResourceLinksClientGetResponse], errResp azfake.ErrorResponder)

	// NewListAtSourceScopePager is the fake for method ResourceLinksClient.NewListAtSourceScopePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAtSourceScopePager func(scope string, options *armlinks.ResourceLinksClientListAtSourceScopeOptions) (resp azfake.PagerResponder[armlinks.ResourceLinksClientListAtSourceScopeResponse])

	// NewListAtSubscriptionPager is the fake for method ResourceLinksClient.NewListAtSubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAtSubscriptionPager func(options *armlinks.ResourceLinksClientListAtSubscriptionOptions) (resp azfake.PagerResponder[armlinks.ResourceLinksClientListAtSubscriptionResponse])
}

ResourceLinksServer is a fake server for instances of the armlinks.ResourceLinksClient type.

type ResourceLinksServerTransport

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

ResourceLinksServerTransport connects instances of armlinks.ResourceLinksClient to instances of ResourceLinksServer. Don't use this type directly, use NewResourceLinksServerTransport instead.

func NewResourceLinksServerTransport

func NewResourceLinksServerTransport(srv *ResourceLinksServer) *ResourceLinksServerTransport

NewResourceLinksServerTransport creates a new instance of ResourceLinksServerTransport with the provided implementation. The returned ResourceLinksServerTransport instance is connected to an instance of armlinks.ResourceLinksClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ResourceLinksServerTransport) Do

Do implements the policy.Transporter interface for ResourceLinksServerTransport.

type ServerFactory

type ServerFactory struct {
	OperationsServer    OperationsServer
	ResourceLinksServer ResourceLinksServer
}

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

type ServerFactoryTransport

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

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