fake

package
v0.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: 18 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 *armappcomplianceautomation.OperationsClientListOptions) (resp azfake.PagerResponder[armappcomplianceautomation.OperationsClientListResponse])
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armappcomplianceautomation.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 armappcomplianceautomation.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 ReportServer

type ReportServer struct {
	// BeginCreateOrUpdate is the fake for method ReportClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, reportName string, parameters armappcomplianceautomation.ReportResource, options *armappcomplianceautomation.ReportClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armappcomplianceautomation.ReportClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ReportClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, reportName string, options *armappcomplianceautomation.ReportClientBeginDeleteOptions) (resp azfake.PollerResponder[armappcomplianceautomation.ReportClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ReportClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, reportName string, options *armappcomplianceautomation.ReportClientGetOptions) (resp azfake.Responder[armappcomplianceautomation.ReportClientGetResponse], errResp azfake.ErrorResponder)

	// BeginUpdate is the fake for method ReportClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginUpdate func(ctx context.Context, reportName string, parameters armappcomplianceautomation.ReportResourcePatch, options *armappcomplianceautomation.ReportClientBeginUpdateOptions) (resp azfake.PollerResponder[armappcomplianceautomation.ReportClientUpdateResponse], errResp azfake.ErrorResponder)
}

ReportServer is a fake server for instances of the armappcomplianceautomation.ReportClient type.

type ReportServerTransport

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

ReportServerTransport connects instances of armappcomplianceautomation.ReportClient to instances of ReportServer. Don't use this type directly, use NewReportServerTransport instead.

func NewReportServerTransport

func NewReportServerTransport(srv *ReportServer) *ReportServerTransport

NewReportServerTransport creates a new instance of ReportServerTransport with the provided implementation. The returned ReportServerTransport instance is connected to an instance of armappcomplianceautomation.ReportClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ReportServerTransport) Do

Do implements the policy.Transporter interface for ReportServerTransport.

type ReportsServer

type ReportsServer struct {
	// NewListPager is the fake for method ReportsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armappcomplianceautomation.ReportsClientListOptions) (resp azfake.PagerResponder[armappcomplianceautomation.ReportsClientListResponse])
}

ReportsServer is a fake server for instances of the armappcomplianceautomation.ReportsClient type.

type ReportsServerTransport

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

ReportsServerTransport connects instances of armappcomplianceautomation.ReportsClient to instances of ReportsServer. Don't use this type directly, use NewReportsServerTransport instead.

func NewReportsServerTransport

func NewReportsServerTransport(srv *ReportsServer) *ReportsServerTransport

NewReportsServerTransport creates a new instance of ReportsServerTransport with the provided implementation. The returned ReportsServerTransport instance is connected to an instance of armappcomplianceautomation.ReportsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ReportsServerTransport) Do

Do implements the policy.Transporter interface for ReportsServerTransport.

type ServerFactory

type ServerFactory struct {
	OperationsServer OperationsServer
	ReportServer     ReportServer
	ReportsServer    ReportsServer
	SnapshotServer   SnapshotServer
	SnapshotsServer  SnapshotsServer
}

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

type ServerFactoryTransport

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

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

type SnapshotServer struct {
	// BeginDownload is the fake for method SnapshotClient.BeginDownload
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginDownload func(ctx context.Context, reportName string, snapshotName string, parameters armappcomplianceautomation.SnapshotDownloadRequest, options *armappcomplianceautomation.SnapshotClientBeginDownloadOptions) (resp azfake.PollerResponder[armappcomplianceautomation.SnapshotClientDownloadResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SnapshotClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, reportName string, snapshotName string, options *armappcomplianceautomation.SnapshotClientGetOptions) (resp azfake.Responder[armappcomplianceautomation.SnapshotClientGetResponse], errResp azfake.ErrorResponder)
}

SnapshotServer is a fake server for instances of the armappcomplianceautomation.SnapshotClient type.

type SnapshotServerTransport

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

SnapshotServerTransport connects instances of armappcomplianceautomation.SnapshotClient to instances of SnapshotServer. Don't use this type directly, use NewSnapshotServerTransport instead.

func NewSnapshotServerTransport

func NewSnapshotServerTransport(srv *SnapshotServer) *SnapshotServerTransport

NewSnapshotServerTransport creates a new instance of SnapshotServerTransport with the provided implementation. The returned SnapshotServerTransport instance is connected to an instance of armappcomplianceautomation.SnapshotClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SnapshotServerTransport) Do

Do implements the policy.Transporter interface for SnapshotServerTransport.

type SnapshotsServer

type SnapshotsServer struct {
	// NewListPager is the fake for method SnapshotsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(reportName string, options *armappcomplianceautomation.SnapshotsClientListOptions) (resp azfake.PagerResponder[armappcomplianceautomation.SnapshotsClientListResponse])
}

SnapshotsServer is a fake server for instances of the armappcomplianceautomation.SnapshotsClient type.

type SnapshotsServerTransport

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

SnapshotsServerTransport connects instances of armappcomplianceautomation.SnapshotsClient to instances of SnapshotsServer. Don't use this type directly, use NewSnapshotsServerTransport instead.

func NewSnapshotsServerTransport

func NewSnapshotsServerTransport(srv *SnapshotsServer) *SnapshotsServerTransport

NewSnapshotsServerTransport creates a new instance of SnapshotsServerTransport with the provided implementation. The returned SnapshotsServerTransport instance is connected to an instance of armappcomplianceautomation.SnapshotsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SnapshotsServerTransport) Do

Do implements the policy.Transporter interface for SnapshotsServerTransport.

Jump to

Keyboard shortcuts

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