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 Server

type Server struct {
	// CreateOrUpdate is the fake for method Client.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, templateSpecName string, templateSpec armtemplatespecs.TemplateSpec, options *armtemplatespecs.ClientCreateOrUpdateOptions) (resp azfake.Responder[armtemplatespecs.ClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method Client.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, templateSpecName string, options *armtemplatespecs.ClientDeleteOptions) (resp azfake.Responder[armtemplatespecs.ClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method Client.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, templateSpecName string, options *armtemplatespecs.ClientGetOptions) (resp azfake.Responder[armtemplatespecs.ClientGetResponse], errResp azfake.ErrorResponder)

	// GetBuiltIn is the fake for method Client.GetBuiltIn
	// HTTP status codes to indicate success: http.StatusOK
	GetBuiltIn func(ctx context.Context, templateSpecName string, options *armtemplatespecs.ClientGetBuiltInOptions) (resp azfake.Responder[armtemplatespecs.ClientGetBuiltInResponse], errResp azfake.ErrorResponder)

	// NewListBuiltInsPager is the fake for method Client.NewListBuiltInsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBuiltInsPager func(options *armtemplatespecs.ClientListBuiltInsOptions) (resp azfake.PagerResponder[armtemplatespecs.ClientListBuiltInsResponse])

	// NewListByResourceGroupPager is the fake for method Client.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armtemplatespecs.ClientListByResourceGroupOptions) (resp azfake.PagerResponder[armtemplatespecs.ClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method Client.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armtemplatespecs.ClientListBySubscriptionOptions) (resp azfake.PagerResponder[armtemplatespecs.ClientListBySubscriptionResponse])

	// Update is the fake for method Client.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, templateSpecName string, options *armtemplatespecs.ClientUpdateOptions) (resp azfake.Responder[armtemplatespecs.ClientUpdateResponse], errResp azfake.ErrorResponder)
}

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

type ServerFactory

type ServerFactory struct {
	Server                     Server
	TemplateSpecVersionsServer TemplateSpecVersionsServer
}

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

type ServerFactoryTransport

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

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

type TemplateSpecVersionsServer struct {
	// CreateOrUpdate is the fake for method TemplateSpecVersionsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, templateSpecName string, templateSpecVersion string, templateSpecVersionModel armtemplatespecs.TemplateSpecVersion, options *armtemplatespecs.TemplateSpecVersionsClientCreateOrUpdateOptions) (resp azfake.Responder[armtemplatespecs.TemplateSpecVersionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method TemplateSpecVersionsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, templateSpecName string, templateSpecVersion string, options *armtemplatespecs.TemplateSpecVersionsClientDeleteOptions) (resp azfake.Responder[armtemplatespecs.TemplateSpecVersionsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method TemplateSpecVersionsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, templateSpecName string, templateSpecVersion string, options *armtemplatespecs.TemplateSpecVersionsClientGetOptions) (resp azfake.Responder[armtemplatespecs.TemplateSpecVersionsClientGetResponse], errResp azfake.ErrorResponder)

	// GetBuiltIn is the fake for method TemplateSpecVersionsClient.GetBuiltIn
	// HTTP status codes to indicate success: http.StatusOK
	GetBuiltIn func(ctx context.Context, templateSpecName string, templateSpecVersion string, options *armtemplatespecs.TemplateSpecVersionsClientGetBuiltInOptions) (resp azfake.Responder[armtemplatespecs.TemplateSpecVersionsClientGetBuiltInResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method TemplateSpecVersionsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, templateSpecName string, options *armtemplatespecs.TemplateSpecVersionsClientListOptions) (resp azfake.PagerResponder[armtemplatespecs.TemplateSpecVersionsClientListResponse])

	// NewListBuiltInsPager is the fake for method TemplateSpecVersionsClient.NewListBuiltInsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBuiltInsPager func(templateSpecName string, options *armtemplatespecs.TemplateSpecVersionsClientListBuiltInsOptions) (resp azfake.PagerResponder[armtemplatespecs.TemplateSpecVersionsClientListBuiltInsResponse])

	// Update is the fake for method TemplateSpecVersionsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, templateSpecName string, templateSpecVersion string, options *armtemplatespecs.TemplateSpecVersionsClientUpdateOptions) (resp azfake.Responder[armtemplatespecs.TemplateSpecVersionsClientUpdateResponse], errResp azfake.ErrorResponder)
}

TemplateSpecVersionsServer is a fake server for instances of the armtemplatespecs.TemplateSpecVersionsClient type.

type TemplateSpecVersionsServerTransport

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

TemplateSpecVersionsServerTransport connects instances of armtemplatespecs.TemplateSpecVersionsClient to instances of TemplateSpecVersionsServer. Don't use this type directly, use NewTemplateSpecVersionsServerTransport instead.

func NewTemplateSpecVersionsServerTransport

func NewTemplateSpecVersionsServerTransport(srv *TemplateSpecVersionsServer) *TemplateSpecVersionsServerTransport

NewTemplateSpecVersionsServerTransport creates a new instance of TemplateSpecVersionsServerTransport with the provided implementation. The returned TemplateSpecVersionsServerTransport instance is connected to an instance of armtemplatespecs.TemplateSpecVersionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TemplateSpecVersionsServerTransport) Do

Do implements the policy.Transporter interface for TemplateSpecVersionsServerTransport.

Jump to

Keyboard shortcuts

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