fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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 CapabilitiesServer

type CapabilitiesServer struct {
	// CreateOrUpdate is the fake for method CapabilitiesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, capabilityName string, capability armchaos.Capability, options *armchaos.CapabilitiesClientCreateOrUpdateOptions) (resp azfake.Responder[armchaos.CapabilitiesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method CapabilitiesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, capabilityName string, options *armchaos.CapabilitiesClientDeleteOptions) (resp azfake.Responder[armchaos.CapabilitiesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method CapabilitiesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, capabilityName string, options *armchaos.CapabilitiesClientGetOptions) (resp azfake.Responder[armchaos.CapabilitiesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method CapabilitiesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, options *armchaos.CapabilitiesClientListOptions) (resp azfake.PagerResponder[armchaos.CapabilitiesClientListResponse])
}

CapabilitiesServer is a fake server for instances of the armchaos.CapabilitiesClient type.

type CapabilitiesServerTransport

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

CapabilitiesServerTransport connects instances of armchaos.CapabilitiesClient to instances of CapabilitiesServer. Don't use this type directly, use NewCapabilitiesServerTransport instead.

func NewCapabilitiesServerTransport

func NewCapabilitiesServerTransport(srv *CapabilitiesServer) *CapabilitiesServerTransport

NewCapabilitiesServerTransport creates a new instance of CapabilitiesServerTransport with the provided implementation. The returned CapabilitiesServerTransport instance is connected to an instance of armchaos.CapabilitiesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CapabilitiesServerTransport) Do

Do implements the policy.Transporter interface for CapabilitiesServerTransport.

type CapabilityTypesServer

type CapabilityTypesServer struct {
	// Get is the fake for method CapabilityTypesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, locationName string, targetTypeName string, capabilityTypeName string, options *armchaos.CapabilityTypesClientGetOptions) (resp azfake.Responder[armchaos.CapabilityTypesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method CapabilityTypesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(locationName string, targetTypeName string, options *armchaos.CapabilityTypesClientListOptions) (resp azfake.PagerResponder[armchaos.CapabilityTypesClientListResponse])
}

CapabilityTypesServer is a fake server for instances of the armchaos.CapabilityTypesClient type.

type CapabilityTypesServerTransport

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

CapabilityTypesServerTransport connects instances of armchaos.CapabilityTypesClient to instances of CapabilityTypesServer. Don't use this type directly, use NewCapabilityTypesServerTransport instead.

func NewCapabilityTypesServerTransport

func NewCapabilityTypesServerTransport(srv *CapabilityTypesServer) *CapabilityTypesServerTransport

NewCapabilityTypesServerTransport creates a new instance of CapabilityTypesServerTransport with the provided implementation. The returned CapabilityTypesServerTransport instance is connected to an instance of armchaos.CapabilityTypesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CapabilityTypesServerTransport) Do

Do implements the policy.Transporter interface for CapabilityTypesServerTransport.

type ExperimentsServer

type ExperimentsServer struct {
	// BeginCancel is the fake for method ExperimentsClient.BeginCancel
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginCancel func(ctx context.Context, resourceGroupName string, experimentName string, options *armchaos.ExperimentsClientBeginCancelOptions) (resp azfake.PollerResponder[armchaos.ExperimentsClientCancelResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method ExperimentsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, experimentName string, experiment armchaos.Experiment, options *armchaos.ExperimentsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armchaos.ExperimentsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ExperimentsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginDelete func(ctx context.Context, resourceGroupName string, experimentName string, options *armchaos.ExperimentsClientBeginDeleteOptions) (resp azfake.PollerResponder[armchaos.ExperimentsClientDeleteResponse], errResp azfake.ErrorResponder)

	// ExecutionDetails is the fake for method ExperimentsClient.ExecutionDetails
	// HTTP status codes to indicate success: http.StatusOK
	ExecutionDetails func(ctx context.Context, resourceGroupName string, experimentName string, executionID string, options *armchaos.ExperimentsClientExecutionDetailsOptions) (resp azfake.Responder[armchaos.ExperimentsClientExecutionDetailsResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ExperimentsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, experimentName string, options *armchaos.ExperimentsClientGetOptions) (resp azfake.Responder[armchaos.ExperimentsClientGetResponse], errResp azfake.ErrorResponder)

	// GetExecution is the fake for method ExperimentsClient.GetExecution
	// HTTP status codes to indicate success: http.StatusOK
	GetExecution func(ctx context.Context, resourceGroupName string, experimentName string, executionID string, options *armchaos.ExperimentsClientGetExecutionOptions) (resp azfake.Responder[armchaos.ExperimentsClientGetExecutionResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ExperimentsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, options *armchaos.ExperimentsClientListOptions) (resp azfake.PagerResponder[armchaos.ExperimentsClientListResponse])

	// NewListAllPager is the fake for method ExperimentsClient.NewListAllPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAllPager func(options *armchaos.ExperimentsClientListAllOptions) (resp azfake.PagerResponder[armchaos.ExperimentsClientListAllResponse])

	// NewListAllExecutionsPager is the fake for method ExperimentsClient.NewListAllExecutionsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAllExecutionsPager func(resourceGroupName string, experimentName string, options *armchaos.ExperimentsClientListAllExecutionsOptions) (resp azfake.PagerResponder[armchaos.ExperimentsClientListAllExecutionsResponse])

	// BeginStart is the fake for method ExperimentsClient.BeginStart
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginStart func(ctx context.Context, resourceGroupName string, experimentName string, options *armchaos.ExperimentsClientBeginStartOptions) (resp azfake.PollerResponder[armchaos.ExperimentsClientStartResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method ExperimentsClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, experimentName string, experiment armchaos.ExperimentUpdate, options *armchaos.ExperimentsClientBeginUpdateOptions) (resp azfake.PollerResponder[armchaos.ExperimentsClientUpdateResponse], errResp azfake.ErrorResponder)
}

ExperimentsServer is a fake server for instances of the armchaos.ExperimentsClient type.

type ExperimentsServerTransport

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

ExperimentsServerTransport connects instances of armchaos.ExperimentsClient to instances of ExperimentsServer. Don't use this type directly, use NewExperimentsServerTransport instead.

func NewExperimentsServerTransport

func NewExperimentsServerTransport(srv *ExperimentsServer) *ExperimentsServerTransport

NewExperimentsServerTransport creates a new instance of ExperimentsServerTransport with the provided implementation. The returned ExperimentsServerTransport instance is connected to an instance of armchaos.ExperimentsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ExperimentsServerTransport) Do

Do implements the policy.Transporter interface for ExperimentsServerTransport.

type OperationStatusesServer

type OperationStatusesServer struct {
	// Get is the fake for method OperationStatusesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, location string, asyncOperationID string, options *armchaos.OperationStatusesClientGetOptions) (resp azfake.Responder[armchaos.OperationStatusesClientGetResponse], errResp azfake.ErrorResponder)
}

OperationStatusesServer is a fake server for instances of the armchaos.OperationStatusesClient type.

type OperationStatusesServerTransport

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

OperationStatusesServerTransport connects instances of armchaos.OperationStatusesClient to instances of OperationStatusesServer. Don't use this type directly, use NewOperationStatusesServerTransport instead.

func NewOperationStatusesServerTransport

func NewOperationStatusesServerTransport(srv *OperationStatusesServer) *OperationStatusesServerTransport

NewOperationStatusesServerTransport creates a new instance of OperationStatusesServerTransport with the provided implementation. The returned OperationStatusesServerTransport instance is connected to an instance of armchaos.OperationStatusesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationStatusesServerTransport) Do

Do implements the policy.Transporter interface for OperationStatusesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armchaos.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 armchaos.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 {
	CapabilitiesServer      CapabilitiesServer
	CapabilityTypesServer   CapabilityTypesServer
	ExperimentsServer       ExperimentsServer
	OperationStatusesServer OperationStatusesServer
	OperationsServer        OperationsServer
	TargetTypesServer       TargetTypesServer
	TargetsServer           TargetsServer
}

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

type ServerFactoryTransport

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

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

type TargetTypesServer struct {
	// Get is the fake for method TargetTypesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, locationName string, targetTypeName string, options *armchaos.TargetTypesClientGetOptions) (resp azfake.Responder[armchaos.TargetTypesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method TargetTypesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(locationName string, options *armchaos.TargetTypesClientListOptions) (resp azfake.PagerResponder[armchaos.TargetTypesClientListResponse])
}

TargetTypesServer is a fake server for instances of the armchaos.TargetTypesClient type.

type TargetTypesServerTransport

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

TargetTypesServerTransport connects instances of armchaos.TargetTypesClient to instances of TargetTypesServer. Don't use this type directly, use NewTargetTypesServerTransport instead.

func NewTargetTypesServerTransport

func NewTargetTypesServerTransport(srv *TargetTypesServer) *TargetTypesServerTransport

NewTargetTypesServerTransport creates a new instance of TargetTypesServerTransport with the provided implementation. The returned TargetTypesServerTransport instance is connected to an instance of armchaos.TargetTypesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TargetTypesServerTransport) Do

Do implements the policy.Transporter interface for TargetTypesServerTransport.

type TargetsServer

type TargetsServer struct {
	// CreateOrUpdate is the fake for method TargetsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, target armchaos.Target, options *armchaos.TargetsClientCreateOrUpdateOptions) (resp azfake.Responder[armchaos.TargetsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method TargetsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, options *armchaos.TargetsClientDeleteOptions) (resp azfake.Responder[armchaos.TargetsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method TargetsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, targetName string, options *armchaos.TargetsClientGetOptions) (resp azfake.Responder[armchaos.TargetsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method TargetsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, parentProviderNamespace string, parentResourceType string, parentResourceName string, options *armchaos.TargetsClientListOptions) (resp azfake.PagerResponder[armchaos.TargetsClientListResponse])
}

TargetsServer is a fake server for instances of the armchaos.TargetsClient type.

type TargetsServerTransport

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

TargetsServerTransport connects instances of armchaos.TargetsClient to instances of TargetsServer. Don't use this type directly, use NewTargetsServerTransport instead.

func NewTargetsServerTransport

func NewTargetsServerTransport(srv *TargetsServer) *TargetsServerTransport

NewTargetsServerTransport creates a new instance of TargetsServerTransport with the provided implementation. The returned TargetsServerTransport instance is connected to an instance of armchaos.TargetsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TargetsServerTransport) Do

Do implements the policy.Transporter interface for TargetsServerTransport.

Jump to

Keyboard shortcuts

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