fake

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 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 MultipleActivationKeysServer

type MultipleActivationKeysServer struct {
	// BeginCreate is the fake for method MultipleActivationKeysClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey armwindowsesu.MultipleActivationKey, options *armwindowsesu.MultipleActivationKeysClientBeginCreateOptions) (resp azfake.PollerResponder[armwindowsesu.MultipleActivationKeysClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method MultipleActivationKeysClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, options *armwindowsesu.MultipleActivationKeysClientDeleteOptions) (resp azfake.Responder[armwindowsesu.MultipleActivationKeysClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method MultipleActivationKeysClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, options *armwindowsesu.MultipleActivationKeysClientGetOptions) (resp azfake.Responder[armwindowsesu.MultipleActivationKeysClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method MultipleActivationKeysClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armwindowsesu.MultipleActivationKeysClientListOptions) (resp azfake.PagerResponder[armwindowsesu.MultipleActivationKeysClientListResponse])

	// NewListByResourceGroupPager is the fake for method MultipleActivationKeysClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armwindowsesu.MultipleActivationKeysClientListByResourceGroupOptions) (resp azfake.PagerResponder[armwindowsesu.MultipleActivationKeysClientListByResourceGroupResponse])

	// Update is the fake for method MultipleActivationKeysClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, multipleActivationKeyName string, multipleActivationKey armwindowsesu.MultipleActivationKeyUpdate, options *armwindowsesu.MultipleActivationKeysClientUpdateOptions) (resp azfake.Responder[armwindowsesu.MultipleActivationKeysClientUpdateResponse], errResp azfake.ErrorResponder)
}

MultipleActivationKeysServer is a fake server for instances of the armwindowsesu.MultipleActivationKeysClient type.

type MultipleActivationKeysServerTransport

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

MultipleActivationKeysServerTransport connects instances of armwindowsesu.MultipleActivationKeysClient to instances of MultipleActivationKeysServer. Don't use this type directly, use NewMultipleActivationKeysServerTransport instead.

func NewMultipleActivationKeysServerTransport

func NewMultipleActivationKeysServerTransport(srv *MultipleActivationKeysServer) *MultipleActivationKeysServerTransport

NewMultipleActivationKeysServerTransport creates a new instance of MultipleActivationKeysServerTransport with the provided implementation. The returned MultipleActivationKeysServerTransport instance is connected to an instance of armwindowsesu.MultipleActivationKeysClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*MultipleActivationKeysServerTransport) Do

Do implements the policy.Transporter interface for MultipleActivationKeysServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armwindowsesu.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 armwindowsesu.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 ServerFactory

type ServerFactory struct {
	MultipleActivationKeysServer MultipleActivationKeysServer
	OperationsServer             OperationsServer
}

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

type ServerFactoryTransport

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

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