fake

package
v0.7.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 GetServer

type GetServer struct {
	// TenantOptedIn is the fake for method GetClient.TenantOptedIn
	// HTTP status codes to indicate success: http.StatusOK
	TenantOptedIn func(ctx context.Context, tenantID string, options *armcustomerlockbox.GetClientTenantOptedInOptions) (resp azfake.Responder[armcustomerlockbox.GetClientTenantOptedInResponse], errResp azfake.ErrorResponder)
}

GetServer is a fake server for instances of the armcustomerlockbox.GetClient type.

type GetServerTransport

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

GetServerTransport connects instances of armcustomerlockbox.GetClient to instances of GetServer. Don't use this type directly, use NewGetServerTransport instead.

func NewGetServerTransport

func NewGetServerTransport(srv *GetServer) *GetServerTransport

NewGetServerTransport creates a new instance of GetServerTransport with the provided implementation. The returned GetServerTransport instance is connected to an instance of armcustomerlockbox.GetClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*GetServerTransport) Do

Do implements the policy.Transporter interface for GetServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armcustomerlockbox.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 armcustomerlockbox.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 PostServer

type PostServer struct {
	// DisableLockbox is the fake for method PostClient.DisableLockbox
	// HTTP status codes to indicate success: http.StatusOK
	DisableLockbox func(ctx context.Context, options *armcustomerlockbox.PostClientDisableLockboxOptions) (resp azfake.Responder[armcustomerlockbox.PostClientDisableLockboxResponse], errResp azfake.ErrorResponder)

	// EnableLockbox is the fake for method PostClient.EnableLockbox
	// HTTP status codes to indicate success: http.StatusOK
	EnableLockbox func(ctx context.Context, options *armcustomerlockbox.PostClientEnableLockboxOptions) (resp azfake.Responder[armcustomerlockbox.PostClientEnableLockboxResponse], errResp azfake.ErrorResponder)
}

PostServer is a fake server for instances of the armcustomerlockbox.PostClient type.

type PostServerTransport

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

PostServerTransport connects instances of armcustomerlockbox.PostClient to instances of PostServer. Don't use this type directly, use NewPostServerTransport instead.

func NewPostServerTransport

func NewPostServerTransport(srv *PostServer) *PostServerTransport

NewPostServerTransport creates a new instance of PostServerTransport with the provided implementation. The returned PostServerTransport instance is connected to an instance of armcustomerlockbox.PostClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PostServerTransport) Do

Do implements the policy.Transporter interface for PostServerTransport.

type RequestsServer

type RequestsServer struct {
	// Get is the fake for method RequestsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, requestID string, subscriptionID string, options *armcustomerlockbox.RequestsClientGetOptions) (resp azfake.Responder[armcustomerlockbox.RequestsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method RequestsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(subscriptionID string, options *armcustomerlockbox.RequestsClientListOptions) (resp azfake.PagerResponder[armcustomerlockbox.RequestsClientListResponse])

	// UpdateStatus is the fake for method RequestsClient.UpdateStatus
	// HTTP status codes to indicate success: http.StatusOK
	UpdateStatus func(ctx context.Context, subscriptionID string, requestID string, approval armcustomerlockbox.Approval, options *armcustomerlockbox.RequestsClientUpdateStatusOptions) (resp azfake.Responder[armcustomerlockbox.RequestsClientUpdateStatusResponse], errResp azfake.ErrorResponder)
}

RequestsServer is a fake server for instances of the armcustomerlockbox.RequestsClient type.

type RequestsServerTransport

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

RequestsServerTransport connects instances of armcustomerlockbox.RequestsClient to instances of RequestsServer. Don't use this type directly, use NewRequestsServerTransport instead.

func NewRequestsServerTransport

func NewRequestsServerTransport(srv *RequestsServer) *RequestsServerTransport

NewRequestsServerTransport creates a new instance of RequestsServerTransport with the provided implementation. The returned RequestsServerTransport instance is connected to an instance of armcustomerlockbox.RequestsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RequestsServerTransport) Do

Do implements the policy.Transporter interface for RequestsServerTransport.

type ServerFactory

type ServerFactory struct {
	GetServer        GetServer
	OperationsServer OperationsServer
	PostServer       PostServer
	RequestsServer   RequestsServer
}

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

type ServerFactoryTransport

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

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