fake

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 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 OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armstandbypool.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 armstandbypool.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 {
	OperationsServer                 OperationsServer
	StandbyContainerGroupPoolsServer StandbyContainerGroupPoolsServer
	StandbyVirtualMachinePoolsServer StandbyVirtualMachinePoolsServer
	StandbyVirtualMachinesServer     StandbyVirtualMachinesServer
}

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

type ServerFactoryTransport

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

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

type StandbyContainerGroupPoolsServer struct {
	// BeginCreateOrUpdate is the fake for method StandbyContainerGroupPoolsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, standbyContainerGroupPoolName string, resource armstandbypool.StandbyContainerGroupPoolResource, options *armstandbypool.StandbyContainerGroupPoolsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armstandbypool.StandbyContainerGroupPoolsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method StandbyContainerGroupPoolsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, standbyContainerGroupPoolName string, options *armstandbypool.StandbyContainerGroupPoolsClientBeginDeleteOptions) (resp azfake.PollerResponder[armstandbypool.StandbyContainerGroupPoolsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method StandbyContainerGroupPoolsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, standbyContainerGroupPoolName string, options *armstandbypool.StandbyContainerGroupPoolsClientGetOptions) (resp azfake.Responder[armstandbypool.StandbyContainerGroupPoolsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method StandbyContainerGroupPoolsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armstandbypool.StandbyContainerGroupPoolsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armstandbypool.StandbyContainerGroupPoolsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method StandbyContainerGroupPoolsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armstandbypool.StandbyContainerGroupPoolsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armstandbypool.StandbyContainerGroupPoolsClientListBySubscriptionResponse])

	// Update is the fake for method StandbyContainerGroupPoolsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, standbyContainerGroupPoolName string, properties armstandbypool.StandbyContainerGroupPoolResourceUpdate, options *armstandbypool.StandbyContainerGroupPoolsClientUpdateOptions) (resp azfake.Responder[armstandbypool.StandbyContainerGroupPoolsClientUpdateResponse], errResp azfake.ErrorResponder)
}

StandbyContainerGroupPoolsServer is a fake server for instances of the armstandbypool.StandbyContainerGroupPoolsClient type.

type StandbyContainerGroupPoolsServerTransport

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

StandbyContainerGroupPoolsServerTransport connects instances of armstandbypool.StandbyContainerGroupPoolsClient to instances of StandbyContainerGroupPoolsServer. Don't use this type directly, use NewStandbyContainerGroupPoolsServerTransport instead.

func NewStandbyContainerGroupPoolsServerTransport

func NewStandbyContainerGroupPoolsServerTransport(srv *StandbyContainerGroupPoolsServer) *StandbyContainerGroupPoolsServerTransport

NewStandbyContainerGroupPoolsServerTransport creates a new instance of StandbyContainerGroupPoolsServerTransport with the provided implementation. The returned StandbyContainerGroupPoolsServerTransport instance is connected to an instance of armstandbypool.StandbyContainerGroupPoolsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*StandbyContainerGroupPoolsServerTransport) Do

Do implements the policy.Transporter interface for StandbyContainerGroupPoolsServerTransport.

type StandbyVirtualMachinePoolsServer

type StandbyVirtualMachinePoolsServer struct {
	// BeginCreateOrUpdate is the fake for method StandbyVirtualMachinePoolsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, standbyVirtualMachinePoolName string, resource armstandbypool.StandbyVirtualMachinePoolResource, options *armstandbypool.StandbyVirtualMachinePoolsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armstandbypool.StandbyVirtualMachinePoolsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method StandbyVirtualMachinePoolsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, standbyVirtualMachinePoolName string, options *armstandbypool.StandbyVirtualMachinePoolsClientBeginDeleteOptions) (resp azfake.PollerResponder[armstandbypool.StandbyVirtualMachinePoolsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method StandbyVirtualMachinePoolsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, standbyVirtualMachinePoolName string, options *armstandbypool.StandbyVirtualMachinePoolsClientGetOptions) (resp azfake.Responder[armstandbypool.StandbyVirtualMachinePoolsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method StandbyVirtualMachinePoolsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armstandbypool.StandbyVirtualMachinePoolsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armstandbypool.StandbyVirtualMachinePoolsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method StandbyVirtualMachinePoolsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armstandbypool.StandbyVirtualMachinePoolsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armstandbypool.StandbyVirtualMachinePoolsClientListBySubscriptionResponse])

	// Update is the fake for method StandbyVirtualMachinePoolsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, standbyVirtualMachinePoolName string, properties armstandbypool.StandbyVirtualMachinePoolResourceUpdate, options *armstandbypool.StandbyVirtualMachinePoolsClientUpdateOptions) (resp azfake.Responder[armstandbypool.StandbyVirtualMachinePoolsClientUpdateResponse], errResp azfake.ErrorResponder)
}

StandbyVirtualMachinePoolsServer is a fake server for instances of the armstandbypool.StandbyVirtualMachinePoolsClient type.

type StandbyVirtualMachinePoolsServerTransport

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

StandbyVirtualMachinePoolsServerTransport connects instances of armstandbypool.StandbyVirtualMachinePoolsClient to instances of StandbyVirtualMachinePoolsServer. Don't use this type directly, use NewStandbyVirtualMachinePoolsServerTransport instead.

func NewStandbyVirtualMachinePoolsServerTransport

func NewStandbyVirtualMachinePoolsServerTransport(srv *StandbyVirtualMachinePoolsServer) *StandbyVirtualMachinePoolsServerTransport

NewStandbyVirtualMachinePoolsServerTransport creates a new instance of StandbyVirtualMachinePoolsServerTransport with the provided implementation. The returned StandbyVirtualMachinePoolsServerTransport instance is connected to an instance of armstandbypool.StandbyVirtualMachinePoolsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*StandbyVirtualMachinePoolsServerTransport) Do

Do implements the policy.Transporter interface for StandbyVirtualMachinePoolsServerTransport.

type StandbyVirtualMachinesServer

type StandbyVirtualMachinesServer struct {
	// Get is the fake for method StandbyVirtualMachinesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, standbyVirtualMachinePoolName string, standbyVirtualMachineName string, options *armstandbypool.StandbyVirtualMachinesClientGetOptions) (resp azfake.Responder[armstandbypool.StandbyVirtualMachinesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByStandbyVirtualMachinePoolResourcePager is the fake for method StandbyVirtualMachinesClient.NewListByStandbyVirtualMachinePoolResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByStandbyVirtualMachinePoolResourcePager func(resourceGroupName string, standbyVirtualMachinePoolName string, options *armstandbypool.StandbyVirtualMachinesClientListByStandbyVirtualMachinePoolResourceOptions) (resp azfake.PagerResponder[armstandbypool.StandbyVirtualMachinesClientListByStandbyVirtualMachinePoolResourceResponse])
}

StandbyVirtualMachinesServer is a fake server for instances of the armstandbypool.StandbyVirtualMachinesClient type.

type StandbyVirtualMachinesServerTransport

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

StandbyVirtualMachinesServerTransport connects instances of armstandbypool.StandbyVirtualMachinesClient to instances of StandbyVirtualMachinesServer. Don't use this type directly, use NewStandbyVirtualMachinesServerTransport instead.

func NewStandbyVirtualMachinesServerTransport

func NewStandbyVirtualMachinesServerTransport(srv *StandbyVirtualMachinesServer) *StandbyVirtualMachinesServerTransport

NewStandbyVirtualMachinesServerTransport creates a new instance of StandbyVirtualMachinesServerTransport with the provided implementation. The returned StandbyVirtualMachinesServerTransport instance is connected to an instance of armstandbypool.StandbyVirtualMachinesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*StandbyVirtualMachinesServerTransport) Do

Do implements the policy.Transporter interface for StandbyVirtualMachinesServerTransport.

Jump to

Keyboard shortcuts

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