fake

package
v1.1.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 FileSystemsServer

type FileSystemsServer struct {
	// BeginCreateOrUpdate is the fake for method FileSystemsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, fileSystemName string, resource armqumulo.FileSystemResource, options *armqumulo.FileSystemsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armqumulo.FileSystemsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method FileSystemsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, fileSystemName string, options *armqumulo.FileSystemsClientBeginDeleteOptions) (resp azfake.PollerResponder[armqumulo.FileSystemsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method FileSystemsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, fileSystemName string, options *armqumulo.FileSystemsClientGetOptions) (resp azfake.Responder[armqumulo.FileSystemsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method FileSystemsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armqumulo.FileSystemsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armqumulo.FileSystemsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method FileSystemsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armqumulo.FileSystemsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armqumulo.FileSystemsClientListBySubscriptionResponse])

	// Update is the fake for method FileSystemsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, fileSystemName string, properties armqumulo.FileSystemResourceUpdate, options *armqumulo.FileSystemsClientUpdateOptions) (resp azfake.Responder[armqumulo.FileSystemsClientUpdateResponse], errResp azfake.ErrorResponder)
}

FileSystemsServer is a fake server for instances of the armqumulo.FileSystemsClient type.

type FileSystemsServerTransport

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

FileSystemsServerTransport connects instances of armqumulo.FileSystemsClient to instances of FileSystemsServer. Don't use this type directly, use NewFileSystemsServerTransport instead.

func NewFileSystemsServerTransport

func NewFileSystemsServerTransport(srv *FileSystemsServer) *FileSystemsServerTransport

NewFileSystemsServerTransport creates a new instance of FileSystemsServerTransport with the provided implementation. The returned FileSystemsServerTransport instance is connected to an instance of armqumulo.FileSystemsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*FileSystemsServerTransport) Do

Do implements the policy.Transporter interface for FileSystemsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

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

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

type ServerFactoryTransport

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

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