fake

package
v1.3.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 OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armsubscriptions.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 armsubscriptions.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 Server

type Server struct {
	// CheckZonePeers is the fake for method Client.CheckZonePeers
	// HTTP status codes to indicate success: http.StatusOK
	CheckZonePeers func(ctx context.Context, subscriptionID string, parameters armsubscriptions.CheckZonePeersRequest, options *armsubscriptions.ClientCheckZonePeersOptions) (resp azfake.Responder[armsubscriptions.ClientCheckZonePeersResponse], errResp azfake.ErrorResponder)

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

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

	// NewListLocationsPager is the fake for method Client.NewListLocationsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListLocationsPager func(subscriptionID string, options *armsubscriptions.ClientListLocationsOptions) (resp azfake.PagerResponder[armsubscriptions.ClientListLocationsResponse])
}

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

type ServerFactory

type ServerFactory struct {
	Server             Server
	OperationsServer   OperationsServer
	SubscriptionServer SubscriptionServer
	TenantsServer      TenantsServer
}

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

type ServerFactoryTransport

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

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

type SubscriptionServer struct {
	// CheckResourceName is the fake for method SubscriptionClient.CheckResourceName
	// HTTP status codes to indicate success: http.StatusOK
	CheckResourceName func(ctx context.Context, options *armsubscriptions.SubscriptionClientCheckResourceNameOptions) (resp azfake.Responder[armsubscriptions.SubscriptionClientCheckResourceNameResponse], errResp azfake.ErrorResponder)
}

SubscriptionServer is a fake server for instances of the armsubscriptions.SubscriptionClient type.

type SubscriptionServerTransport

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

SubscriptionServerTransport connects instances of armsubscriptions.SubscriptionClient to instances of SubscriptionServer. Don't use this type directly, use NewSubscriptionServerTransport instead.

func NewSubscriptionServerTransport

func NewSubscriptionServerTransport(srv *SubscriptionServer) *SubscriptionServerTransport

NewSubscriptionServerTransport creates a new instance of SubscriptionServerTransport with the provided implementation. The returned SubscriptionServerTransport instance is connected to an instance of armsubscriptions.SubscriptionClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SubscriptionServerTransport) Do

Do implements the policy.Transporter interface for SubscriptionServerTransport.

type TenantsServer

type TenantsServer struct {
	// NewListPager is the fake for method TenantsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armsubscriptions.TenantsClientListOptions) (resp azfake.PagerResponder[armsubscriptions.TenantsClientListResponse])
}

TenantsServer is a fake server for instances of the armsubscriptions.TenantsClient type.

type TenantsServerTransport

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

TenantsServerTransport connects instances of armsubscriptions.TenantsClient to instances of TenantsServer. Don't use this type directly, use NewTenantsServerTransport instead.

func NewTenantsServerTransport

func NewTenantsServerTransport(srv *TenantsServer) *TenantsServerTransport

NewTenantsServerTransport creates a new instance of TenantsServerTransport with the provided implementation. The returned TenantsServerTransport instance is connected to an instance of armsubscriptions.TenantsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*TenantsServerTransport) Do

Do implements the policy.Transporter interface for TenantsServerTransport.

Jump to

Keyboard shortcuts

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