fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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 AvailableClusterPoolVersionsServer

type AvailableClusterPoolVersionsServer struct {
	// NewListByLocationPager is the fake for method AvailableClusterPoolVersionsClient.NewListByLocationPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByLocationPager func(location string, options *armhdinsightcontainers.AvailableClusterPoolVersionsClientListByLocationOptions) (resp azfake.PagerResponder[armhdinsightcontainers.AvailableClusterPoolVersionsClientListByLocationResponse])
}

AvailableClusterPoolVersionsServer is a fake server for instances of the armhdinsightcontainers.AvailableClusterPoolVersionsClient type.

type AvailableClusterPoolVersionsServerTransport

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

AvailableClusterPoolVersionsServerTransport connects instances of armhdinsightcontainers.AvailableClusterPoolVersionsClient to instances of AvailableClusterPoolVersionsServer. Don't use this type directly, use NewAvailableClusterPoolVersionsServerTransport instead.

func NewAvailableClusterPoolVersionsServerTransport

func NewAvailableClusterPoolVersionsServerTransport(srv *AvailableClusterPoolVersionsServer) *AvailableClusterPoolVersionsServerTransport

NewAvailableClusterPoolVersionsServerTransport creates a new instance of AvailableClusterPoolVersionsServerTransport with the provided implementation. The returned AvailableClusterPoolVersionsServerTransport instance is connected to an instance of armhdinsightcontainers.AvailableClusterPoolVersionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AvailableClusterPoolVersionsServerTransport) Do

Do implements the policy.Transporter interface for AvailableClusterPoolVersionsServerTransport.

type AvailableClusterVersionsServer

type AvailableClusterVersionsServer struct {
	// NewListByLocationPager is the fake for method AvailableClusterVersionsClient.NewListByLocationPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByLocationPager func(location string, options *armhdinsightcontainers.AvailableClusterVersionsClientListByLocationOptions) (resp azfake.PagerResponder[armhdinsightcontainers.AvailableClusterVersionsClientListByLocationResponse])
}

AvailableClusterVersionsServer is a fake server for instances of the armhdinsightcontainers.AvailableClusterVersionsClient type.

type AvailableClusterVersionsServerTransport

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

AvailableClusterVersionsServerTransport connects instances of armhdinsightcontainers.AvailableClusterVersionsClient to instances of AvailableClusterVersionsServer. Don't use this type directly, use NewAvailableClusterVersionsServerTransport instead.

func NewAvailableClusterVersionsServerTransport

func NewAvailableClusterVersionsServerTransport(srv *AvailableClusterVersionsServer) *AvailableClusterVersionsServerTransport

NewAvailableClusterVersionsServerTransport creates a new instance of AvailableClusterVersionsServerTransport with the provided implementation. The returned AvailableClusterVersionsServerTransport instance is connected to an instance of armhdinsightcontainers.AvailableClusterVersionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AvailableClusterVersionsServerTransport) Do

Do implements the policy.Transporter interface for AvailableClusterVersionsServerTransport.

type ClusterAvailableUpgradesServer added in v0.3.0

type ClusterAvailableUpgradesServer struct {
	// NewListPager is the fake for method ClusterAvailableUpgradesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, clusterPoolName string, clusterName string, options *armhdinsightcontainers.ClusterAvailableUpgradesClientListOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClusterAvailableUpgradesClientListResponse])
}

ClusterAvailableUpgradesServer is a fake server for instances of the armhdinsightcontainers.ClusterAvailableUpgradesClient type.

type ClusterAvailableUpgradesServerTransport added in v0.3.0

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

ClusterAvailableUpgradesServerTransport connects instances of armhdinsightcontainers.ClusterAvailableUpgradesClient to instances of ClusterAvailableUpgradesServer. Don't use this type directly, use NewClusterAvailableUpgradesServerTransport instead.

func NewClusterAvailableUpgradesServerTransport added in v0.3.0

func NewClusterAvailableUpgradesServerTransport(srv *ClusterAvailableUpgradesServer) *ClusterAvailableUpgradesServerTransport

NewClusterAvailableUpgradesServerTransport creates a new instance of ClusterAvailableUpgradesServerTransport with the provided implementation. The returned ClusterAvailableUpgradesServerTransport instance is connected to an instance of armhdinsightcontainers.ClusterAvailableUpgradesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ClusterAvailableUpgradesServerTransport) Do added in v0.3.0

Do implements the policy.Transporter interface for ClusterAvailableUpgradesServerTransport.

type ClusterJobsServer

type ClusterJobsServer struct {
	// NewListPager is the fake for method ClusterJobsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, clusterPoolName string, clusterName string, options *armhdinsightcontainers.ClusterJobsClientListOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClusterJobsClientListResponse])

	// BeginRunJob is the fake for method ClusterJobsClient.BeginRunJob
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginRunJob func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterName string, clusterJob armhdinsightcontainers.ClusterJob, options *armhdinsightcontainers.ClusterJobsClientBeginRunJobOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClusterJobsClientRunJobResponse], errResp azfake.ErrorResponder)
}

ClusterJobsServer is a fake server for instances of the armhdinsightcontainers.ClusterJobsClient type.

type ClusterJobsServerTransport

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

ClusterJobsServerTransport connects instances of armhdinsightcontainers.ClusterJobsClient to instances of ClusterJobsServer. Don't use this type directly, use NewClusterJobsServerTransport instead.

func NewClusterJobsServerTransport

func NewClusterJobsServerTransport(srv *ClusterJobsServer) *ClusterJobsServerTransport

NewClusterJobsServerTransport creates a new instance of ClusterJobsServerTransport with the provided implementation. The returned ClusterJobsServerTransport instance is connected to an instance of armhdinsightcontainers.ClusterJobsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ClusterJobsServerTransport) Do

Do implements the policy.Transporter interface for ClusterJobsServerTransport.

type ClusterPoolAvailableUpgradesServer added in v0.3.0

type ClusterPoolAvailableUpgradesServer struct {
	// NewListPager is the fake for method ClusterPoolAvailableUpgradesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, clusterPoolName string, options *armhdinsightcontainers.ClusterPoolAvailableUpgradesClientListOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClusterPoolAvailableUpgradesClientListResponse])
}

ClusterPoolAvailableUpgradesServer is a fake server for instances of the armhdinsightcontainers.ClusterPoolAvailableUpgradesClient type.

type ClusterPoolAvailableUpgradesServerTransport added in v0.3.0

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

ClusterPoolAvailableUpgradesServerTransport connects instances of armhdinsightcontainers.ClusterPoolAvailableUpgradesClient to instances of ClusterPoolAvailableUpgradesServer. Don't use this type directly, use NewClusterPoolAvailableUpgradesServerTransport instead.

func NewClusterPoolAvailableUpgradesServerTransport added in v0.3.0

func NewClusterPoolAvailableUpgradesServerTransport(srv *ClusterPoolAvailableUpgradesServer) *ClusterPoolAvailableUpgradesServerTransport

NewClusterPoolAvailableUpgradesServerTransport creates a new instance of ClusterPoolAvailableUpgradesServerTransport with the provided implementation. The returned ClusterPoolAvailableUpgradesServerTransport instance is connected to an instance of armhdinsightcontainers.ClusterPoolAvailableUpgradesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ClusterPoolAvailableUpgradesServerTransport) Do added in v0.3.0

Do implements the policy.Transporter interface for ClusterPoolAvailableUpgradesServerTransport.

type ClusterPoolsServer

type ClusterPoolsServer struct {
	// BeginCreateOrUpdate is the fake for method ClusterPoolsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterPool armhdinsightcontainers.ClusterPool, options *armhdinsightcontainers.ClusterPoolsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClusterPoolsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ClusterPoolsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, clusterPoolName string, options *armhdinsightcontainers.ClusterPoolsClientBeginDeleteOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClusterPoolsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ClusterPoolsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, clusterPoolName string, options *armhdinsightcontainers.ClusterPoolsClientGetOptions) (resp azfake.Responder[armhdinsightcontainers.ClusterPoolsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method ClusterPoolsClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armhdinsightcontainers.ClusterPoolsClientListByResourceGroupOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClusterPoolsClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method ClusterPoolsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armhdinsightcontainers.ClusterPoolsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClusterPoolsClientListBySubscriptionResponse])

	// BeginUpdateTags is the fake for method ClusterPoolsClient.BeginUpdateTags
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdateTags func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterPoolTags armhdinsightcontainers.TagsObject, options *armhdinsightcontainers.ClusterPoolsClientBeginUpdateTagsOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClusterPoolsClientUpdateTagsResponse], errResp azfake.ErrorResponder)

	// BeginUpgrade is the fake for method ClusterPoolsClient.BeginUpgrade
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpgrade func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterPoolUpgradeRequest armhdinsightcontainers.ClusterPoolUpgrade, options *armhdinsightcontainers.ClusterPoolsClientBeginUpgradeOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClusterPoolsClientUpgradeResponse], errResp azfake.ErrorResponder)
}

ClusterPoolsServer is a fake server for instances of the armhdinsightcontainers.ClusterPoolsClient type.

type ClusterPoolsServerTransport

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

ClusterPoolsServerTransport connects instances of armhdinsightcontainers.ClusterPoolsClient to instances of ClusterPoolsServer. Don't use this type directly, use NewClusterPoolsServerTransport instead.

func NewClusterPoolsServerTransport

func NewClusterPoolsServerTransport(srv *ClusterPoolsServer) *ClusterPoolsServerTransport

NewClusterPoolsServerTransport creates a new instance of ClusterPoolsServerTransport with the provided implementation. The returned ClusterPoolsServerTransport instance is connected to an instance of armhdinsightcontainers.ClusterPoolsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ClusterPoolsServerTransport) Do

Do implements the policy.Transporter interface for ClusterPoolsServerTransport.

type ClustersServer

type ClustersServer struct {
	// BeginCreate is the fake for method ClustersClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterName string, hdInsightCluster armhdinsightcontainers.Cluster, options *armhdinsightcontainers.ClustersClientBeginCreateOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClustersClientCreateResponse], errResp azfake.ErrorResponder)

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

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

	// GetInstanceView is the fake for method ClustersClient.GetInstanceView
	// HTTP status codes to indicate success: http.StatusOK
	GetInstanceView func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterName string, options *armhdinsightcontainers.ClustersClientGetInstanceViewOptions) (resp azfake.Responder[armhdinsightcontainers.ClustersClientGetInstanceViewResponse], errResp azfake.ErrorResponder)

	// NewListByClusterPoolNamePager is the fake for method ClustersClient.NewListByClusterPoolNamePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByClusterPoolNamePager func(resourceGroupName string, clusterPoolName string, options *armhdinsightcontainers.ClustersClientListByClusterPoolNameOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClustersClientListByClusterPoolNameResponse])

	// NewListInstanceViewsPager is the fake for method ClustersClient.NewListInstanceViewsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListInstanceViewsPager func(resourceGroupName string, clusterPoolName string, clusterName string, options *armhdinsightcontainers.ClustersClientListInstanceViewsOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClustersClientListInstanceViewsResponse])

	// NewListServiceConfigsPager is the fake for method ClustersClient.NewListServiceConfigsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListServiceConfigsPager func(resourceGroupName string, clusterPoolName string, clusterName string, options *armhdinsightcontainers.ClustersClientListServiceConfigsOptions) (resp azfake.PagerResponder[armhdinsightcontainers.ClustersClientListServiceConfigsResponse])

	// BeginResize is the fake for method ClustersClient.BeginResize
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginResize func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterName string, clusterResizeRequest armhdinsightcontainers.ClusterResizeData, options *armhdinsightcontainers.ClustersClientBeginResizeOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClustersClientResizeResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method ClustersClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterName string, clusterPatchRequest armhdinsightcontainers.ClusterPatch, options *armhdinsightcontainers.ClustersClientBeginUpdateOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClustersClientUpdateResponse], errResp azfake.ErrorResponder)

	// BeginUpgrade is the fake for method ClustersClient.BeginUpgrade
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpgrade func(ctx context.Context, resourceGroupName string, clusterPoolName string, clusterName string, clusterUpgradeRequest armhdinsightcontainers.ClusterUpgrade, options *armhdinsightcontainers.ClustersClientBeginUpgradeOptions) (resp azfake.PollerResponder[armhdinsightcontainers.ClustersClientUpgradeResponse], errResp azfake.ErrorResponder)
}

ClustersServer is a fake server for instances of the armhdinsightcontainers.ClustersClient type.

type ClustersServerTransport

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

ClustersServerTransport connects instances of armhdinsightcontainers.ClustersClient to instances of ClustersServer. Don't use this type directly, use NewClustersServerTransport instead.

func NewClustersServerTransport

func NewClustersServerTransport(srv *ClustersServer) *ClustersServerTransport

NewClustersServerTransport creates a new instance of ClustersServerTransport with the provided implementation. The returned ClustersServerTransport instance is connected to an instance of armhdinsightcontainers.ClustersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ClustersServerTransport) Do

Do implements the policy.Transporter interface for ClustersServerTransport.

type LocationsServer

type LocationsServer struct {
	// CheckNameAvailability is the fake for method LocationsClient.CheckNameAvailability
	// HTTP status codes to indicate success: http.StatusOK
	CheckNameAvailability func(ctx context.Context, location string, nameAvailabilityParameters armhdinsightcontainers.NameAvailabilityParameters, options *armhdinsightcontainers.LocationsClientCheckNameAvailabilityOptions) (resp azfake.Responder[armhdinsightcontainers.LocationsClientCheckNameAvailabilityResponse], errResp azfake.ErrorResponder)
}

LocationsServer is a fake server for instances of the armhdinsightcontainers.LocationsClient type.

type LocationsServerTransport

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

LocationsServerTransport connects instances of armhdinsightcontainers.LocationsClient to instances of LocationsServer. Don't use this type directly, use NewLocationsServerTransport instead.

func NewLocationsServerTransport

func NewLocationsServerTransport(srv *LocationsServer) *LocationsServerTransport

NewLocationsServerTransport creates a new instance of LocationsServerTransport with the provided implementation. The returned LocationsServerTransport instance is connected to an instance of armhdinsightcontainers.LocationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LocationsServerTransport) Do

Do implements the policy.Transporter interface for LocationsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armhdinsightcontainers.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 armhdinsightcontainers.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 {
	AvailableClusterPoolVersionsServer AvailableClusterPoolVersionsServer
	AvailableClusterVersionsServer     AvailableClusterVersionsServer
	ClusterAvailableUpgradesServer     ClusterAvailableUpgradesServer
	ClusterJobsServer                  ClusterJobsServer
	ClusterPoolAvailableUpgradesServer ClusterPoolAvailableUpgradesServer
	ClusterPoolsServer                 ClusterPoolsServer
	ClustersServer                     ClustersServer
	LocationsServer                    LocationsServer
	OperationsServer                   OperationsServer
}

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

type ServerFactoryTransport

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

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