fake

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 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 ContainerGroupsServer

type ContainerGroupsServer struct {
	// BeginCreateOrUpdate is the fake for method ContainerGroupsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, containerGroupName string, containerGroup armcontainerinstance.ContainerGroup, options *armcontainerinstance.ContainerGroupsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcontainerinstance.ContainerGroupsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ContainerGroupsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, containerGroupName string, options *armcontainerinstance.ContainerGroupsClientBeginDeleteOptions) (resp azfake.PollerResponder[armcontainerinstance.ContainerGroupsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ContainerGroupsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, containerGroupName string, options *armcontainerinstance.ContainerGroupsClientGetOptions) (resp azfake.Responder[armcontainerinstance.ContainerGroupsClientGetResponse], errResp azfake.ErrorResponder)

	// GetOutboundNetworkDependenciesEndpoints is the fake for method ContainerGroupsClient.GetOutboundNetworkDependenciesEndpoints
	// HTTP status codes to indicate success: http.StatusOK
	GetOutboundNetworkDependenciesEndpoints func(ctx context.Context, resourceGroupName string, containerGroupName string, options *armcontainerinstance.ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsOptions) (resp azfake.Responder[armcontainerinstance.ContainerGroupsClientGetOutboundNetworkDependenciesEndpointsResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ContainerGroupsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armcontainerinstance.ContainerGroupsClientListOptions) (resp azfake.PagerResponder[armcontainerinstance.ContainerGroupsClientListResponse])

	// NewListByResourceGroupPager is the fake for method ContainerGroupsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armcontainerinstance.ContainerGroupsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armcontainerinstance.ContainerGroupsClientListByResourceGroupResponse])

	// BeginRestart is the fake for method ContainerGroupsClient.BeginRestart
	// HTTP status codes to indicate success: http.StatusNoContent
	BeginRestart func(ctx context.Context, resourceGroupName string, containerGroupName string, options *armcontainerinstance.ContainerGroupsClientBeginRestartOptions) (resp azfake.PollerResponder[armcontainerinstance.ContainerGroupsClientRestartResponse], errResp azfake.ErrorResponder)

	// BeginStart is the fake for method ContainerGroupsClient.BeginStart
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginStart func(ctx context.Context, resourceGroupName string, containerGroupName string, options *armcontainerinstance.ContainerGroupsClientBeginStartOptions) (resp azfake.PollerResponder[armcontainerinstance.ContainerGroupsClientStartResponse], errResp azfake.ErrorResponder)

	// Stop is the fake for method ContainerGroupsClient.Stop
	// HTTP status codes to indicate success: http.StatusNoContent
	Stop func(ctx context.Context, resourceGroupName string, containerGroupName string, options *armcontainerinstance.ContainerGroupsClientStopOptions) (resp azfake.Responder[armcontainerinstance.ContainerGroupsClientStopResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method ContainerGroupsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, containerGroupName string, resource armcontainerinstance.Resource, options *armcontainerinstance.ContainerGroupsClientUpdateOptions) (resp azfake.Responder[armcontainerinstance.ContainerGroupsClientUpdateResponse], errResp azfake.ErrorResponder)
}

ContainerGroupsServer is a fake server for instances of the armcontainerinstance.ContainerGroupsClient type.

type ContainerGroupsServerTransport

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

ContainerGroupsServerTransport connects instances of armcontainerinstance.ContainerGroupsClient to instances of ContainerGroupsServer. Don't use this type directly, use NewContainerGroupsServerTransport instead.

func NewContainerGroupsServerTransport

func NewContainerGroupsServerTransport(srv *ContainerGroupsServer) *ContainerGroupsServerTransport

NewContainerGroupsServerTransport creates a new instance of ContainerGroupsServerTransport with the provided implementation. The returned ContainerGroupsServerTransport instance is connected to an instance of armcontainerinstance.ContainerGroupsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ContainerGroupsServerTransport) Do

Do implements the policy.Transporter interface for ContainerGroupsServerTransport.

type ContainersServer

type ContainersServer struct {
	// Attach is the fake for method ContainersClient.Attach
	// HTTP status codes to indicate success: http.StatusOK
	Attach func(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, options *armcontainerinstance.ContainersClientAttachOptions) (resp azfake.Responder[armcontainerinstance.ContainersClientAttachResponse], errResp azfake.ErrorResponder)

	// ExecuteCommand is the fake for method ContainersClient.ExecuteCommand
	// HTTP status codes to indicate success: http.StatusOK
	ExecuteCommand func(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, containerExecRequest armcontainerinstance.ContainerExecRequest, options *armcontainerinstance.ContainersClientExecuteCommandOptions) (resp azfake.Responder[armcontainerinstance.ContainersClientExecuteCommandResponse], errResp azfake.ErrorResponder)

	// ListLogs is the fake for method ContainersClient.ListLogs
	// HTTP status codes to indicate success: http.StatusOK
	ListLogs func(ctx context.Context, resourceGroupName string, containerGroupName string, containerName string, options *armcontainerinstance.ContainersClientListLogsOptions) (resp azfake.Responder[armcontainerinstance.ContainersClientListLogsResponse], errResp azfake.ErrorResponder)
}

ContainersServer is a fake server for instances of the armcontainerinstance.ContainersClient type.

type ContainersServerTransport

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

ContainersServerTransport connects instances of armcontainerinstance.ContainersClient to instances of ContainersServer. Don't use this type directly, use NewContainersServerTransport instead.

func NewContainersServerTransport

func NewContainersServerTransport(srv *ContainersServer) *ContainersServerTransport

NewContainersServerTransport creates a new instance of ContainersServerTransport with the provided implementation. The returned ContainersServerTransport instance is connected to an instance of armcontainerinstance.ContainersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ContainersServerTransport) Do

Do implements the policy.Transporter interface for ContainersServerTransport.

type LocationServer

type LocationServer struct {
	// NewListCachedImagesPager is the fake for method LocationClient.NewListCachedImagesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListCachedImagesPager func(location string, options *armcontainerinstance.LocationClientListCachedImagesOptions) (resp azfake.PagerResponder[armcontainerinstance.LocationClientListCachedImagesResponse])

	// NewListCapabilitiesPager is the fake for method LocationClient.NewListCapabilitiesPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListCapabilitiesPager func(location string, options *armcontainerinstance.LocationClientListCapabilitiesOptions) (resp azfake.PagerResponder[armcontainerinstance.LocationClientListCapabilitiesResponse])

	// NewListUsagePager is the fake for method LocationClient.NewListUsagePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListUsagePager func(location string, options *armcontainerinstance.LocationClientListUsageOptions) (resp azfake.PagerResponder[armcontainerinstance.LocationClientListUsageResponse])
}

LocationServer is a fake server for instances of the armcontainerinstance.LocationClient type.

type LocationServerTransport

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

LocationServerTransport connects instances of armcontainerinstance.LocationClient to instances of LocationServer. Don't use this type directly, use NewLocationServerTransport instead.

func NewLocationServerTransport

func NewLocationServerTransport(srv *LocationServer) *LocationServerTransport

NewLocationServerTransport creates a new instance of LocationServerTransport with the provided implementation. The returned LocationServerTransport instance is connected to an instance of armcontainerinstance.LocationClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LocationServerTransport) Do

Do implements the policy.Transporter interface for LocationServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armcontainerinstance.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 armcontainerinstance.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 {
	ContainerGroupsServer              ContainerGroupsServer
	ContainersServer                   ContainersServer
	LocationServer                     LocationServer
	OperationsServer                   OperationsServer
	SubnetServiceAssociationLinkServer SubnetServiceAssociationLinkServer
}

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

type ServerFactoryTransport

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

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

type SubnetServiceAssociationLinkServer struct {
	// BeginDelete is the fake for method SubnetServiceAssociationLinkClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, options *armcontainerinstance.SubnetServiceAssociationLinkClientBeginDeleteOptions) (resp azfake.PollerResponder[armcontainerinstance.SubnetServiceAssociationLinkClientDeleteResponse], errResp azfake.ErrorResponder)
}

SubnetServiceAssociationLinkServer is a fake server for instances of the armcontainerinstance.SubnetServiceAssociationLinkClient type.

type SubnetServiceAssociationLinkServerTransport

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

SubnetServiceAssociationLinkServerTransport connects instances of armcontainerinstance.SubnetServiceAssociationLinkClient to instances of SubnetServiceAssociationLinkServer. Don't use this type directly, use NewSubnetServiceAssociationLinkServerTransport instead.

func NewSubnetServiceAssociationLinkServerTransport

func NewSubnetServiceAssociationLinkServerTransport(srv *SubnetServiceAssociationLinkServer) *SubnetServiceAssociationLinkServerTransport

NewSubnetServiceAssociationLinkServerTransport creates a new instance of SubnetServiceAssociationLinkServerTransport with the provided implementation. The returned SubnetServiceAssociationLinkServerTransport instance is connected to an instance of armcontainerinstance.SubnetServiceAssociationLinkClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SubnetServiceAssociationLinkServerTransport) Do

Do implements the policy.Transporter interface for SubnetServiceAssociationLinkServerTransport.

Jump to

Keyboard shortcuts

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