fake

package
v1.2.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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectedClusterServer

type ConnectedClusterServer struct {
	// BeginCreate is the fake for method ConnectedClusterClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, clusterName string, connectedCluster armhybridkubernetes.ConnectedCluster, options *armhybridkubernetes.ConnectedClusterClientBeginCreateOptions) (resp azfake.PollerResponder[armhybridkubernetes.ConnectedClusterClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ConnectedClusterClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, clusterName string, options *armhybridkubernetes.ConnectedClusterClientBeginDeleteOptions) (resp azfake.PollerResponder[armhybridkubernetes.ConnectedClusterClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ConnectedClusterClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, clusterName string, options *armhybridkubernetes.ConnectedClusterClientGetOptions) (resp azfake.Responder[armhybridkubernetes.ConnectedClusterClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ConnectedClusterClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armhybridkubernetes.ConnectedClusterClientListByResourceGroupOptions) (resp azfake.PagerResponder[armhybridkubernetes.ConnectedClusterClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ConnectedClusterClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armhybridkubernetes.ConnectedClusterClientListBySubscriptionOptions) (resp azfake.PagerResponder[armhybridkubernetes.ConnectedClusterClientListBySubscriptionResponse])

	// ListClusterUserCredential is the fake for method ConnectedClusterClient.ListClusterUserCredential
	// HTTP status codes to indicate success: http.StatusOK
	ListClusterUserCredential func(ctx context.Context, resourceGroupName string, clusterName string, properties armhybridkubernetes.ListClusterUserCredentialProperties, options *armhybridkubernetes.ConnectedClusterClientListClusterUserCredentialOptions) (resp azfake.Responder[armhybridkubernetes.ConnectedClusterClientListClusterUserCredentialResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method ConnectedClusterClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, clusterName string, connectedClusterPatch armhybridkubernetes.ConnectedClusterPatch, options *armhybridkubernetes.ConnectedClusterClientUpdateOptions) (resp azfake.Responder[armhybridkubernetes.ConnectedClusterClientUpdateResponse], errResp azfake.ErrorResponder)
}

ConnectedClusterServer is a fake server for instances of the armhybridkubernetes.ConnectedClusterClient type.

type ConnectedClusterServerTransport

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

ConnectedClusterServerTransport connects instances of armhybridkubernetes.ConnectedClusterClient to instances of ConnectedClusterServer. Don't use this type directly, use NewConnectedClusterServerTransport instead.

func NewConnectedClusterServerTransport

func NewConnectedClusterServerTransport(srv *ConnectedClusterServer) *ConnectedClusterServerTransport

NewConnectedClusterServerTransport creates a new instance of ConnectedClusterServerTransport with the provided implementation. The returned ConnectedClusterServerTransport instance is connected to an instance of armhybridkubernetes.ConnectedClusterClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ConnectedClusterServerTransport) Do

Do implements the policy.Transporter interface for ConnectedClusterServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armhybridkubernetes.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 armhybridkubernetes.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 {
	ConnectedClusterServer ConnectedClusterServer
	OperationsServer       OperationsServer
}

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

type ServerFactoryTransport

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

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