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 DefenderSettingsServer

type DefenderSettingsServer struct {
	// CreateOrUpdate is the fake for method DefenderSettingsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, defenderSettingsModel armiotsecurity.DefenderSettingsModel, options *armiotsecurity.DefenderSettingsClientCreateOrUpdateOptions) (resp azfake.Responder[armiotsecurity.DefenderSettingsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method DefenderSettingsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, options *armiotsecurity.DefenderSettingsClientDeleteOptions) (resp azfake.Responder[armiotsecurity.DefenderSettingsClientDeleteResponse], errResp azfake.ErrorResponder)

	// DownloadManagerActivation is the fake for method DefenderSettingsClient.DownloadManagerActivation
	// HTTP status codes to indicate success: http.StatusOK
	DownloadManagerActivation func(ctx context.Context, options *armiotsecurity.DefenderSettingsClientDownloadManagerActivationOptions) (resp azfake.Responder[armiotsecurity.DefenderSettingsClientDownloadManagerActivationResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method DefenderSettingsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, options *armiotsecurity.DefenderSettingsClientGetOptions) (resp azfake.Responder[armiotsecurity.DefenderSettingsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method DefenderSettingsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, options *armiotsecurity.DefenderSettingsClientListOptions) (resp azfake.Responder[armiotsecurity.DefenderSettingsClientListResponse], errResp azfake.ErrorResponder)

	// PackageDownloads is the fake for method DefenderSettingsClient.PackageDownloads
	// HTTP status codes to indicate success: http.StatusOK
	PackageDownloads func(ctx context.Context, options *armiotsecurity.DefenderSettingsClientPackageDownloadsOptions) (resp azfake.Responder[armiotsecurity.DefenderSettingsClientPackageDownloadsResponse], errResp azfake.ErrorResponder)
}

DefenderSettingsServer is a fake server for instances of the armiotsecurity.DefenderSettingsClient type.

type DefenderSettingsServerTransport

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

DefenderSettingsServerTransport connects instances of armiotsecurity.DefenderSettingsClient to instances of DefenderSettingsServer. Don't use this type directly, use NewDefenderSettingsServerTransport instead.

func NewDefenderSettingsServerTransport

func NewDefenderSettingsServerTransport(srv *DefenderSettingsServer) *DefenderSettingsServerTransport

NewDefenderSettingsServerTransport creates a new instance of DefenderSettingsServerTransport with the provided implementation. The returned DefenderSettingsServerTransport instance is connected to an instance of armiotsecurity.DefenderSettingsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DefenderSettingsServerTransport) Do

Do implements the policy.Transporter interface for DefenderSettingsServerTransport.

type DeviceGroupsServer

type DeviceGroupsServer struct {
	// CreateOrUpdate is the fake for method DeviceGroupsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, iotDefenderLocation string, deviceGroupName string, deviceGroupModel armiotsecurity.DeviceGroupModel, options *armiotsecurity.DeviceGroupsClientCreateOrUpdateOptions) (resp azfake.Responder[armiotsecurity.DeviceGroupsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method DeviceGroupsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, iotDefenderLocation string, deviceGroupName string, options *armiotsecurity.DeviceGroupsClientDeleteOptions) (resp azfake.Responder[armiotsecurity.DeviceGroupsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method DeviceGroupsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, iotDefenderLocation string, deviceGroupName string, options *armiotsecurity.DeviceGroupsClientGetOptions) (resp azfake.Responder[armiotsecurity.DeviceGroupsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method DeviceGroupsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(iotDefenderLocation string, options *armiotsecurity.DeviceGroupsClientListOptions) (resp azfake.PagerResponder[armiotsecurity.DeviceGroupsClientListResponse])
}

DeviceGroupsServer is a fake server for instances of the armiotsecurity.DeviceGroupsClient type.

type DeviceGroupsServerTransport

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

DeviceGroupsServerTransport connects instances of armiotsecurity.DeviceGroupsClient to instances of DeviceGroupsServer. Don't use this type directly, use NewDeviceGroupsServerTransport instead.

func NewDeviceGroupsServerTransport

func NewDeviceGroupsServerTransport(srv *DeviceGroupsServer) *DeviceGroupsServerTransport

NewDeviceGroupsServerTransport creates a new instance of DeviceGroupsServerTransport with the provided implementation. The returned DeviceGroupsServerTransport instance is connected to an instance of armiotsecurity.DeviceGroupsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DeviceGroupsServerTransport) Do

Do implements the policy.Transporter interface for DeviceGroupsServerTransport.

type DevicesServer

type DevicesServer struct {
	// Get is the fake for method DevicesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, iotDefenderLocation string, deviceGroupName string, deviceID string, options *armiotsecurity.DevicesClientGetOptions) (resp azfake.Responder[armiotsecurity.DevicesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method DevicesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(iotDefenderLocation string, deviceGroupName string, options *armiotsecurity.DevicesClientListOptions) (resp azfake.PagerResponder[armiotsecurity.DevicesClientListResponse])
}

DevicesServer is a fake server for instances of the armiotsecurity.DevicesClient type.

type DevicesServerTransport

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

DevicesServerTransport connects instances of armiotsecurity.DevicesClient to instances of DevicesServer. Don't use this type directly, use NewDevicesServerTransport instead.

func NewDevicesServerTransport

func NewDevicesServerTransport(srv *DevicesServer) *DevicesServerTransport

NewDevicesServerTransport creates a new instance of DevicesServerTransport with the provided implementation. The returned DevicesServerTransport instance is connected to an instance of armiotsecurity.DevicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*DevicesServerTransport) Do

Do implements the policy.Transporter interface for DevicesServerTransport.

type LocationsServer

type LocationsServer struct {
	// Get is the fake for method LocationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, iotDefenderLocation string, options *armiotsecurity.LocationsClientGetOptions) (resp azfake.Responder[armiotsecurity.LocationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method LocationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armiotsecurity.LocationsClientListOptions) (resp azfake.PagerResponder[armiotsecurity.LocationsClientListResponse])
}

LocationsServer is a fake server for instances of the armiotsecurity.LocationsClient type.

type LocationsServerTransport

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

LocationsServerTransport connects instances of armiotsecurity.LocationsClient to instances of LocationsServer. Don't use this type directly, use NewLocationsServerTransport instead.

func NewLocationsServerTransport

func NewLocationsServerTransport(srv *LocationsServer) *LocationsServerTransport

NewLocationsServerTransport creates a new instance of LocationsServerTransport with the provided implementation. The returned LocationsServerTransport instance is connected to an instance of armiotsecurity.LocationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LocationsServerTransport) Do

Do implements the policy.Transporter interface for LocationsServerTransport.

type OnPremiseSensorsServer

type OnPremiseSensorsServer struct {
	// CreateOrUpdate is the fake for method OnPremiseSensorsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, onPremiseSensorName string, options *armiotsecurity.OnPremiseSensorsClientCreateOrUpdateOptions) (resp azfake.Responder[armiotsecurity.OnPremiseSensorsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method OnPremiseSensorsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, onPremiseSensorName string, options *armiotsecurity.OnPremiseSensorsClientDeleteOptions) (resp azfake.Responder[armiotsecurity.OnPremiseSensorsClientDeleteResponse], errResp azfake.ErrorResponder)

	// DownloadActivation is the fake for method OnPremiseSensorsClient.DownloadActivation
	// HTTP status codes to indicate success: http.StatusOK
	DownloadActivation func(ctx context.Context, onPremiseSensorName string, options *armiotsecurity.OnPremiseSensorsClientDownloadActivationOptions) (resp azfake.Responder[armiotsecurity.OnPremiseSensorsClientDownloadActivationResponse], errResp azfake.ErrorResponder)

	// DownloadResetPassword is the fake for method OnPremiseSensorsClient.DownloadResetPassword
	// HTTP status codes to indicate success: http.StatusOK
	DownloadResetPassword func(ctx context.Context, onPremiseSensorName string, body armiotsecurity.ResetPasswordInput, options *armiotsecurity.OnPremiseSensorsClientDownloadResetPasswordOptions) (resp azfake.Responder[armiotsecurity.OnPremiseSensorsClientDownloadResetPasswordResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method OnPremiseSensorsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, onPremiseSensorName string, options *armiotsecurity.OnPremiseSensorsClientGetOptions) (resp azfake.Responder[armiotsecurity.OnPremiseSensorsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method OnPremiseSensorsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, options *armiotsecurity.OnPremiseSensorsClientListOptions) (resp azfake.Responder[armiotsecurity.OnPremiseSensorsClientListResponse], errResp azfake.ErrorResponder)
}

OnPremiseSensorsServer is a fake server for instances of the armiotsecurity.OnPremiseSensorsClient type.

type OnPremiseSensorsServerTransport

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

OnPremiseSensorsServerTransport connects instances of armiotsecurity.OnPremiseSensorsClient to instances of OnPremiseSensorsServer. Don't use this type directly, use NewOnPremiseSensorsServerTransport instead.

func NewOnPremiseSensorsServerTransport

func NewOnPremiseSensorsServerTransport(srv *OnPremiseSensorsServer) *OnPremiseSensorsServerTransport

NewOnPremiseSensorsServerTransport creates a new instance of OnPremiseSensorsServerTransport with the provided implementation. The returned OnPremiseSensorsServerTransport instance is connected to an instance of armiotsecurity.OnPremiseSensorsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OnPremiseSensorsServerTransport) Do

Do implements the policy.Transporter interface for OnPremiseSensorsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armiotsecurity.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 armiotsecurity.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 SensorsServer

type SensorsServer struct {
	// CreateOrUpdate is the fake for method SensorsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, scope string, sensorName string, sensorModel armiotsecurity.SensorModel, options *armiotsecurity.SensorsClientCreateOrUpdateOptions) (resp azfake.Responder[armiotsecurity.SensorsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SensorsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, scope string, sensorName string, options *armiotsecurity.SensorsClientDeleteOptions) (resp azfake.Responder[armiotsecurity.SensorsClientDeleteResponse], errResp azfake.ErrorResponder)

	// DownloadActivation is the fake for method SensorsClient.DownloadActivation
	// HTTP status codes to indicate success: http.StatusOK
	DownloadActivation func(ctx context.Context, scope string, sensorName string, options *armiotsecurity.SensorsClientDownloadActivationOptions) (resp azfake.Responder[armiotsecurity.SensorsClientDownloadActivationResponse], errResp azfake.ErrorResponder)

	// DownloadResetPassword is the fake for method SensorsClient.DownloadResetPassword
	// HTTP status codes to indicate success: http.StatusOK
	DownloadResetPassword func(ctx context.Context, scope string, sensorName string, body armiotsecurity.ResetPasswordInput, options *armiotsecurity.SensorsClientDownloadResetPasswordOptions) (resp azfake.Responder[armiotsecurity.SensorsClientDownloadResetPasswordResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SensorsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, scope string, sensorName string, options *armiotsecurity.SensorsClientGetOptions) (resp azfake.Responder[armiotsecurity.SensorsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method SensorsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, scope string, options *armiotsecurity.SensorsClientListOptions) (resp azfake.Responder[armiotsecurity.SensorsClientListResponse], errResp azfake.ErrorResponder)

	// TriggerTiPackageUpdate is the fake for method SensorsClient.TriggerTiPackageUpdate
	// HTTP status codes to indicate success: http.StatusOK
	TriggerTiPackageUpdate func(ctx context.Context, scope string, sensorName string, options *armiotsecurity.SensorsClientTriggerTiPackageUpdateOptions) (resp azfake.Responder[armiotsecurity.SensorsClientTriggerTiPackageUpdateResponse], errResp azfake.ErrorResponder)
}

SensorsServer is a fake server for instances of the armiotsecurity.SensorsClient type.

type SensorsServerTransport

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

SensorsServerTransport connects instances of armiotsecurity.SensorsClient to instances of SensorsServer. Don't use this type directly, use NewSensorsServerTransport instead.

func NewSensorsServerTransport

func NewSensorsServerTransport(srv *SensorsServer) *SensorsServerTransport

NewSensorsServerTransport creates a new instance of SensorsServerTransport with the provided implementation. The returned SensorsServerTransport instance is connected to an instance of armiotsecurity.SensorsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SensorsServerTransport) Do

Do implements the policy.Transporter interface for SensorsServerTransport.

type ServerFactory

type ServerFactory struct {
	DefenderSettingsServer DefenderSettingsServer
	DeviceGroupsServer     DeviceGroupsServer
	DevicesServer          DevicesServer
	LocationsServer        LocationsServer
	OnPremiseSensorsServer OnPremiseSensorsServer
	OperationsServer       OperationsServer
	SensorsServer          SensorsServer
	SitesServer            SitesServer
}

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

type ServerFactoryTransport

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

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

type SitesServer struct {
	// CreateOrUpdate is the fake for method SitesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, scope string, siteModel armiotsecurity.SiteModel, options *armiotsecurity.SitesClientCreateOrUpdateOptions) (resp azfake.Responder[armiotsecurity.SitesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method SitesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, scope string, options *armiotsecurity.SitesClientDeleteOptions) (resp azfake.Responder[armiotsecurity.SitesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SitesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, scope string, options *armiotsecurity.SitesClientGetOptions) (resp azfake.Responder[armiotsecurity.SitesClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method SitesClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, scope string, options *armiotsecurity.SitesClientListOptions) (resp azfake.Responder[armiotsecurity.SitesClientListResponse], errResp azfake.ErrorResponder)
}

SitesServer is a fake server for instances of the armiotsecurity.SitesClient type.

type SitesServerTransport

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

SitesServerTransport connects instances of armiotsecurity.SitesClient to instances of SitesServer. Don't use this type directly, use NewSitesServerTransport instead.

func NewSitesServerTransport

func NewSitesServerTransport(srv *SitesServer) *SitesServerTransport

NewSitesServerTransport creates a new instance of SitesServerTransport with the provided implementation. The returned SitesServerTransport instance is connected to an instance of armiotsecurity.SitesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SitesServerTransport) Do

Do implements the policy.Transporter interface for SitesServerTransport.

Jump to

Keyboard shortcuts

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