fake

package
v1.1.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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointsServer

type EndpointsServer struct {
	// CreateOrUpdate is the fake for method EndpointsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, resourceURI string, endpointName string, endpointResource armhybridconnectivity.EndpointResource, options *armhybridconnectivity.EndpointsClientCreateOrUpdateOptions) (resp azfake.Responder[armhybridconnectivity.EndpointsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method EndpointsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceURI string, endpointName string, options *armhybridconnectivity.EndpointsClientDeleteOptions) (resp azfake.Responder[armhybridconnectivity.EndpointsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method EndpointsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, endpointName string, options *armhybridconnectivity.EndpointsClientGetOptions) (resp azfake.Responder[armhybridconnectivity.EndpointsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method EndpointsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceURI string, options *armhybridconnectivity.EndpointsClientListOptions) (resp azfake.PagerResponder[armhybridconnectivity.EndpointsClientListResponse])

	// ListCredentials is the fake for method EndpointsClient.ListCredentials
	// HTTP status codes to indicate success: http.StatusOK
	ListCredentials func(ctx context.Context, resourceURI string, endpointName string, options *armhybridconnectivity.EndpointsClientListCredentialsOptions) (resp azfake.Responder[armhybridconnectivity.EndpointsClientListCredentialsResponse], errResp azfake.ErrorResponder)

	// ListIngressGatewayCredentials is the fake for method EndpointsClient.ListIngressGatewayCredentials
	// HTTP status codes to indicate success: http.StatusOK
	ListIngressGatewayCredentials func(ctx context.Context, resourceURI string, endpointName string, options *armhybridconnectivity.EndpointsClientListIngressGatewayCredentialsOptions) (resp azfake.Responder[armhybridconnectivity.EndpointsClientListIngressGatewayCredentialsResponse], errResp azfake.ErrorResponder)

	// ListManagedProxyDetails is the fake for method EndpointsClient.ListManagedProxyDetails
	// HTTP status codes to indicate success: http.StatusOK
	ListManagedProxyDetails func(ctx context.Context, resourceURI string, endpointName string, managedProxyRequest armhybridconnectivity.ManagedProxyRequest, options *armhybridconnectivity.EndpointsClientListManagedProxyDetailsOptions) (resp azfake.Responder[armhybridconnectivity.EndpointsClientListManagedProxyDetailsResponse], errResp azfake.ErrorResponder)

	// Update is the fake for method EndpointsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceURI string, endpointName string, endpointResource armhybridconnectivity.EndpointResource, options *armhybridconnectivity.EndpointsClientUpdateOptions) (resp azfake.Responder[armhybridconnectivity.EndpointsClientUpdateResponse], errResp azfake.ErrorResponder)
}

EndpointsServer is a fake server for instances of the armhybridconnectivity.EndpointsClient type.

type EndpointsServerTransport

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

EndpointsServerTransport connects instances of armhybridconnectivity.EndpointsClient to instances of EndpointsServer. Don't use this type directly, use NewEndpointsServerTransport instead.

func NewEndpointsServerTransport

func NewEndpointsServerTransport(srv *EndpointsServer) *EndpointsServerTransport

NewEndpointsServerTransport creates a new instance of EndpointsServerTransport with the provided implementation. The returned EndpointsServerTransport instance is connected to an instance of armhybridconnectivity.EndpointsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*EndpointsServerTransport) Do

Do implements the policy.Transporter interface for EndpointsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armhybridconnectivity.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 armhybridconnectivity.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 {
	EndpointsServer             EndpointsServer
	OperationsServer            OperationsServer
	ServiceConfigurationsServer ServiceConfigurationsServer
}

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

type ServerFactoryTransport

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

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

type ServiceConfigurationsServer struct {
	// CreateOrupdate is the fake for method ServiceConfigurationsClient.CreateOrupdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrupdate func(ctx context.Context, resourceURI string, endpointName string, serviceConfigurationName string, serviceConfigurationResource armhybridconnectivity.ServiceConfigurationResource, options *armhybridconnectivity.ServiceConfigurationsClientCreateOrupdateOptions) (resp azfake.Responder[armhybridconnectivity.ServiceConfigurationsClientCreateOrupdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ServiceConfigurationsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceURI string, endpointName string, serviceConfigurationName string, options *armhybridconnectivity.ServiceConfigurationsClientDeleteOptions) (resp azfake.Responder[armhybridconnectivity.ServiceConfigurationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServiceConfigurationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, endpointName string, serviceConfigurationName string, options *armhybridconnectivity.ServiceConfigurationsClientGetOptions) (resp azfake.Responder[armhybridconnectivity.ServiceConfigurationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByEndpointResourcePager is the fake for method ServiceConfigurationsClient.NewListByEndpointResourcePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByEndpointResourcePager func(resourceURI string, endpointName string, options *armhybridconnectivity.ServiceConfigurationsClientListByEndpointResourceOptions) (resp azfake.PagerResponder[armhybridconnectivity.ServiceConfigurationsClientListByEndpointResourceResponse])

	// Update is the fake for method ServiceConfigurationsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceURI string, endpointName string, serviceConfigurationName string, serviceConfigurationResource armhybridconnectivity.ServiceConfigurationResourcePatch, options *armhybridconnectivity.ServiceConfigurationsClientUpdateOptions) (resp azfake.Responder[armhybridconnectivity.ServiceConfigurationsClientUpdateResponse], errResp azfake.ErrorResponder)
}

ServiceConfigurationsServer is a fake server for instances of the armhybridconnectivity.ServiceConfigurationsClient type.

type ServiceConfigurationsServerTransport

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

ServiceConfigurationsServerTransport connects instances of armhybridconnectivity.ServiceConfigurationsClient to instances of ServiceConfigurationsServer. Don't use this type directly, use NewServiceConfigurationsServerTransport instead.

func NewServiceConfigurationsServerTransport

func NewServiceConfigurationsServerTransport(srv *ServiceConfigurationsServer) *ServiceConfigurationsServerTransport

NewServiceConfigurationsServerTransport creates a new instance of ServiceConfigurationsServerTransport with the provided implementation. The returned ServiceConfigurationsServerTransport instance is connected to an instance of armhybridconnectivity.ServiceConfigurationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServiceConfigurationsServerTransport) Do

Do implements the policy.Transporter interface for ServiceConfigurationsServerTransport.

Jump to

Keyboard shortcuts

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