redshiftservicemock

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DESCRIBE_STATEMENT_FAILED = "DESCRIBE_STATEMENT_FAILED"
View Source
const DESCRIBE_STATEMENT_SUCCEEDED = "DESCRIBE_STATEMENT_FINISHED"
View Source
const MultiPageResponseQueryId = "multiPageResponse"
View Source
const SinglePageResponseQueryId = "singlePageResponse"

Variables

This section is empty.

Functions

This section is empty.

Types

type RedshiftService

type RedshiftService struct {
	CalledTimesCounter   int
	CalledTimesCountDown int
}

func NewMockRedshiftService

func NewMockRedshiftService() *RedshiftService

func (*RedshiftService) BatchExecuteStatementWithContext added in v1.0.5

func (*RedshiftService) DescribeStatementWithContext

DescribeStatementWithContext returns a DescribeStatementOutput When DescribeStatementInput.Id == DESCRIBE_STATEMENT_FAILED, an the output will include an error message that is equal to the input id When DescribeStatementInput.Id == DESCRIBE_STATEMENT_FINISHED, the output will have a status redshiftdataapiservice.StatusStringFinished once mockRedshiftService.calledTimesCountDown == 0

func (*RedshiftService) GetStatementResult

GetStatementResult returns a GetStatementResultOutput When mockRedshiftService.calledTimesCountDown is more than 0, the GetStatementResultOutput will have a next token

Jump to

Keyboard shortcuts

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