fake

package
v1.5.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 MachinePoolsServer

type MachinePoolsServer struct {
	// CreateOrUpdate is the fake for method MachinePoolsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.MachinePool, options *armredhatopenshift.MachinePoolsClientCreateOrUpdateOptions) (resp azfake.Responder[armredhatopenshift.MachinePoolsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method MachinePoolsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.MachinePoolsClientDeleteOptions) (resp azfake.Responder[armredhatopenshift.MachinePoolsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method MachinePoolsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.MachinePoolsClientGetOptions) (resp azfake.Responder[armredhatopenshift.MachinePoolsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method MachinePoolsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armredhatopenshift.MachinePoolsClientListOptions) (resp azfake.PagerResponder[armredhatopenshift.MachinePoolsClientListResponse])

	// Update is the fake for method MachinePoolsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.MachinePoolUpdate, options *armredhatopenshift.MachinePoolsClientUpdateOptions) (resp azfake.Responder[armredhatopenshift.MachinePoolsClientUpdateResponse], errResp azfake.ErrorResponder)
}

MachinePoolsServer is a fake server for instances of the armredhatopenshift.MachinePoolsClient type.

type MachinePoolsServerTransport

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

MachinePoolsServerTransport connects instances of armredhatopenshift.MachinePoolsClient to instances of MachinePoolsServer. Don't use this type directly, use NewMachinePoolsServerTransport instead.

func NewMachinePoolsServerTransport

func NewMachinePoolsServerTransport(srv *MachinePoolsServer) *MachinePoolsServerTransport

NewMachinePoolsServerTransport creates a new instance of MachinePoolsServerTransport with the provided implementation. The returned MachinePoolsServerTransport instance is connected to an instance of armredhatopenshift.MachinePoolsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MachinePoolsServerTransport) Do

Do implements the policy.Transporter interface for MachinePoolsServerTransport.

type OpenShiftClustersServer

type OpenShiftClustersServer struct {
	// BeginCreateOrUpdate is the fake for method OpenShiftClustersClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, parameters armredhatopenshift.OpenShiftCluster, options *armredhatopenshift.OpenShiftClustersClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armredhatopenshift.OpenShiftClustersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method OpenShiftClustersClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, resourceName string, options *armredhatopenshift.OpenShiftClustersClientBeginDeleteOptions) (resp azfake.PollerResponder[armredhatopenshift.OpenShiftClustersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method OpenShiftClustersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceName string, options *armredhatopenshift.OpenShiftClustersClientGetOptions) (resp azfake.Responder[armredhatopenshift.OpenShiftClustersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method OpenShiftClustersClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armredhatopenshift.OpenShiftClustersClientListOptions) (resp azfake.PagerResponder[armredhatopenshift.OpenShiftClustersClientListResponse])

	// ListAdminCredentials is the fake for method OpenShiftClustersClient.ListAdminCredentials
	// HTTP status codes to indicate success: http.StatusOK
	ListAdminCredentials func(ctx context.Context, resourceGroupName string, resourceName string, options *armredhatopenshift.OpenShiftClustersClientListAdminCredentialsOptions) (resp azfake.Responder[armredhatopenshift.OpenShiftClustersClientListAdminCredentialsResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method OpenShiftClustersClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armredhatopenshift.OpenShiftClustersClientListByResourceGroupOptions) (resp azfake.PagerResponder[armredhatopenshift.OpenShiftClustersClientListByResourceGroupResponse])

	// ListCredentials is the fake for method OpenShiftClustersClient.ListCredentials
	// HTTP status codes to indicate success: http.StatusOK
	ListCredentials func(ctx context.Context, resourceGroupName string, resourceName string, options *armredhatopenshift.OpenShiftClustersClientListCredentialsOptions) (resp azfake.Responder[armredhatopenshift.OpenShiftClustersClientListCredentialsResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method OpenShiftClustersClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginUpdate func(ctx context.Context, resourceGroupName string, resourceName string, parameters armredhatopenshift.OpenShiftClusterUpdate, options *armredhatopenshift.OpenShiftClustersClientBeginUpdateOptions) (resp azfake.PollerResponder[armredhatopenshift.OpenShiftClustersClientUpdateResponse], errResp azfake.ErrorResponder)
}

OpenShiftClustersServer is a fake server for instances of the armredhatopenshift.OpenShiftClustersClient type.

type OpenShiftClustersServerTransport

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

OpenShiftClustersServerTransport connects instances of armredhatopenshift.OpenShiftClustersClient to instances of OpenShiftClustersServer. Don't use this type directly, use NewOpenShiftClustersServerTransport instead.

func NewOpenShiftClustersServerTransport

func NewOpenShiftClustersServerTransport(srv *OpenShiftClustersServer) *OpenShiftClustersServerTransport

NewOpenShiftClustersServerTransport creates a new instance of OpenShiftClustersServerTransport with the provided implementation. The returned OpenShiftClustersServerTransport instance is connected to an instance of armredhatopenshift.OpenShiftClustersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OpenShiftClustersServerTransport) Do

Do implements the policy.Transporter interface for OpenShiftClustersServerTransport.

type OpenShiftVersionsServer

type OpenShiftVersionsServer struct {
	// NewListPager is the fake for method OpenShiftVersionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(location string, options *armredhatopenshift.OpenShiftVersionsClientListOptions) (resp azfake.PagerResponder[armredhatopenshift.OpenShiftVersionsClientListResponse])
}

OpenShiftVersionsServer is a fake server for instances of the armredhatopenshift.OpenShiftVersionsClient type.

type OpenShiftVersionsServerTransport

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

OpenShiftVersionsServerTransport connects instances of armredhatopenshift.OpenShiftVersionsClient to instances of OpenShiftVersionsServer. Don't use this type directly, use NewOpenShiftVersionsServerTransport instead.

func NewOpenShiftVersionsServerTransport

func NewOpenShiftVersionsServerTransport(srv *OpenShiftVersionsServer) *OpenShiftVersionsServerTransport

NewOpenShiftVersionsServerTransport creates a new instance of OpenShiftVersionsServerTransport with the provided implementation. The returned OpenShiftVersionsServerTransport instance is connected to an instance of armredhatopenshift.OpenShiftVersionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OpenShiftVersionsServerTransport) Do

Do implements the policy.Transporter interface for OpenShiftVersionsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armredhatopenshift.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 armredhatopenshift.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 SecretsServer

type SecretsServer struct {
	// CreateOrUpdate is the fake for method SecretsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.Secret, options *armredhatopenshift.SecretsClientCreateOrUpdateOptions) (resp azfake.Responder[armredhatopenshift.SecretsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SecretsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.SecretsClientDeleteOptions) (resp azfake.Responder[armredhatopenshift.SecretsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SecretsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.SecretsClientGetOptions) (resp azfake.Responder[armredhatopenshift.SecretsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SecretsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armredhatopenshift.SecretsClientListOptions) (resp azfake.PagerResponder[armredhatopenshift.SecretsClientListResponse])

	// Update is the fake for method SecretsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.SecretUpdate, options *armredhatopenshift.SecretsClientUpdateOptions) (resp azfake.Responder[armredhatopenshift.SecretsClientUpdateResponse], errResp azfake.ErrorResponder)
}

SecretsServer is a fake server for instances of the armredhatopenshift.SecretsClient type.

type SecretsServerTransport

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

SecretsServerTransport connects instances of armredhatopenshift.SecretsClient to instances of SecretsServer. Don't use this type directly, use NewSecretsServerTransport instead.

func NewSecretsServerTransport

func NewSecretsServerTransport(srv *SecretsServer) *SecretsServerTransport

NewSecretsServerTransport creates a new instance of SecretsServerTransport with the provided implementation. The returned SecretsServerTransport instance is connected to an instance of armredhatopenshift.SecretsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SecretsServerTransport) Do

Do implements the policy.Transporter interface for SecretsServerTransport.

type ServerFactory

type ServerFactory struct {
	MachinePoolsServer          MachinePoolsServer
	OpenShiftClustersServer     OpenShiftClustersServer
	OpenShiftVersionsServer     OpenShiftVersionsServer
	OperationsServer            OperationsServer
	SecretsServer               SecretsServer
	SyncIdentityProvidersServer SyncIdentityProvidersServer
	SyncSetsServer              SyncSetsServer
}

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

type ServerFactoryTransport

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

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

type SyncIdentityProvidersServer struct {
	// CreateOrUpdate is the fake for method SyncIdentityProvidersClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.SyncIdentityProvider, options *armredhatopenshift.SyncIdentityProvidersClientCreateOrUpdateOptions) (resp azfake.Responder[armredhatopenshift.SyncIdentityProvidersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SyncIdentityProvidersClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.SyncIdentityProvidersClientDeleteOptions) (resp azfake.Responder[armredhatopenshift.SyncIdentityProvidersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SyncIdentityProvidersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.SyncIdentityProvidersClientGetOptions) (resp azfake.Responder[armredhatopenshift.SyncIdentityProvidersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SyncIdentityProvidersClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armredhatopenshift.SyncIdentityProvidersClientListOptions) (resp azfake.PagerResponder[armredhatopenshift.SyncIdentityProvidersClientListResponse])

	// Update is the fake for method SyncIdentityProvidersClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.SyncIdentityProviderUpdate, options *armredhatopenshift.SyncIdentityProvidersClientUpdateOptions) (resp azfake.Responder[armredhatopenshift.SyncIdentityProvidersClientUpdateResponse], errResp azfake.ErrorResponder)
}

SyncIdentityProvidersServer is a fake server for instances of the armredhatopenshift.SyncIdentityProvidersClient type.

type SyncIdentityProvidersServerTransport

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

SyncIdentityProvidersServerTransport connects instances of armredhatopenshift.SyncIdentityProvidersClient to instances of SyncIdentityProvidersServer. Don't use this type directly, use NewSyncIdentityProvidersServerTransport instead.

func NewSyncIdentityProvidersServerTransport

func NewSyncIdentityProvidersServerTransport(srv *SyncIdentityProvidersServer) *SyncIdentityProvidersServerTransport

NewSyncIdentityProvidersServerTransport creates a new instance of SyncIdentityProvidersServerTransport with the provided implementation. The returned SyncIdentityProvidersServerTransport instance is connected to an instance of armredhatopenshift.SyncIdentityProvidersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SyncIdentityProvidersServerTransport) Do

Do implements the policy.Transporter interface for SyncIdentityProvidersServerTransport.

type SyncSetsServer

type SyncSetsServer struct {
	// CreateOrUpdate is the fake for method SyncSetsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.SyncSet, options *armredhatopenshift.SyncSetsClientCreateOrUpdateOptions) (resp azfake.Responder[armredhatopenshift.SyncSetsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SyncSetsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.SyncSetsClientDeleteOptions) (resp azfake.Responder[armredhatopenshift.SyncSetsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SyncSetsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, options *armredhatopenshift.SyncSetsClientGetOptions) (resp azfake.Responder[armredhatopenshift.SyncSetsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SyncSetsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, resourceName string, options *armredhatopenshift.SyncSetsClientListOptions) (resp azfake.PagerResponder[armredhatopenshift.SyncSetsClientListResponse])

	// Update is the fake for method SyncSetsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, resourceName string, childResourceName string, parameters armredhatopenshift.SyncSetUpdate, options *armredhatopenshift.SyncSetsClientUpdateOptions) (resp azfake.Responder[armredhatopenshift.SyncSetsClientUpdateResponse], errResp azfake.ErrorResponder)
}

SyncSetsServer is a fake server for instances of the armredhatopenshift.SyncSetsClient type.

type SyncSetsServerTransport

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

SyncSetsServerTransport connects instances of armredhatopenshift.SyncSetsClient to instances of SyncSetsServer. Don't use this type directly, use NewSyncSetsServerTransport instead.

func NewSyncSetsServerTransport

func NewSyncSetsServerTransport(srv *SyncSetsServer) *SyncSetsServerTransport

NewSyncSetsServerTransport creates a new instance of SyncSetsServerTransport with the provided implementation. The returned SyncSetsServerTransport instance is connected to an instance of armredhatopenshift.SyncSetsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SyncSetsServerTransport) Do

Do implements the policy.Transporter interface for SyncSetsServerTransport.

Jump to

Keyboard shortcuts

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