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 DomainServiceOperationsServer

type DomainServiceOperationsServer struct {
	// NewListPager is the fake for method DomainServiceOperationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdomainservices.DomainServiceOperationsClientListOptions) (resp azfake.PagerResponder[armdomainservices.DomainServiceOperationsClientListResponse])
}

DomainServiceOperationsServer is a fake server for instances of the armdomainservices.DomainServiceOperationsClient type.

type DomainServiceOperationsServerTransport

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

DomainServiceOperationsServerTransport connects instances of armdomainservices.DomainServiceOperationsClient to instances of DomainServiceOperationsServer. Don't use this type directly, use NewDomainServiceOperationsServerTransport instead.

func NewDomainServiceOperationsServerTransport

func NewDomainServiceOperationsServerTransport(srv *DomainServiceOperationsServer) *DomainServiceOperationsServerTransport

NewDomainServiceOperationsServerTransport creates a new instance of DomainServiceOperationsServerTransport with the provided implementation. The returned DomainServiceOperationsServerTransport instance is connected to an instance of armdomainservices.DomainServiceOperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DomainServiceOperationsServerTransport) Do

Do implements the policy.Transporter interface for DomainServiceOperationsServerTransport.

type OuContainerOperationsServer

type OuContainerOperationsServer struct {
	// NewListPager is the fake for method OuContainerOperationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdomainservices.OuContainerOperationsClientListOptions) (resp azfake.PagerResponder[armdomainservices.OuContainerOperationsClientListResponse])
}

OuContainerOperationsServer is a fake server for instances of the armdomainservices.OuContainerOperationsClient type.

type OuContainerOperationsServerTransport

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

OuContainerOperationsServerTransport connects instances of armdomainservices.OuContainerOperationsClient to instances of OuContainerOperationsServer. Don't use this type directly, use NewOuContainerOperationsServerTransport instead.

func NewOuContainerOperationsServerTransport

func NewOuContainerOperationsServerTransport(srv *OuContainerOperationsServer) *OuContainerOperationsServerTransport

NewOuContainerOperationsServerTransport creates a new instance of OuContainerOperationsServerTransport with the provided implementation. The returned OuContainerOperationsServerTransport instance is connected to an instance of armdomainservices.OuContainerOperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OuContainerOperationsServerTransport) Do

Do implements the policy.Transporter interface for OuContainerOperationsServerTransport.

type OuContainerServer

type OuContainerServer struct {
	// BeginCreate is the fake for method OuContainerClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreate func(ctx context.Context, resourceGroupName string, domainServiceName string, ouContainerName string, containerAccount armdomainservices.ContainerAccount, options *armdomainservices.OuContainerClientBeginCreateOptions) (resp azfake.PollerResponder[armdomainservices.OuContainerClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method OuContainerClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, domainServiceName string, ouContainerName string, options *armdomainservices.OuContainerClientBeginDeleteOptions) (resp azfake.PollerResponder[armdomainservices.OuContainerClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method OuContainerClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, domainServiceName string, ouContainerName string, options *armdomainservices.OuContainerClientGetOptions) (resp azfake.Responder[armdomainservices.OuContainerClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method OuContainerClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, domainServiceName string, options *armdomainservices.OuContainerClientListOptions) (resp azfake.PagerResponder[armdomainservices.OuContainerClientListResponse])

	// BeginUpdate is the fake for method OuContainerClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, domainServiceName string, ouContainerName string, containerAccount armdomainservices.ContainerAccount, options *armdomainservices.OuContainerClientBeginUpdateOptions) (resp azfake.PollerResponder[armdomainservices.OuContainerClientUpdateResponse], errResp azfake.ErrorResponder)
}

OuContainerServer is a fake server for instances of the armdomainservices.OuContainerClient type.

type OuContainerServerTransport

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

OuContainerServerTransport connects instances of armdomainservices.OuContainerClient to instances of OuContainerServer. Don't use this type directly, use NewOuContainerServerTransport instead.

func NewOuContainerServerTransport

func NewOuContainerServerTransport(srv *OuContainerServer) *OuContainerServerTransport

NewOuContainerServerTransport creates a new instance of OuContainerServerTransport with the provided implementation. The returned OuContainerServerTransport instance is connected to an instance of armdomainservices.OuContainerClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OuContainerServerTransport) Do

Do implements the policy.Transporter interface for OuContainerServerTransport.

type Server

type Server struct {
	// BeginCreateOrUpdate is the fake for method Client.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, domainServiceName string, domainService armdomainservices.DomainService, options *armdomainservices.ClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armdomainservices.ClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method Client.BeginDelete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, domainServiceName string, options *armdomainservices.ClientBeginDeleteOptions) (resp azfake.PollerResponder[armdomainservices.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, domainServiceName string, options *armdomainservices.ClientGetOptions) (resp azfake.Responder[armdomainservices.ClientGetResponse], errResp azfake.ErrorResponder)

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

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

	// BeginUpdate is the fake for method Client.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, domainServiceName string, domainService armdomainservices.DomainService, options *armdomainservices.ClientBeginUpdateOptions) (resp azfake.PollerResponder[armdomainservices.ClientUpdateResponse], errResp azfake.ErrorResponder)
}

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

type ServerFactory

type ServerFactory struct {
	Server                        Server
	DomainServiceOperationsServer DomainServiceOperationsServer
	OuContainerServer             OuContainerServer
	OuContainerOperationsServer   OuContainerOperationsServer
}

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

type ServerFactoryTransport

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

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