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

Documentation

Overview

Copyright 2017 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 ImagesModel

type ImagesModel struct {
	mock.Mock
}

ImagesModel is an autogenerated mock type for the ImagesModel type

func (*ImagesModel) CreateImage

func (_m *ImagesModel) CreateImage(ctx context.Context, multipartUploadMsg *controller.MultipartUploadMsg) (string, error)

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

func (*ImagesModel) DeleteImage

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

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

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

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

func (*ImagesModel) EditImage

func (_m *ImagesModel) EditImage(ctx context.Context, id string, constructorData *images.SoftwareImageMetaConstructor) (bool, error)

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

func (*ImagesModel) GetImage

func (_m *ImagesModel) GetImage(ctx context.Context, id string) (*images.SoftwareImage, error)

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

func (*ImagesModel) ListImages

func (_m *ImagesModel) ListImages(ctx context.Context, filters map[string]string) ([]*images.SoftwareImage, error)

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

Jump to

Keyboard shortcuts

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