Documentation ¶
Overview ¶
Package mocks contains various mocks useful for testing.
Index ¶
- type Glacier
- func (g *Glacier) CompleteMultipartUploadRequest(*glacier.CompleteMultipartUploadInput) glacier.CompleteMultipartUploadRequest
- func (g *Glacier) DescribeJobRequest(input *glacier.DescribeJobInput) glacier.DescribeJobRequest
- func (g *Glacier) GetJobOutputRequest(input *glacier.GetJobOutputInput) glacier.GetJobOutputRequest
- func (g *Glacier) InitiateMultipartUploadRequest(*glacier.InitiateMultipartUploadInput) glacier.InitiateMultipartUploadRequest
- func (g *Glacier) ListPartsRequest(*glacier.ListPartsInput) glacier.ListPartsRequest
- func (g *Glacier) UploadMultipartPartRequest(*glacier.UploadMultipartPartInput) glacier.UploadMultipartPartRequest
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 ¶
func (g *Glacier) CompleteMultipartUploadRequest(*glacier.CompleteMultipartUploadInput) 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 ¶
func (g *Glacier) InitiateMultipartUploadRequest(*glacier.InitiateMultipartUploadInput) 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 ¶
func (g *Glacier) UploadMultipartPartRequest(*glacier.UploadMultipartPartInput) 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.