translatedouble

package
v0.0.0-...-8548fdf Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00 For SDKVersion 1.28.13 Package translatedouble contains test double implementation of translateiface.TranslateAPI

Package translatedouble provides a TestDouble implementation of translateiface.TranslateAPI

Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TranslateDouble

type TranslateDouble struct {
	translateiface.TranslateAPI
	*awsdouble.AWSTestDouble
}

TranslateDouble is TestDouble for translateiface.TranslateAPI

func NewDouble

func NewDouble(t godouble.T, configurators ...func(*awsdouble.AWSTestDouble)) *TranslateDouble

Constructor for TranslateDouble Default configuration will ensure

  • API operations not explicitly stubbed will return an empty output struct pointer, and nil error. To simulate long polling, "Poll" operations will return these values after a random delay of up to 100ms.

  • WithContext methods implement a 'Fake' method that returns a cancellation error if the context is cancelled before the method is called.

  • Pages and PagesWithContext methods similarly implement a 'Fake' method that paginates over the underlying method.

    This allows tests to only stub the simple api methods and be generally unconcerned whether the SUT is using the Context or Pagination forms of the API.

func (*TranslateDouble) DeleteTerminology

func (*TranslateDouble) DeleteTerminologyRequest

func (*TranslateDouble) DeleteTerminologyWithContext

func (d *TranslateDouble) DeleteTerminologyWithContext(i0 context.Context, i1 *translate.DeleteTerminologyInput, i2 ...request.Option) (r0 *translate.DeleteTerminologyOutput, r1 error)

func (*TranslateDouble) GetTerminology

func (*TranslateDouble) GetTerminologyRequest

func (*TranslateDouble) GetTerminologyWithContext

func (d *TranslateDouble) GetTerminologyWithContext(i0 context.Context, i1 *translate.GetTerminologyInput, i2 ...request.Option) (r0 *translate.GetTerminologyOutput, r1 error)

func (*TranslateDouble) ImportTerminology

func (*TranslateDouble) ImportTerminologyRequest

func (*TranslateDouble) ImportTerminologyWithContext

func (d *TranslateDouble) ImportTerminologyWithContext(i0 context.Context, i1 *translate.ImportTerminologyInput, i2 ...request.Option) (r0 *translate.ImportTerminologyOutput, r1 error)

func (*TranslateDouble) ListTerminologies

func (*TranslateDouble) ListTerminologiesPages

func (d *TranslateDouble) ListTerminologiesPages(i0 *translate.ListTerminologiesInput, i1 func(*translate.ListTerminologiesOutput, bool) bool) (r0 error)

func (*TranslateDouble) ListTerminologiesPagesWithContext

func (d *TranslateDouble) ListTerminologiesPagesWithContext(i0 context.Context, i1 *translate.ListTerminologiesInput, i2 func(*translate.ListTerminologiesOutput, bool) bool, i3 ...request.Option) (r0 error)

func (*TranslateDouble) ListTerminologiesRequest

func (*TranslateDouble) ListTerminologiesWithContext

func (d *TranslateDouble) ListTerminologiesWithContext(i0 context.Context, i1 *translate.ListTerminologiesInput, i2 ...request.Option) (r0 *translate.ListTerminologiesOutput, r1 error)

func (*TranslateDouble) ListTextTranslationJobs

func (*TranslateDouble) ListTextTranslationJobsPages

func (d *TranslateDouble) ListTextTranslationJobsPages(i0 *translate.ListTextTranslationJobsInput, i1 func(*translate.ListTextTranslationJobsOutput, bool) bool) (r0 error)

func (*TranslateDouble) ListTextTranslationJobsPagesWithContext

func (d *TranslateDouble) ListTextTranslationJobsPagesWithContext(i0 context.Context, i1 *translate.ListTextTranslationJobsInput, i2 func(*translate.ListTextTranslationJobsOutput, bool) bool, i3 ...request.Option) (r0 error)

func (*TranslateDouble) ListTextTranslationJobsRequest

func (*TranslateDouble) ListTextTranslationJobsWithContext

func (d *TranslateDouble) ListTextTranslationJobsWithContext(i0 context.Context, i1 *translate.ListTextTranslationJobsInput, i2 ...request.Option) (r0 *translate.ListTextTranslationJobsOutput, r1 error)

func (*TranslateDouble) StartTextTranslationJob

func (*TranslateDouble) StartTextTranslationJobRequest

func (*TranslateDouble) StartTextTranslationJobWithContext

func (d *TranslateDouble) StartTextTranslationJobWithContext(i0 context.Context, i1 *translate.StartTextTranslationJobInput, i2 ...request.Option) (r0 *translate.StartTextTranslationJobOutput, r1 error)

func (*TranslateDouble) StopTextTranslationJob

func (*TranslateDouble) StopTextTranslationJobRequest

func (*TranslateDouble) StopTextTranslationJobWithContext

func (d *TranslateDouble) StopTextTranslationJobWithContext(i0 context.Context, i1 *translate.StopTextTranslationJobInput, i2 ...request.Option) (r0 *translate.StopTextTranslationJobOutput, r1 error)

func (*TranslateDouble) Text

func (*TranslateDouble) TextRequest

func (d *TranslateDouble) TextRequest(i0 *translate.TextInput) (r0 *request.Request, r1 *translate.TextOutput)

func (*TranslateDouble) TextWithContext

func (d *TranslateDouble) TextWithContext(i0 context.Context, i1 *translate.TextInput, i2 ...request.Option) (r0 *translate.TextOutput, r1 error)

Jump to

Keyboard shortcuts

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