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: 5 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 FileStorage

type FileStorage struct {
	mock.Mock
}

FileStorage is an autogenerated mock type for the FileStorage type

func (*FileStorage) Delete

func (_m *FileStorage) Delete(ctx context.Context, objectId string) error

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

func (*FileStorage) Exists

func (_m *FileStorage) Exists(ctx context.Context, objectId string) (bool, error)

Exists provides a mock function with given fields: ctx, objectId

func (*FileStorage) GetRequest

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

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

func (*FileStorage) LastModified

func (_m *FileStorage) LastModified(ctx context.Context, objectId string) (time.Time, error)

LastModified provides a mock function with given fields: ctx, objectId

func (*FileStorage) PutRequest

func (_m *FileStorage) PutRequest(ctx context.Context, objectId string, duration time.Duration) (*model.Link, error)

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

func (*FileStorage) UploadArtifact

func (_m *FileStorage) UploadArtifact(ctx context.Context, objectId string, artifactSize int64, artifact io.Reader, contentType string) error

UploadArtifact provides a mock function with given fields: ctx, objectId, artifactSize, artifact, contentType

Jump to

Keyboard shortcuts

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