Documentation ¶
Index ¶
- type ArtifactGetter
- func (_m *ArtifactGetter) ImageByIdsAndDeviceType(ctx context.Context, ids []string, deviceType string) (*images.SoftwareImage, error)
- func (_m *ArtifactGetter) ImageByNameAndDeviceType(ctx context.Context, name string, deviceType string) (*images.SoftwareImage, error)
- func (_m *ArtifactGetter) ImagesByName(ctx context.Context, artifactName string) ([]*images.SoftwareImage, error)
- type DeploymentsStorage
- func (_m *DeploymentsStorage) Delete(ctx context.Context, id string) error
- func (_m *DeploymentsStorage) DeviceCountByDeployment(ctx context.Context, id string) (int, error)
- func (_m *DeploymentsStorage) ExistByArtifactId(ctx context.Context, id string) (bool, error)
- func (_m *DeploymentsStorage) ExistUnfinishedByArtifactId(ctx context.Context, id string) (bool, error)
- func (_m *DeploymentsStorage) Find(ctx context.Context, query deployments.Query) ([]*deployments.Deployment, error)
- func (_m *DeploymentsStorage) FindByID(ctx context.Context, id string) (*deployments.Deployment, error)
- func (_m *DeploymentsStorage) FindUnfinishedByID(ctx context.Context, id string) (*deployments.Deployment, error)
- func (_m *DeploymentsStorage) Finish(ctx context.Context, id string, when time.Time) error
- func (_m *DeploymentsStorage) Insert(ctx context.Context, deployment *deployments.Deployment) error
- func (_m *DeploymentsStorage) UpdateStats(ctx context.Context, id string, state_from string, state_to string) error
- func (_m *DeploymentsStorage) UpdateStatsAndFinishDeployment(ctx context.Context, id string, stats deployments.Stats) error
- type DeviceDeploymentLogsStorage
- type DeviceDeploymentStorage
- func (_m *DeviceDeploymentStorage) AbortDeviceDeployments(ctx context.Context, deploymentID string) error
- func (_m *DeviceDeploymentStorage) AggregateDeviceDeploymentByStatus(ctx context.Context, id string) (deployments.Stats, error)
- func (_m *DeviceDeploymentStorage) AssignArtifact(ctx context.Context, deviceID string, deploymentID string, ...) error
- func (_m *DeviceDeploymentStorage) DecommissionDeviceDeployments(ctx context.Context, deviceId string) error
- func (_m *DeviceDeploymentStorage) ExistAssignedImageWithIDAndStatuses(ctx context.Context, id string, statuses ...string) (bool, error)
- func (_m *DeviceDeploymentStorage) FindAllDeploymentsForDeviceIDWithStatuses(ctx context.Context, deviceID string, statuses ...string) ([]deployments.DeviceDeployment, error)
- func (_m *DeviceDeploymentStorage) FindOldestDeploymentForDeviceIDWithStatuses(ctx context.Context, deviceID string, statuses ...string) (*deployments.DeviceDeployment, error)
- func (_m *DeviceDeploymentStorage) GetDeviceDeploymentStatus(ctx context.Context, deploymentID string, deviceID string) (string, error)
- func (_m *DeviceDeploymentStorage) GetDeviceStatusesForDeployment(ctx context.Context, deploymentID string) ([]deployments.DeviceDeployment, error)
- func (_m *DeviceDeploymentStorage) HasDeploymentForDevice(ctx context.Context, deploymentID string, deviceID string) (bool, error)
- func (_m *DeviceDeploymentStorage) InsertMany(ctx context.Context, deployment ...*deployments.DeviceDeployment) error
- func (_m *DeviceDeploymentStorage) UpdateDeviceDeploymentLogAvailability(ctx context.Context, deviceID string, deploymentID string, log bool) error
- func (_m *DeviceDeploymentStorage) UpdateDeviceDeploymentStatus(ctx context.Context, deviceID string, deploymentID string, ...) (string, error)
- type GetRequester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactGetter ¶
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 ¶
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 ¶
DeviceCountByDeployment provides a mock function with given fields: ctx, id
func (*DeploymentsStorage) ExistByArtifactId ¶
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 ¶
func (_m *DeploymentsStorage) Find(ctx context.Context, query deployments.Query) ([]*deployments.Deployment, error)
Find provides a mock function with given fields: ctx, query
func (*DeploymentsStorage) FindByID ¶
func (_m *DeploymentsStorage) FindByID(ctx context.Context, id string) (*deployments.Deployment, error)
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 ¶
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 ¶
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 ¶
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 ¶
GetRequester is an autogenerated mock type for the GetRequester type