fake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 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 contains the fakes for client OperationsClient
	OperationsServer OperationsServer

	// StandbyContainerGroupPoolRuntimeViewsServer contains the fakes for client StandbyContainerGroupPoolRuntimeViewsClient
	StandbyContainerGroupPoolRuntimeViewsServer StandbyContainerGroupPoolRuntimeViewsServer

	// StandbyContainerGroupPoolsServer contains the fakes for client StandbyContainerGroupPoolsClient
	StandbyContainerGroupPoolsServer StandbyContainerGroupPoolsServer

	// StandbyVirtualMachinePoolRuntimeViewsServer contains the fakes for client StandbyVirtualMachinePoolRuntimeViewsClient
	StandbyVirtualMachinePoolRuntimeViewsServer StandbyVirtualMachinePoolRuntimeViewsServer

	// StandbyVirtualMachinePoolsServer contains the fakes for client StandbyVirtualMachinePoolsClient
	StandbyVirtualMachinePoolsServer StandbyVirtualMachinePoolsServer

	// StandbyVirtualMachinesServer contains the fakes for client StandbyVirtualMachinesClient
	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 StandbyContainerGroupPoolRuntimeViewsServer added in v1.0.0

type StandbyContainerGroupPoolRuntimeViewsServer struct {
	// Get is the fake for method StandbyContainerGroupPoolRuntimeViewsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, standbyContainerGroupPoolName string, runtimeView string, options *armstandbypool.StandbyContainerGroupPoolRuntimeViewsClientGetOptions) (resp azfake.Responder[armstandbypool.StandbyContainerGroupPoolRuntimeViewsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByStandbyPoolPager is the fake for method StandbyContainerGroupPoolRuntimeViewsClient.NewListByStandbyPoolPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByStandbyPoolPager func(resourceGroupName string, standbyContainerGroupPoolName string, options *armstandbypool.StandbyContainerGroupPoolRuntimeViewsClientListByStandbyPoolOptions) (resp azfake.PagerResponder[armstandbypool.StandbyContainerGroupPoolRuntimeViewsClientListByStandbyPoolResponse])
}

StandbyContainerGroupPoolRuntimeViewsServer is a fake server for instances of the armstandbypool.StandbyContainerGroupPoolRuntimeViewsClient type.

type StandbyContainerGroupPoolRuntimeViewsServerTransport added in v1.0.0

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

StandbyContainerGroupPoolRuntimeViewsServerTransport connects instances of armstandbypool.StandbyContainerGroupPoolRuntimeViewsClient to instances of StandbyContainerGroupPoolRuntimeViewsServer. Don't use this type directly, use NewStandbyContainerGroupPoolRuntimeViewsServerTransport instead.

func NewStandbyContainerGroupPoolRuntimeViewsServerTransport added in v1.0.0

func NewStandbyContainerGroupPoolRuntimeViewsServerTransport(srv *StandbyContainerGroupPoolRuntimeViewsServer) *StandbyContainerGroupPoolRuntimeViewsServerTransport

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

func (*StandbyContainerGroupPoolRuntimeViewsServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for StandbyContainerGroupPoolRuntimeViewsServerTransport.

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 StandbyVirtualMachinePoolRuntimeViewsServer added in v1.0.0

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

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

StandbyVirtualMachinePoolRuntimeViewsServer is a fake server for instances of the armstandbypool.StandbyVirtualMachinePoolRuntimeViewsClient type.

type StandbyVirtualMachinePoolRuntimeViewsServerTransport added in v1.0.0

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

StandbyVirtualMachinePoolRuntimeViewsServerTransport connects instances of armstandbypool.StandbyVirtualMachinePoolRuntimeViewsClient to instances of StandbyVirtualMachinePoolRuntimeViewsServer. Don't use this type directly, use NewStandbyVirtualMachinePoolRuntimeViewsServerTransport instead.

func NewStandbyVirtualMachinePoolRuntimeViewsServerTransport added in v1.0.0

func NewStandbyVirtualMachinePoolRuntimeViewsServerTransport(srv *StandbyVirtualMachinePoolRuntimeViewsServer) *StandbyVirtualMachinePoolRuntimeViewsServerTransport

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

func (*StandbyVirtualMachinePoolRuntimeViewsServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for StandbyVirtualMachinePoolRuntimeViewsServerTransport.

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