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: 15 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 {
	// Get is the fake for method Client.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, resourceType string, resourceName string, changeResourceID string, options *armchanges.ClientGetOptions) (resp azfake.Responder[armchanges.ClientGetResponse], errResp azfake.ErrorResponder)

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

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

type ServerFactory

type ServerFactory struct {
	Server Server
}

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

type ServerFactoryTransport

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

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

Jump to

Keyboard shortcuts

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