mocks

package
v0.0.0-...-b206e69 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2019 Northern.tech AS

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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 (*App) AbortDeployment

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

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

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) 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) DeleteImage

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

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

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.SoftwareImageMetaConstructor) (bool, error)

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

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, current model.InstalledDeviceDeployment) (*model.DeploymentInstructions, error)

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

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) 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) GetImage

func (_m *App) GetImage(ctx context.Context, id string) (*model.SoftwareImage, 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) 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) 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 map[string]string) ([]*model.SoftwareImage, error)

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

func (*App) LookupDeployment

func (_m *App) LookupDeployment(ctx context.Context, query model.Query) ([]*model.Deployment, 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) 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) UpdateDeviceDeploymentStatus

func (_m *App) UpdateDeviceDeploymentStatus(ctx context.Context, deploymentID string, deviceID string, status model.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