fake

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericResourcesServer

type GenericResourcesServer struct {
	// BeginCreateOrUpdate is the fake for method GenericResourcesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceName string, genericResourceParameters generated.GenericResource, options *generated.GenericResourcesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[generated.GenericResourcesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method GenericResourcesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceName string, options *generated.GenericResourcesClientBeginDeleteOptions) (resp azfake.PollerResponder[generated.GenericResourcesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method GenericResourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceName string, options *generated.GenericResourcesClientGetOptions) (resp azfake.Responder[generated.GenericResourcesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByRootScopePager is the fake for method GenericResourcesClient.NewListByRootScopePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByRootScopePager func(options *generated.GenericResourcesClientListByRootScopeOptions) (resp azfake.PagerResponder[generated.GenericResourcesClientListByRootScopeResponse])

	// ListSecrets is the fake for method GenericResourcesClient.ListSecrets
	// HTTP status codes to indicate success: http.StatusOK
	ListSecrets func(ctx context.Context, resourceName string, options *generated.GenericResourcesClientListSecretsOptions) (resp azfake.Responder[generated.GenericResourcesClientListSecretsResponse], errResp azfake.ErrorResponder)
}

GenericResourcesServer is a fake server for instances of the generated.GenericResourcesClient type.

type GenericResourcesServerTransport

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

GenericResourcesServerTransport connects instances of generated.GenericResourcesClient to instances of GenericResourcesServer. Don't use this type directly, use NewGenericResourcesServerTransport instead.

func NewGenericResourcesServerTransport

func NewGenericResourcesServerTransport(srv *GenericResourcesServer) *GenericResourcesServerTransport

NewGenericResourcesServerTransport creates a new instance of GenericResourcesServerTransport with the provided implementation. The returned GenericResourcesServerTransport instance is connected to an instance of generated.GenericResourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*GenericResourcesServerTransport) Do

Do implements the policy.Transporter interface for GenericResourcesServerTransport.

type ServerFactory

type ServerFactory struct {
	// GenericResourcesServer contains the fakes for client GenericResourcesClient
	GenericResourcesServer GenericResourcesServer
}

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

type ServerFactoryTransport

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

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