fake

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureServer

type FeatureServer struct {
	// NewListOperationsPager is the fake for method FeatureClient.NewListOperationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListOperationsPager func(options *armfeatures.FeatureClientListOperationsOptions) (resp azfake.PagerResponder[armfeatures.FeatureClientListOperationsResponse])
}

FeatureServer is a fake server for instances of the armfeatures.FeatureClient type.

type FeatureServerTransport

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

FeatureServerTransport connects instances of armfeatures.FeatureClient to instances of FeatureServer. Don't use this type directly, use NewFeatureServerTransport instead.

func NewFeatureServerTransport

func NewFeatureServerTransport(srv *FeatureServer) *FeatureServerTransport

NewFeatureServerTransport creates a new instance of FeatureServerTransport with the provided implementation. The returned FeatureServerTransport instance is connected to an instance of armfeatures.FeatureClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*FeatureServerTransport) Do

Do implements the policy.Transporter interface for FeatureServerTransport.

type Server

type Server struct {
	// Get is the fake for method Client.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceProviderNamespace string, featureName string, options *armfeatures.ClientGetOptions) (resp azfake.Responder[armfeatures.ClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method Client.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceProviderNamespace string, options *armfeatures.ClientListOptions) (resp azfake.PagerResponder[armfeatures.ClientListResponse])

	// NewListAllPager is the fake for method Client.NewListAllPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAllPager func(options *armfeatures.ClientListAllOptions) (resp azfake.PagerResponder[armfeatures.ClientListAllResponse])

	// Register is the fake for method Client.Register
	// HTTP status codes to indicate success: http.StatusOK
	Register func(ctx context.Context, resourceProviderNamespace string, featureName string, options *armfeatures.ClientRegisterOptions) (resp azfake.Responder[armfeatures.ClientRegisterResponse], errResp azfake.ErrorResponder)

	// Unregister is the fake for method Client.Unregister
	// HTTP status codes to indicate success: http.StatusOK
	Unregister func(ctx context.Context, resourceProviderNamespace string, featureName string, options *armfeatures.ClientUnregisterOptions) (resp azfake.Responder[armfeatures.ClientUnregisterResponse], errResp azfake.ErrorResponder)
}

Server is a fake server for instances of the armfeatures.Client type.

type ServerFactory

type ServerFactory struct {
	Server                                 Server
	FeatureServer                          FeatureServer
	SubscriptionFeatureRegistrationsServer SubscriptionFeatureRegistrationsServer
}

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

type ServerFactoryTransport

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

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

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

ServerTransport connects instances of armfeatures.Client to instances of Server. Don't use this type directly, use NewServerTransport instead.

func NewServerTransport

func NewServerTransport(srv *Server) *ServerTransport

NewServerTransport creates a new instance of ServerTransport with the provided implementation. The returned ServerTransport instance is connected to an instance of armfeatures.Client via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerTransport) Do

func (s *ServerTransport) Do(req *http.Request) (*http.Response, error)

Do implements the policy.Transporter interface for ServerTransport.

type SubscriptionFeatureRegistrationsServer

type SubscriptionFeatureRegistrationsServer struct {
	// CreateOrUpdate is the fake for method SubscriptionFeatureRegistrationsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK
	CreateOrUpdate func(ctx context.Context, providerNamespace string, featureName string, options *armfeatures.SubscriptionFeatureRegistrationsClientCreateOrUpdateOptions) (resp azfake.Responder[armfeatures.SubscriptionFeatureRegistrationsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SubscriptionFeatureRegistrationsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, providerNamespace string, featureName string, options *armfeatures.SubscriptionFeatureRegistrationsClientDeleteOptions) (resp azfake.Responder[armfeatures.SubscriptionFeatureRegistrationsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SubscriptionFeatureRegistrationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, providerNamespace string, featureName string, options *armfeatures.SubscriptionFeatureRegistrationsClientGetOptions) (resp azfake.Responder[armfeatures.SubscriptionFeatureRegistrationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListAllBySubscriptionPager is the fake for method SubscriptionFeatureRegistrationsClient.NewListAllBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAllBySubscriptionPager func(options *armfeatures.SubscriptionFeatureRegistrationsClientListAllBySubscriptionOptions) (resp azfake.PagerResponder[armfeatures.SubscriptionFeatureRegistrationsClientListAllBySubscriptionResponse])

	// NewListBySubscriptionPager is the fake for method SubscriptionFeatureRegistrationsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(providerNamespace string, options *armfeatures.SubscriptionFeatureRegistrationsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armfeatures.SubscriptionFeatureRegistrationsClientListBySubscriptionResponse])
}

SubscriptionFeatureRegistrationsServer is a fake server for instances of the armfeatures.SubscriptionFeatureRegistrationsClient type.

type SubscriptionFeatureRegistrationsServerTransport

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

SubscriptionFeatureRegistrationsServerTransport connects instances of armfeatures.SubscriptionFeatureRegistrationsClient to instances of SubscriptionFeatureRegistrationsServer. Don't use this type directly, use NewSubscriptionFeatureRegistrationsServerTransport instead.

func NewSubscriptionFeatureRegistrationsServerTransport

func NewSubscriptionFeatureRegistrationsServerTransport(srv *SubscriptionFeatureRegistrationsServer) *SubscriptionFeatureRegistrationsServerTransport

NewSubscriptionFeatureRegistrationsServerTransport creates a new instance of SubscriptionFeatureRegistrationsServerTransport with the provided implementation. The returned SubscriptionFeatureRegistrationsServerTransport instance is connected to an instance of armfeatures.SubscriptionFeatureRegistrationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SubscriptionFeatureRegistrationsServerTransport) Do

Do implements the policy.Transporter interface for SubscriptionFeatureRegistrationsServerTransport.

Jump to

Keyboard shortcuts

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