mocks

package
v0.0.0-...-0557d4e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentsModel

type DeploymentsModel struct {
	mock.Mock
}

DeploymentsModel is an autogenerated mock type for the DeploymentsModel type

func (*DeploymentsModel) AbortDeployment

func (_m *DeploymentsModel) AbortDeployment(ctx context.Context, deploymentID string) error

AbortDeployment provides a mock function with given fields: ctx, deploymentID

func (*DeploymentsModel) CreateDeployment

func (_m *DeploymentsModel) CreateDeployment(ctx context.Context, constructor *deployments.DeploymentConstructor) (string, error)

CreateDeployment provides a mock function with given fields: ctx, constructor

func (*DeploymentsModel) DecommissionDevice

func (_m *DeploymentsModel) DecommissionDevice(ctx context.Context, deviceID string) error

DecommissionDevice provides a mock function with given fields: ctx, deviceID

func (*DeploymentsModel) GetDeployment

func (_m *DeploymentsModel) GetDeployment(ctx context.Context, deploymentID string) (*deployments.Deployment, error)

GetDeployment provides a mock function with given fields: ctx, deploymentID

func (*DeploymentsModel) GetDeploymentForDeviceWithCurrent

func (_m *DeploymentsModel) GetDeploymentForDeviceWithCurrent(ctx context.Context, deviceID string, current deployments.InstalledDeviceDeployment) (*deployments.DeploymentInstructions, error)

GetDeploymentForDeviceWithCurrent provides a mock function with given fields: ctx, deviceID, current

func (*DeploymentsModel) GetDeploymentStats

func (_m *DeploymentsModel) GetDeploymentStats(ctx context.Context, deploymentID string) (deployments.Stats, error)

GetDeploymentStats provides a mock function with given fields: ctx, deploymentID

func (*DeploymentsModel) GetDeviceDeploymentLog

func (_m *DeploymentsModel) GetDeviceDeploymentLog(ctx context.Context, deviceID string, deploymentID string) (*deployments.DeploymentLog, error)

GetDeviceDeploymentLog provides a mock function with given fields: ctx, deviceID, deploymentID

func (*DeploymentsModel) GetDeviceStatusesForDeployment

func (_m *DeploymentsModel) GetDeviceStatusesForDeployment(ctx context.Context, deploymentID string) ([]deployments.DeviceDeployment, error)

GetDeviceStatusesForDeployment provides a mock function with given fields: ctx, deploymentID

func (*DeploymentsModel) HasDeploymentForDevice

func (_m *DeploymentsModel) HasDeploymentForDevice(ctx context.Context, deploymentID string, deviceID string) (bool, error)

HasDeploymentForDevice provides a mock function with given fields: ctx, deploymentID, deviceID

func (*DeploymentsModel) IsDeploymentFinished

func (_m *DeploymentsModel) IsDeploymentFinished(ctx context.Context, deploymentID string) (bool, error)

IsDeploymentFinished provides a mock function with given fields: ctx, deploymentID

func (*DeploymentsModel) LookupDeployment

func (_m *DeploymentsModel) LookupDeployment(ctx context.Context, query deployments.Query) ([]*deployments.Deployment, error)

LookupDeployment provides a mock function with given fields: ctx, query

func (*DeploymentsModel) SaveDeviceDeploymentLog

func (_m *DeploymentsModel) SaveDeviceDeploymentLog(ctx context.Context, deviceID string, deploymentID string, logs []deployments.LogMessage) error

SaveDeviceDeploymentLog provides a mock function with given fields: ctx, deviceID, deploymentID, logs

func (*DeploymentsModel) UpdateDeviceDeploymentStatus

func (_m *DeploymentsModel) UpdateDeviceDeploymentStatus(ctx context.Context, deploymentID string, deviceID string, status deployments.DeviceDeploymentStatus) error

UpdateDeviceDeploymentStatus provides a mock function with given fields: ctx, deploymentID, deviceID, status

Jump to

Keyboard shortcuts

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