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 ContainersServer

type ContainersServer struct {
	// Delete is the fake for method ContainersClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroup string, fluidRelayServerName string, fluidRelayContainerName string, options *armfluidrelay.ContainersClientDeleteOptions) (resp azfake.Responder[armfluidrelay.ContainersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ContainersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroup string, fluidRelayServerName string, fluidRelayContainerName string, options *armfluidrelay.ContainersClientGetOptions) (resp azfake.Responder[armfluidrelay.ContainersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByFluidRelayServersPager is the fake for method ContainersClient.NewListByFluidRelayServersPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFluidRelayServersPager func(resourceGroup string, fluidRelayServerName string, options *armfluidrelay.ContainersClientListByFluidRelayServersOptions) (resp azfake.PagerResponder[armfluidrelay.ContainersClientListByFluidRelayServersResponse])
}

ContainersServer is a fake server for instances of the armfluidrelay.ContainersClient type.

type ContainersServerTransport

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

ContainersServerTransport connects instances of armfluidrelay.ContainersClient to instances of ContainersServer. Don't use this type directly, use NewContainersServerTransport instead.

func NewContainersServerTransport

func NewContainersServerTransport(srv *ContainersServer) *ContainersServerTransport

NewContainersServerTransport creates a new instance of ContainersServerTransport with the provided implementation. The returned ContainersServerTransport instance is connected to an instance of armfluidrelay.ContainersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ContainersServerTransport) Do

Do implements the policy.Transporter interface for ContainersServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armfluidrelay.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 armfluidrelay.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 {
	ContainersServer ContainersServer
	OperationsServer OperationsServer
	ServersServer    ServersServer
}

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

type ServerFactoryTransport

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

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

type ServersServer struct {
	// CreateOrUpdate is the fake for method ServersClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroup string, fluidRelayServerName string, resource armfluidrelay.Server, options *armfluidrelay.ServersClientCreateOrUpdateOptions) (resp azfake.Responder[armfluidrelay.ServersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ServersClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroup string, fluidRelayServerName string, options *armfluidrelay.ServersClientDeleteOptions) (resp azfake.Responder[armfluidrelay.ServersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroup string, fluidRelayServerName string, options *armfluidrelay.ServersClientGetOptions) (resp azfake.Responder[armfluidrelay.ServersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ServersClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroup string, options *armfluidrelay.ServersClientListByResourceGroupOptions) (resp azfake.PagerResponder[armfluidrelay.ServersClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ServersClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armfluidrelay.ServersClientListBySubscriptionOptions) (resp azfake.PagerResponder[armfluidrelay.ServersClientListBySubscriptionResponse])

	// ListKeys is the fake for method ServersClient.ListKeys
	// HTTP status codes to indicate success: http.StatusOK
	ListKeys func(ctx context.Context, resourceGroup string, fluidRelayServerName string, options *armfluidrelay.ServersClientListKeysOptions) (resp azfake.Responder[armfluidrelay.ServersClientListKeysResponse], errResp azfake.ErrorResponder)

	// RegenerateKey is the fake for method ServersClient.RegenerateKey
	// HTTP status codes to indicate success: http.StatusOK
	RegenerateKey func(ctx context.Context, resourceGroup string, fluidRelayServerName string, parameters armfluidrelay.RegenerateKeyRequest, options *armfluidrelay.ServersClientRegenerateKeyOptions) (resp azfake.Responder[armfluidrelay.ServersClientRegenerateKeyResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method ServersClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroup string, fluidRelayServerName string, resource armfluidrelay.ServerUpdate, options *armfluidrelay.ServersClientUpdateOptions) (resp azfake.Responder[armfluidrelay.ServersClientUpdateResponse], errResp azfake.ErrorResponder)
}

ServersServer is a fake server for instances of the armfluidrelay.ServersClient type.

type ServersServerTransport

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

ServersServerTransport connects instances of armfluidrelay.ServersClient to instances of ServersServer. Don't use this type directly, use NewServersServerTransport instead.

func NewServersServerTransport

func NewServersServerTransport(srv *ServersServer) *ServersServerTransport

NewServersServerTransport creates a new instance of ServersServerTransport with the provided implementation. The returned ServersServerTransport instance is connected to an instance of armfluidrelay.ServersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServersServerTransport) Do

Do implements the policy.Transporter interface for ServersServerTransport.

Jump to

Keyboard shortcuts

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