fake

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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 BinaryHardeningServer added in v1.0.0

type BinaryHardeningServer struct {
	// NewListByFirmwarePager is the fake for method BinaryHardeningClient.NewListByFirmwarePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFirmwarePager func(resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.BinaryHardeningClientListByFirmwareOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.BinaryHardeningClientListByFirmwareResponse])
}

BinaryHardeningServer is a fake server for instances of the armiotfirmwaredefense.BinaryHardeningClient type.

type BinaryHardeningServerTransport added in v1.0.0

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

BinaryHardeningServerTransport connects instances of armiotfirmwaredefense.BinaryHardeningClient to instances of BinaryHardeningServer. Don't use this type directly, use NewBinaryHardeningServerTransport instead.

func NewBinaryHardeningServerTransport added in v1.0.0

func NewBinaryHardeningServerTransport(srv *BinaryHardeningServer) *BinaryHardeningServerTransport

NewBinaryHardeningServerTransport creates a new instance of BinaryHardeningServerTransport with the provided implementation. The returned BinaryHardeningServerTransport instance is connected to an instance of armiotfirmwaredefense.BinaryHardeningClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*BinaryHardeningServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for BinaryHardeningServerTransport.

type CryptoCertificatesServer added in v1.0.0

type CryptoCertificatesServer struct {
	// NewListByFirmwarePager is the fake for method CryptoCertificatesClient.NewListByFirmwarePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFirmwarePager func(resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.CryptoCertificatesClientListByFirmwareOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.CryptoCertificatesClientListByFirmwareResponse])
}

CryptoCertificatesServer is a fake server for instances of the armiotfirmwaredefense.CryptoCertificatesClient type.

type CryptoCertificatesServerTransport added in v1.0.0

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

CryptoCertificatesServerTransport connects instances of armiotfirmwaredefense.CryptoCertificatesClient to instances of CryptoCertificatesServer. Don't use this type directly, use NewCryptoCertificatesServerTransport instead.

func NewCryptoCertificatesServerTransport added in v1.0.0

func NewCryptoCertificatesServerTransport(srv *CryptoCertificatesServer) *CryptoCertificatesServerTransport

NewCryptoCertificatesServerTransport creates a new instance of CryptoCertificatesServerTransport with the provided implementation. The returned CryptoCertificatesServerTransport instance is connected to an instance of armiotfirmwaredefense.CryptoCertificatesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CryptoCertificatesServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for CryptoCertificatesServerTransport.

type CryptoKeysServer added in v1.0.0

type CryptoKeysServer struct {
	// NewListByFirmwarePager is the fake for method CryptoKeysClient.NewListByFirmwarePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFirmwarePager func(resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.CryptoKeysClientListByFirmwareOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.CryptoKeysClientListByFirmwareResponse])
}

CryptoKeysServer is a fake server for instances of the armiotfirmwaredefense.CryptoKeysClient type.

type CryptoKeysServerTransport added in v1.0.0

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

CryptoKeysServerTransport connects instances of armiotfirmwaredefense.CryptoKeysClient to instances of CryptoKeysServer. Don't use this type directly, use NewCryptoKeysServerTransport instead.

func NewCryptoKeysServerTransport added in v1.0.0

func NewCryptoKeysServerTransport(srv *CryptoKeysServer) *CryptoKeysServerTransport

NewCryptoKeysServerTransport creates a new instance of CryptoKeysServerTransport with the provided implementation. The returned CryptoKeysServerTransport instance is connected to an instance of armiotfirmwaredefense.CryptoKeysClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CryptoKeysServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for CryptoKeysServerTransport.

type CvesServer added in v1.0.0

type CvesServer struct {
	// NewListByFirmwarePager is the fake for method CvesClient.NewListByFirmwarePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFirmwarePager func(resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.CvesClientListByFirmwareOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.CvesClientListByFirmwareResponse])
}

CvesServer is a fake server for instances of the armiotfirmwaredefense.CvesClient type.

type CvesServerTransport added in v1.0.0

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

CvesServerTransport connects instances of armiotfirmwaredefense.CvesClient to instances of CvesServer. Don't use this type directly, use NewCvesServerTransport instead.

func NewCvesServerTransport added in v1.0.0

func NewCvesServerTransport(srv *CvesServer) *CvesServerTransport

NewCvesServerTransport creates a new instance of CvesServerTransport with the provided implementation. The returned CvesServerTransport instance is connected to an instance of armiotfirmwaredefense.CvesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CvesServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for CvesServerTransport.

type FirmwaresServer added in v1.0.0

type FirmwaresServer struct {
	// Create is the fake for method FirmwaresClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, workspaceName string, firmwareID string, firmware armiotfirmwaredefense.Firmware, options *armiotfirmwaredefense.FirmwaresClientCreateOptions) (resp azfake.Responder[armiotfirmwaredefense.FirmwaresClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method FirmwaresClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.FirmwaresClientDeleteOptions) (resp azfake.Responder[armiotfirmwaredefense.FirmwaresClientDeleteResponse], errResp azfake.ErrorResponder)

	// GenerateDownloadURL is the fake for method FirmwaresClient.GenerateDownloadURL
	// HTTP status codes to indicate success: http.StatusOK
	GenerateDownloadURL func(ctx context.Context, resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.FirmwaresClientGenerateDownloadURLOptions) (resp azfake.Responder[armiotfirmwaredefense.FirmwaresClientGenerateDownloadURLResponse], errResp azfake.ErrorResponder)

	// GenerateFilesystemDownloadURL is the fake for method FirmwaresClient.GenerateFilesystemDownloadURL
	// HTTP status codes to indicate success: http.StatusOK
	GenerateFilesystemDownloadURL func(ctx context.Context, resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.FirmwaresClientGenerateFilesystemDownloadURLOptions) (resp azfake.Responder[armiotfirmwaredefense.FirmwaresClientGenerateFilesystemDownloadURLResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method FirmwaresClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.FirmwaresClientGetOptions) (resp azfake.Responder[armiotfirmwaredefense.FirmwaresClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByWorkspacePager is the fake for method FirmwaresClient.NewListByWorkspacePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByWorkspacePager func(resourceGroupName string, workspaceName string, options *armiotfirmwaredefense.FirmwaresClientListByWorkspaceOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.FirmwaresClientListByWorkspaceResponse])

	// Update is the fake for method FirmwaresClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, workspaceName string, firmwareID string, firmware armiotfirmwaredefense.FirmwareUpdateDefinition, options *armiotfirmwaredefense.FirmwaresClientUpdateOptions) (resp azfake.Responder[armiotfirmwaredefense.FirmwaresClientUpdateResponse], errResp azfake.ErrorResponder)
}

FirmwaresServer is a fake server for instances of the armiotfirmwaredefense.FirmwaresClient type.

type FirmwaresServerTransport added in v1.0.0

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

FirmwaresServerTransport connects instances of armiotfirmwaredefense.FirmwaresClient to instances of FirmwaresServer. Don't use this type directly, use NewFirmwaresServerTransport instead.

func NewFirmwaresServerTransport added in v1.0.0

func NewFirmwaresServerTransport(srv *FirmwaresServer) *FirmwaresServerTransport

NewFirmwaresServerTransport creates a new instance of FirmwaresServerTransport with the provided implementation. The returned FirmwaresServerTransport instance is connected to an instance of armiotfirmwaredefense.FirmwaresClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*FirmwaresServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for FirmwaresServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armiotfirmwaredefense.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 armiotfirmwaredefense.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 PasswordHashesServer added in v1.0.0

type PasswordHashesServer struct {
	// NewListByFirmwarePager is the fake for method PasswordHashesClient.NewListByFirmwarePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFirmwarePager func(resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.PasswordHashesClientListByFirmwareOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.PasswordHashesClientListByFirmwareResponse])
}

PasswordHashesServer is a fake server for instances of the armiotfirmwaredefense.PasswordHashesClient type.

type PasswordHashesServerTransport added in v1.0.0

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

PasswordHashesServerTransport connects instances of armiotfirmwaredefense.PasswordHashesClient to instances of PasswordHashesServer. Don't use this type directly, use NewPasswordHashesServerTransport instead.

func NewPasswordHashesServerTransport added in v1.0.0

func NewPasswordHashesServerTransport(srv *PasswordHashesServer) *PasswordHashesServerTransport

NewPasswordHashesServerTransport creates a new instance of PasswordHashesServerTransport with the provided implementation. The returned PasswordHashesServerTransport instance is connected to an instance of armiotfirmwaredefense.PasswordHashesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PasswordHashesServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for PasswordHashesServerTransport.

type SbomComponentsServer added in v1.0.0

type SbomComponentsServer struct {
	// NewListByFirmwarePager is the fake for method SbomComponentsClient.NewListByFirmwarePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFirmwarePager func(resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.SbomComponentsClientListByFirmwareOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.SbomComponentsClientListByFirmwareResponse])
}

SbomComponentsServer is a fake server for instances of the armiotfirmwaredefense.SbomComponentsClient type.

type SbomComponentsServerTransport added in v1.0.0

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

SbomComponentsServerTransport connects instances of armiotfirmwaredefense.SbomComponentsClient to instances of SbomComponentsServer. Don't use this type directly, use NewSbomComponentsServerTransport instead.

func NewSbomComponentsServerTransport added in v1.0.0

func NewSbomComponentsServerTransport(srv *SbomComponentsServer) *SbomComponentsServerTransport

NewSbomComponentsServerTransport creates a new instance of SbomComponentsServerTransport with the provided implementation. The returned SbomComponentsServerTransport instance is connected to an instance of armiotfirmwaredefense.SbomComponentsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SbomComponentsServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for SbomComponentsServerTransport.

type ServerFactory

type ServerFactory struct {
	BinaryHardeningServer    BinaryHardeningServer
	CryptoCertificatesServer CryptoCertificatesServer
	CryptoKeysServer         CryptoKeysServer
	CvesServer               CvesServer
	FirmwaresServer          FirmwaresServer
	OperationsServer         OperationsServer
	PasswordHashesServer     PasswordHashesServer
	SbomComponentsServer     SbomComponentsServer
	SummariesServer          SummariesServer
	WorkspacesServer         WorkspacesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armiotfirmwaredefense.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 armiotfirmwaredefense.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 SummariesServer added in v1.0.0

type SummariesServer struct {
	// Get is the fake for method SummariesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, firmwareID string, summaryName armiotfirmwaredefense.SummaryName, options *armiotfirmwaredefense.SummariesClientGetOptions) (resp azfake.Responder[armiotfirmwaredefense.SummariesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByFirmwarePager is the fake for method SummariesClient.NewListByFirmwarePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByFirmwarePager func(resourceGroupName string, workspaceName string, firmwareID string, options *armiotfirmwaredefense.SummariesClientListByFirmwareOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.SummariesClientListByFirmwareResponse])
}

SummariesServer is a fake server for instances of the armiotfirmwaredefense.SummariesClient type.

type SummariesServerTransport added in v1.0.0

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

SummariesServerTransport connects instances of armiotfirmwaredefense.SummariesClient to instances of SummariesServer. Don't use this type directly, use NewSummariesServerTransport instead.

func NewSummariesServerTransport added in v1.0.0

func NewSummariesServerTransport(srv *SummariesServer) *SummariesServerTransport

NewSummariesServerTransport creates a new instance of SummariesServerTransport with the provided implementation. The returned SummariesServerTransport instance is connected to an instance of armiotfirmwaredefense.SummariesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SummariesServerTransport) Do added in v1.0.0

Do implements the policy.Transporter interface for SummariesServerTransport.

type WorkspacesServer

type WorkspacesServer struct {
	// Create is the fake for method WorkspacesClient.Create
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	Create func(ctx context.Context, resourceGroupName string, workspaceName string, workspace armiotfirmwaredefense.Workspace, options *armiotfirmwaredefense.WorkspacesClientCreateOptions) (resp azfake.Responder[armiotfirmwaredefense.WorkspacesClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method WorkspacesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, workspaceName string, options *armiotfirmwaredefense.WorkspacesClientDeleteOptions) (resp azfake.Responder[armiotfirmwaredefense.WorkspacesClientDeleteResponse], errResp azfake.ErrorResponder)

	// GenerateUploadURL is the fake for method WorkspacesClient.GenerateUploadURL
	// HTTP status codes to indicate success: http.StatusOK
	GenerateUploadURL func(ctx context.Context, resourceGroupName string, workspaceName string, generateUploadURL armiotfirmwaredefense.GenerateUploadURLRequest, options *armiotfirmwaredefense.WorkspacesClientGenerateUploadURLOptions) (resp azfake.Responder[armiotfirmwaredefense.WorkspacesClientGenerateUploadURLResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method WorkspacesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, workspaceName string, options *armiotfirmwaredefense.WorkspacesClientGetOptions) (resp azfake.Responder[armiotfirmwaredefense.WorkspacesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListByResourceGroupPager is the fake for method WorkspacesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armiotfirmwaredefense.WorkspacesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.WorkspacesClientListByResourceGroupResponse])

	// NewListBySubscriptionPager is the fake for method WorkspacesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armiotfirmwaredefense.WorkspacesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armiotfirmwaredefense.WorkspacesClientListBySubscriptionResponse])

	// Update is the fake for method WorkspacesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, workspaceName string, workspace armiotfirmwaredefense.WorkspaceUpdateDefinition, options *armiotfirmwaredefense.WorkspacesClientUpdateOptions) (resp azfake.Responder[armiotfirmwaredefense.WorkspacesClientUpdateResponse], errResp azfake.ErrorResponder)
}

WorkspacesServer is a fake server for instances of the armiotfirmwaredefense.WorkspacesClient type.

type WorkspacesServerTransport

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

WorkspacesServerTransport connects instances of armiotfirmwaredefense.WorkspacesClient to instances of WorkspacesServer. Don't use this type directly, use NewWorkspacesServerTransport instead.

func NewWorkspacesServerTransport

func NewWorkspacesServerTransport(srv *WorkspacesServer) *WorkspacesServerTransport

NewWorkspacesServerTransport creates a new instance of WorkspacesServerTransport with the provided implementation. The returned WorkspacesServerTransport instance is connected to an instance of armiotfirmwaredefense.WorkspacesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*WorkspacesServerTransport) Do

Do implements the policy.Transporter interface for WorkspacesServerTransport.

Jump to

Keyboard shortcuts

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