mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocks contains various mocks useful for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Glacier

type Glacier struct {
	glacieriface.GlacierAPI

	CallCount uint32

	InitiateMultipartUploadRequestMock func() glacier.InitiateMultipartUploadRequest
	ListPartsRequestMock               func() glacier.ListPartsRequest
	UploadMultipartPartRequestMock     func() glacier.UploadMultipartPartRequest
	CompleteMultipartUploadRequestMock func() glacier.CompleteMultipartUploadRequest
	DescribeJobRequestMock             func() glacier.DescribeJobRequest
	GetJobOutputRequestMock            func() glacier.GetJobOutputRequest
}

Glacier is a thread-safe Amazon Glacier client mock.

func (*Glacier) CompleteMultipartUploadRequest

CompleteMultipartUploadRequest returns a mocked request value for making API operation for Amazon Glacier. It calls CompleteMultipartUploadRequestMock if set and returns uninitialized CompleteMultipartUploadRequest otherwise. Calling this method increases CallCount.

func (*Glacier) DescribeJobRequest

func (g *Glacier) DescribeJobRequest(input *glacier.DescribeJobInput) glacier.DescribeJobRequest

DescribeJobRequest returns a mocked request value for making API operation for Amazon Glacier. It calls DescribeJobRequestMock if set and returns uninitialized DescribeJobRequest otherwise. Calling this method increases CallCount.

func (*Glacier) GetJobOutputRequest

func (g *Glacier) GetJobOutputRequest(input *glacier.GetJobOutputInput) glacier.GetJobOutputRequest

GetJobOutputRequest returns a mocked request value for making API operation for Amazon Glacier. It calls GetJobOutputRequestMock if set and returns uninitialized GetJobOutputRequest otherwise. Calling this method increases CallCount.

func (*Glacier) InitiateMultipartUploadRequest

InitiateMultipartUploadRequest returns a mocked request value for making API operation for Amazon Glacier. It calls InitiateMultipartUploadRequestMock if set and returns uninitialized InitiateMultipartUploadRequest otherwise. Calling this method increases CallCount.

func (*Glacier) ListPartsRequest

func (g *Glacier) ListPartsRequest(*glacier.ListPartsInput) glacier.ListPartsRequest

ListPartsRequest returns a mocked request value for making API operation for Amazon Glacier. It calls ListPartsRequestMock if set and returns uninitialized ListPartsRequest otherwise. Calling this method increases CallCount.

func (*Glacier) UploadMultipartPartRequest

UploadMultipartPartRequest returns a mocked request value for making API operation for Amazon Glacier. It calls UploadMultipartPartRequestMock if set and returns uninitialized UploadMultipartPartRequest otherwise. Calling this method increases CallCount.

Jump to

Keyboard shortcuts

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