diff options
author | vitalyisaev <vitalyisaev@ydb.tech> | 2023-12-12 21:55:07 +0300 |
---|---|---|
committer | vitalyisaev <vitalyisaev@ydb.tech> | 2023-12-12 22:25:10 +0300 |
commit | 4967f99474a4040ba150eb04995de06342252718 (patch) | |
tree | c9c118836513a8fab6e9fcfb25be5d404338bca7 /vendor/github.com/aws/aws-sdk-go-v2/internal/awstesting/endless_reader.go | |
parent | 2ce9cccb9b0bdd4cd7a3491dc5cbf8687cda51de (diff) | |
download | ydb-4967f99474a4040ba150eb04995de06342252718.tar.gz |
YQ Connector: prepare code base for S3 integration
1. Кодовая база Коннектора переписана с помощью Go дженериков так, чтобы добавление нового источника данных (в частности S3 + csv) максимально переиспользовало имеющийся код (чтобы сохранялась логика нарезания на блоки данных, учёт трафика и пр.)
2. API Connector расширено для работы с S3, но ещё пока не протестировано.
Diffstat (limited to 'vendor/github.com/aws/aws-sdk-go-v2/internal/awstesting/endless_reader.go')
-rw-r--r-- | vendor/github.com/aws/aws-sdk-go-v2/internal/awstesting/endless_reader.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/awstesting/endless_reader.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/awstesting/endless_reader.go new file mode 100644 index 0000000000..da1b429571 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/awstesting/endless_reader.go @@ -0,0 +1,12 @@ +package awstesting + +// EndlessReader is an io.Reader that will always return +// that bytes have been read. +type EndlessReader struct{} + +// Read will report that it has read len(p) bytes in p. +// The content in the []byte will be unmodified. +// This will never return an error. +func (e EndlessReader) Read(p []byte) (int, error) { + return len(p), nil +} |