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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangesServer

type ChangesServer struct {
	// NewListChangesByResourceGroupPager is the fake for method ChangesClient.NewListChangesByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListChangesByResourceGroupPager func(resourceGroupName string, startTime time.Time, endTime time.Time, options *armchangeanalysis.ChangesClientListChangesByResourceGroupOptions) (resp azfake.PagerResponder[armchangeanalysis.ChangesClientListChangesByResourceGroupResponse])

	// NewListChangesBySubscriptionPager is the fake for method ChangesClient.NewListChangesBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListChangesBySubscriptionPager func(startTime time.Time, endTime time.Time, options *armchangeanalysis.ChangesClientListChangesBySubscriptionOptions) (resp azfake.PagerResponder[armchangeanalysis.ChangesClientListChangesBySubscriptionResponse])
}

ChangesServer is a fake server for instances of the armchangeanalysis.ChangesClient type.

type ChangesServerTransport

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

ChangesServerTransport connects instances of armchangeanalysis.ChangesClient to instances of ChangesServer. Don't use this type directly, use NewChangesServerTransport instead.

func NewChangesServerTransport

func NewChangesServerTransport(srv *ChangesServer) *ChangesServerTransport

NewChangesServerTransport creates a new instance of ChangesServerTransport with the provided implementation. The returned ChangesServerTransport instance is connected to an instance of armchangeanalysis.ChangesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ChangesServerTransport) Do

Do implements the policy.Transporter interface for ChangesServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armchangeanalysis.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 armchangeanalysis.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 ResourceChangesServer

type ResourceChangesServer struct {
	// NewListPager is the fake for method ResourceChangesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceID string, startTime time.Time, endTime time.Time, options *armchangeanalysis.ResourceChangesClientListOptions) (resp azfake.PagerResponder[armchangeanalysis.ResourceChangesClientListResponse])
}

ResourceChangesServer is a fake server for instances of the armchangeanalysis.ResourceChangesClient type.

type ResourceChangesServerTransport

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

ResourceChangesServerTransport connects instances of armchangeanalysis.ResourceChangesClient to instances of ResourceChangesServer. Don't use this type directly, use NewResourceChangesServerTransport instead.

func NewResourceChangesServerTransport

func NewResourceChangesServerTransport(srv *ResourceChangesServer) *ResourceChangesServerTransport

NewResourceChangesServerTransport creates a new instance of ResourceChangesServerTransport with the provided implementation. The returned ResourceChangesServerTransport instance is connected to an instance of armchangeanalysis.ResourceChangesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ResourceChangesServerTransport) Do

Do implements the policy.Transporter interface for ResourceChangesServerTransport.

type ServerFactory

type ServerFactory struct {
	ChangesServer         ChangesServer
	OperationsServer      OperationsServer
	ResourceChangesServer ResourceChangesServer
}

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

type ServerFactoryTransport

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

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