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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactGetter

type ArtifactGetter struct {
	mock.Mock
}

ArtifactGetter is an autogenerated mock type for the ArtifactGetter type

func (*ArtifactGetter) ImageByIdsAndDeviceType

func (_m *ArtifactGetter) ImageByIdsAndDeviceType(ctx context.Context, ids []string, deviceType string) (*images.SoftwareImage, error)

ImageByIdsAndDeviceType provides a mock function with given fields: ctx, ids, deviceType

func (*ArtifactGetter) ImageByNameAndDeviceType

func (_m *ArtifactGetter) ImageByNameAndDeviceType(ctx context.Context, name string, deviceType string) (*images.SoftwareImage, error)

ImageByNameAndDeviceType provides a mock function with given fields: ctx, name, deviceType

func (*ArtifactGetter) ImagesByName

func (_m *ArtifactGetter) ImagesByName(ctx context.Context, artifactName string) ([]*images.SoftwareImage, error)

ImagesByName provides a mock function with given fields: ctx, artifactName

type DeploymentsStorage

type DeploymentsStorage struct {
	mock.Mock
}

DeploymentsStorage is an autogenerated mock type for the DeploymentsStorage type

func (*DeploymentsStorage) Delete

func (_m *DeploymentsStorage) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*DeploymentsStorage) DeviceCountByDeployment

func (_m *DeploymentsStorage) DeviceCountByDeployment(ctx context.Context, id string) (int, error)

DeviceCountByDeployment provides a mock function with given fields: ctx, id

func (*DeploymentsStorage) ExistByArtifactId

func (_m *DeploymentsStorage) ExistByArtifactId(ctx context.Context, id string) (bool, error)

ExistByArtifactId provides a mock function with given fields: ctx, id

func (*DeploymentsStorage) ExistUnfinishedByArtifactId

func (_m *DeploymentsStorage) ExistUnfinishedByArtifactId(ctx context.Context, id string) (bool, error)

ExistUnfinishedByArtifactId provides a mock function with given fields: ctx, id

func (*DeploymentsStorage) Find

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

func (*DeploymentsStorage) FindByID

FindByID provides a mock function with given fields: ctx, id

func (*DeploymentsStorage) FindUnfinishedByID

func (_m *DeploymentsStorage) FindUnfinishedByID(ctx context.Context, id string) (*deployments.Deployment, error)

FindUnfinishedByID provides a mock function with given fields: ctx, id

func (*DeploymentsStorage) Finish

func (_m *DeploymentsStorage) Finish(ctx context.Context, id string, when time.Time) error

Finish provides a mock function with given fields: ctx, id, when

func (*DeploymentsStorage) Insert

func (_m *DeploymentsStorage) Insert(ctx context.Context, deployment *deployments.Deployment) error

Insert provides a mock function with given fields: ctx, deployment

func (*DeploymentsStorage) UpdateStats

func (_m *DeploymentsStorage) UpdateStats(ctx context.Context, id string, state_from string, state_to string) error

UpdateStats provides a mock function with given fields: ctx, id, state_from, state_to

func (*DeploymentsStorage) UpdateStatsAndFinishDeployment

func (_m *DeploymentsStorage) UpdateStatsAndFinishDeployment(ctx context.Context, id string, stats deployments.Stats) error

UpdateStatsAndFinishDeployment provides a mock function with given fields: ctx, id, stats

type DeviceDeploymentLogsStorage

type DeviceDeploymentLogsStorage struct {
	mock.Mock
}

DeviceDeploymentLogsStorage is an autogenerated mock type for the DeviceDeploymentLogsStorage type

func (*DeviceDeploymentLogsStorage) GetDeviceDeploymentLog

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

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

func (*DeviceDeploymentLogsStorage) SaveDeviceDeploymentLog

func (_m *DeviceDeploymentLogsStorage) SaveDeviceDeploymentLog(ctx context.Context, log deployments.DeploymentLog) error

SaveDeviceDeploymentLog provides a mock function with given fields: ctx, log

type DeviceDeploymentStorage

type DeviceDeploymentStorage struct {
	mock.Mock
}

DeviceDeploymentStorage is an autogenerated mock type for the DeviceDeploymentStorage type

func (*DeviceDeploymentStorage) AbortDeviceDeployments

func (_m *DeviceDeploymentStorage) AbortDeviceDeployments(ctx context.Context, deploymentID string) error

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

func (*DeviceDeploymentStorage) AggregateDeviceDeploymentByStatus

func (_m *DeviceDeploymentStorage) AggregateDeviceDeploymentByStatus(ctx context.Context, id string) (deployments.Stats, error)

AggregateDeviceDeploymentByStatus provides a mock function with given fields: ctx, id

func (*DeviceDeploymentStorage) AssignArtifact

func (_m *DeviceDeploymentStorage) AssignArtifact(ctx context.Context, deviceID string, deploymentID string, artifact *images.SoftwareImage) error

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

func (*DeviceDeploymentStorage) DecommissionDeviceDeployments

func (_m *DeviceDeploymentStorage) DecommissionDeviceDeployments(ctx context.Context, deviceId string) error

DecommissionDeviceDeployments provides a mock function with given fields: ctx, deviceId

func (*DeviceDeploymentStorage) ExistAssignedImageWithIDAndStatuses

func (_m *DeviceDeploymentStorage) ExistAssignedImageWithIDAndStatuses(ctx context.Context, id string, statuses ...string) (bool, error)

ExistAssignedImageWithIDAndStatuses provides a mock function with given fields: ctx, id, statuses

func (*DeviceDeploymentStorage) FindAllDeploymentsForDeviceIDWithStatuses

func (_m *DeviceDeploymentStorage) FindAllDeploymentsForDeviceIDWithStatuses(ctx context.Context, deviceID string, statuses ...string) ([]deployments.DeviceDeployment, error)

FindAllDeploymentsForDeviceIDWithStatuses provides a mock function with given fields: ctx, deviceID, statuses

func (*DeviceDeploymentStorage) FindOldestDeploymentForDeviceIDWithStatuses

func (_m *DeviceDeploymentStorage) FindOldestDeploymentForDeviceIDWithStatuses(ctx context.Context, deviceID string, statuses ...string) (*deployments.DeviceDeployment, error)

FindOldestDeploymentForDeviceIDWithStatuses provides a mock function with given fields: ctx, deviceID, statuses

func (*DeviceDeploymentStorage) GetDeviceDeploymentStatus

func (_m *DeviceDeploymentStorage) GetDeviceDeploymentStatus(ctx context.Context, deploymentID string, deviceID string) (string, error)

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

func (*DeviceDeploymentStorage) GetDeviceStatusesForDeployment

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

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

func (*DeviceDeploymentStorage) HasDeploymentForDevice

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

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

func (*DeviceDeploymentStorage) InsertMany

func (_m *DeviceDeploymentStorage) InsertMany(ctx context.Context, deployment ...*deployments.DeviceDeployment) error

InsertMany provides a mock function with given fields: ctx, deployment

func (*DeviceDeploymentStorage) UpdateDeviceDeploymentLogAvailability

func (_m *DeviceDeploymentStorage) UpdateDeviceDeploymentLogAvailability(ctx context.Context, deviceID string, deploymentID string, log bool) error

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

func (*DeviceDeploymentStorage) UpdateDeviceDeploymentStatus

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

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

type GetRequester

type GetRequester struct {
	mock.Mock
}

GetRequester is an autogenerated mock type for the GetRequester type

func (*GetRequester) GetRequest

func (_m *GetRequester) GetRequest(ctx context.Context, objectId string, duration time.Duration, responseContentType string) (*images.Link, error)

GetRequest provides a mock function with given fields: ctx, objectId, duration, responseContentType

Jump to

Keyboard shortcuts

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