mocks

package
v0.0.0-...-f6b2f6e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: 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 App

type App struct {
	mock.Mock
}

App is an autogenerated mock type for the App type

func NewApp

func NewApp(t mockConstructorTestingTNewApp) *App

NewApp creates a new instance of App. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*App) AbortDeployment

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

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

func (*App) AbortDeviceDeployments

func (_m *App) AbortDeviceDeployments(ctx context.Context, deviceID string) error

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

func (*App) CompleteUpload

func (_m *App) CompleteUpload(ctx context.Context, intentID string, skipVerify bool, metadata *model.DirectUploadMetadata) error

CompleteUpload provides a mock function with given fields: ctx, intentID, skipVerify, metadata

func (*App) CreateDeployment

func (_m *App) CreateDeployment(ctx context.Context, constructor *model.DeploymentConstructor) (string, error)

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

func (*App) CreateDeviceConfigurationDeployment

func (_m *App) CreateDeviceConfigurationDeployment(ctx context.Context, constructor *model.ConfigurationDeploymentConstructor, deviceID string, deploymentID string) (string, error)

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

func (*App) CreateImage

func (_m *App) CreateImage(ctx context.Context, multipartUploadMsg *model.MultipartUploadMsg) (string, error)

CreateImage provides a mock function with given fields: ctx, multipartUploadMsg

func (*App) DecommissionDevice

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

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

func (*App) DeleteDeviceDeploymentsHistory

func (_m *App) DeleteDeviceDeploymentsHistory(ctx context.Context, deviceId string) error

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

func (*App) DeleteImage

func (_m *App) DeleteImage(ctx context.Context, imageID string) error

DeleteImage provides a mock function with given fields: ctx, imageID

func (*App) DeleteReleases

func (_m *App) DeleteReleases(ctx context.Context, releaseNames []string) ([]string, error)

DeleteReleases provides a mock function with given fields: ctx, releaseNames

func (_m *App) DownloadLink(ctx context.Context, imageID string, expire time.Duration) (*model.Link, error)

DownloadLink provides a mock function with given fields: ctx, imageID, expire

func (*App) EditImage

func (_m *App) EditImage(ctx context.Context, id string, constructorData *model.ImageMeta) (bool, error)

EditImage provides a mock function with given fields: ctx, id, constructorData

func (*App) GenerateConfigurationImage

func (_m *App) GenerateConfigurationImage(ctx context.Context, deviceType string, deploymentID string) (io.Reader, error)

GenerateConfigurationImage provides a mock function with given fields: ctx, deviceType, deploymentID

func (*App) GenerateImage

func (_m *App) GenerateImage(ctx context.Context, multipartUploadMsg *model.MultipartGenerateImageMsg) (string, error)

GenerateImage provides a mock function with given fields: ctx, multipartUploadMsg

func (*App) GetDeployment

func (_m *App) GetDeployment(ctx context.Context, deploymentID string) (*model.Deployment, error)

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

func (*App) GetDeploymentForDeviceWithCurrent

func (_m *App) GetDeploymentForDeviceWithCurrent(ctx context.Context, deviceID string, request *model.DeploymentNextRequest) (*model.DeploymentInstructions, error)

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

func (*App) GetDeploymentStats

func (_m *App) GetDeploymentStats(ctx context.Context, deploymentID string) (model.Stats, error)

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

func (*App) GetDeploymentsStats

func (_m *App) GetDeploymentsStats(ctx context.Context, deploymentIDs ...string) ([]*model.DeploymentStats, error)

GetDeploymentsStats provides a mock function with given fields: ctx, deploymentIDs

func (*App) GetDeviceDeploymentLastStatus

func (_m *App) GetDeviceDeploymentLastStatus(ctx context.Context, devicesIds []string) (model.DeviceDeploymentLastStatuses, error)

GetDeviceDeploymentLastStatus provides a mock function with given fields: ctx, devicesIds

func (*App) GetDeviceDeploymentListForDevice

func (_m *App) GetDeviceDeploymentListForDevice(ctx context.Context, query store.ListQueryDeviceDeployments) ([]model.DeviceDeploymentListItem, int, error)

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

func (*App) GetDeviceDeploymentLog

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

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

func (*App) GetDeviceStatusesForDeployment

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

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

func (*App) GetDevicesListForDeployment

func (_m *App) GetDevicesListForDeployment(ctx context.Context, query store.ListQuery) ([]model.DeviceDeployment, int, error)

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

func (*App) GetImage

func (_m *App) GetImage(ctx context.Context, id string) (*model.Image, error)

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

func (*App) GetLimit

func (_m *App) GetLimit(ctx context.Context, name string) (*model.Limit, error)

GetLimit provides a mock function with given fields: ctx, name

func (*App) GetReleasesUpdateTypes

func (_m *App) GetReleasesUpdateTypes(ctx context.Context) ([]string, error)

GetReleasesUpdateTypes provides a mock function with given fields: ctx

func (*App) GetStorageSettings

func (_m *App) GetStorageSettings(ctx context.Context) (*model.StorageSettings, error)

GetStorageSettings provides a mock function with given fields: ctx

func (*App) HasDeploymentForDevice

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

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

func (*App) HealthCheck

func (_m *App) HealthCheck(ctx context.Context) error

HealthCheck provides a mock function with given fields: ctx

func (*App) IsDeploymentFinished

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

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

func (*App) ListImages

func (_m *App) ListImages(ctx context.Context, filters *model.ReleaseOrImageFilter) ([]*model.Image, int, error)

ListImages provides a mock function with given fields: ctx, filters

func (*App) ListReleaseTags

func (_m *App) ListReleaseTags(ctx context.Context) (model.Tags, error)

ListReleaseTags provides a mock function with given fields: ctx

func (*App) LookupDeployment

func (_m *App) LookupDeployment(ctx context.Context, query model.Query) ([]*model.Deployment, int64, error)

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

func (*App) ProvisionTenant

func (_m *App) ProvisionTenant(ctx context.Context, tenant_id string) error

ProvisionTenant provides a mock function with given fields: ctx, tenant_id

func (*App) ReplaceReleaseTags

func (_m *App) ReplaceReleaseTags(ctx context.Context, releaseName string, tags model.Tags) error

ReplaceReleaseTags provides a mock function with given fields: ctx, releaseName, tags

func (*App) SaveDeviceDeploymentLog

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

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

func (*App) SetStorageSettings

func (_m *App) SetStorageSettings(ctx context.Context, storageSettings *model.StorageSettings) error

SetStorageSettings provides a mock function with given fields: ctx, storageSettings

func (*App) UpdateDeploymentsWithArtifactName

func (_m *App) UpdateDeploymentsWithArtifactName(ctx context.Context, artifactName string) error

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

func (*App) UpdateDeviceDeploymentStatus

func (_m *App) UpdateDeviceDeploymentStatus(ctx context.Context, deploymentID string, deviceID string, state model.DeviceDeploymentState) error

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

func (*App) UpdateRelease

func (_m *App) UpdateRelease(ctx context.Context, releaseName string, release model.ReleasePatch) error

UpdateRelease provides a mock function with given fields: ctx, releaseName, release

func (_m *App) UploadLink(ctx context.Context, expire time.Duration, skipVerify bool) (*model.UploadLink, error)

UploadLink provides a mock function with given fields: ctx, expire, skipVerify

Jump to

Keyboard shortcuts

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