fake

package
v0.7.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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitLockerKeysServer

type BitLockerKeysServer struct {
	// NewListPager is the fake for method BitLockerKeysClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(jobName string, resourceGroupName string, options *armstorageimportexport.BitLockerKeysClientListOptions) (resp azfake.PagerResponder[armstorageimportexport.BitLockerKeysClientListResponse])
}

BitLockerKeysServer is a fake server for instances of the armstorageimportexport.BitLockerKeysClient type.

type BitLockerKeysServerTransport

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

BitLockerKeysServerTransport connects instances of armstorageimportexport.BitLockerKeysClient to instances of BitLockerKeysServer. Don't use this type directly, use NewBitLockerKeysServerTransport instead.

func NewBitLockerKeysServerTransport

func NewBitLockerKeysServerTransport(srv *BitLockerKeysServer) *BitLockerKeysServerTransport

NewBitLockerKeysServerTransport creates a new instance of BitLockerKeysServerTransport with the provided implementation. The returned BitLockerKeysServerTransport instance is connected to an instance of armstorageimportexport.BitLockerKeysClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*BitLockerKeysServerTransport) Do

Do implements the policy.Transporter interface for BitLockerKeysServerTransport.

type JobsServer

type JobsServer struct {
	// Create is the fake for method JobsClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, jobName string, resourceGroupName string, body armstorageimportexport.PutJobParameters, options *armstorageimportexport.JobsClientCreateOptions) (resp azfake.Responder[armstorageimportexport.JobsClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method JobsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK
	Delete func(ctx context.Context, jobName string, resourceGroupName string, options *armstorageimportexport.JobsClientDeleteOptions) (resp azfake.Responder[armstorageimportexport.JobsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method JobsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, jobName string, resourceGroupName string, options *armstorageimportexport.JobsClientGetOptions) (resp azfake.Responder[armstorageimportexport.JobsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method JobsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armstorageimportexport.JobsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armstorageimportexport.JobsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method JobsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armstorageimportexport.JobsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armstorageimportexport.JobsClientListBySubscriptionResponse])

	// Update is the fake for method JobsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, jobName string, resourceGroupName string, body armstorageimportexport.UpdateJobParameters, options *armstorageimportexport.JobsClientUpdateOptions) (resp azfake.Responder[armstorageimportexport.JobsClientUpdateResponse], errResp azfake.ErrorResponder)
}

JobsServer is a fake server for instances of the armstorageimportexport.JobsClient type.

type JobsServerTransport

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

JobsServerTransport connects instances of armstorageimportexport.JobsClient to instances of JobsServer. Don't use this type directly, use NewJobsServerTransport instead.

func NewJobsServerTransport

func NewJobsServerTransport(srv *JobsServer) *JobsServerTransport

NewJobsServerTransport creates a new instance of JobsServerTransport with the provided implementation. The returned JobsServerTransport instance is connected to an instance of armstorageimportexport.JobsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*JobsServerTransport) Do

Do implements the policy.Transporter interface for JobsServerTransport.

type LocationsServer

type LocationsServer struct {
	// Get is the fake for method LocationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, locationName string, options *armstorageimportexport.LocationsClientGetOptions) (resp azfake.Responder[armstorageimportexport.LocationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method LocationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armstorageimportexport.LocationsClientListOptions) (resp azfake.PagerResponder[armstorageimportexport.LocationsClientListResponse])
}

LocationsServer is a fake server for instances of the armstorageimportexport.LocationsClient type.

type LocationsServerTransport

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

LocationsServerTransport connects instances of armstorageimportexport.LocationsClient to instances of LocationsServer. Don't use this type directly, use NewLocationsServerTransport instead.

func NewLocationsServerTransport

func NewLocationsServerTransport(srv *LocationsServer) *LocationsServerTransport

NewLocationsServerTransport creates a new instance of LocationsServerTransport with the provided implementation. The returned LocationsServerTransport instance is connected to an instance of armstorageimportexport.LocationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LocationsServerTransport) Do

Do implements the policy.Transporter interface for LocationsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armstorageimportexport.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 armstorageimportexport.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 {
	BitLockerKeysServer BitLockerKeysServer
	JobsServer          JobsServer
	LocationsServer     LocationsServer
	OperationsServer    OperationsServer
}

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

type ServerFactoryTransport

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

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