Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tus/tusd
/ functions
Functions
707 in github.com/tus/tusd
⨍
Functions
707
◇
Types & classes
140
Function
TestHead
(t *testing.T)
pkg/handler/head_test.go:11
Function
TestHookEventHeaderIsolation
TestHookEventHeaderIsolation verifies that modifying the original request headers after creating a HookEvent does not affect the event headers.
pkg/handler/hooks_test.go:63
Function
TestHookEventHeaderRace
TestHookEventHeaderRace demonstrates a race condition that occurs when the http.Header map is shared between the original request and HookEvent. This
pkg/handler/hooks_test.go:17
Function
TestLockRelease
TestLockRelease asserts that an incoming request will cause any ongoing request for the same upload resource to be closed quickly and cleanly.
internal/e2e/e2e_test.go:465
Function
TestLoggingS3API
go:generate mockgen -destination=./s3log_mock_test.go -package=s3log github.com/tus/tusd/v2/pkg/s3store S3API
internal/s3log/s3log_test.go:18
Function
TestMain
(m *testing.M)
internal/e2e/e2e_test.go:35
Function
TestMemoryLocker_LockAndUnlock
(t *testing.T)
pkg/memorylocker/memorylocker_test.go:14
Function
TestMemoryLocker_LockAndUnlock
(t *testing.T)
pkg/filelocker/filelocker_test.go:15
Function
TestMemoryLocker_RequestUnlock
(t *testing.T)
pkg/memorylocker/memorylocker_test.go:55
Function
TestMemoryLocker_Timeout
(t *testing.T)
pkg/memorylocker/memorylocker_test.go:28
Function
TestNetworkReadTimeout
TestNetworkReadTimeout tests that tusd correctly stops a request if no data has been received for the specified timeout. All data until this timeout s
internal/e2e/e2e_test.go:126
Function
TestNewDelayedContext
(t *testing.T)
pkg/handler/delayed_context_test.go:13
Function
TestNewHandlerWithHooks
go:generate mockgen -source=hooks.go -destination=hooks_mock_test.go -package=hooks
pkg/hooks/hooks_test.go:17
Function
TestNewUpload
(t *testing.T)
pkg/azurestore/azurestore_test.go:43
Function
TestNewUpload
(t *testing.T)
pkg/gcsstore/gcsstore_test.go:44
Function
TestNewUpload
(t *testing.T)
pkg/s3store/s3store_test.go:32
Function
TestNewUploadLargerMaxObjectSize
(t *testing.T)
pkg/s3store/s3store_test.go:231
Function
TestNewUploadTooLargeBlob
(t *testing.T)
pkg/azurestore/azurestore_test.go:115
Function
TestNewUploadWithMetadataObjectPrefix
(t *testing.T)
pkg/s3store/s3store_test.go:124
Function
TestNewUploadWithObjectPrefix
(t *testing.T)
pkg/s3store/s3store_test.go:79
Function
TestNewUploadWithPrefix
(t *testing.T)
pkg/azurestore/azurestore_test.go:74
Function
TestNewUploadWithPrefix
(t *testing.T)
pkg/gcsstore/gcsstore_test.go:72
Function
TestNotFound
(t *testing.T)
pkg/filestore/filestore_test.go:168
Function
TestOptions
(t *testing.T)
pkg/handler/options_test.go:10
Function
TestParseMetadataHeader
(t *testing.T)
pkg/handler/unrouted_handler_test.go:9
Function
TestPartProducerConsumesEntireReaderWithoutError
(t *testing.T)
pkg/s3store/s3store_part_producer_test.go:28
Function
TestPartProducerExitsWhenContextIsCancelled
(t *testing.T)
pkg/s3store/s3store_part_producer_test.go:63
Function
TestPartProducerExitsWhenUnableToReadFromFile
(t *testing.T)
pkg/s3store/s3store_part_producer_test.go:85
Function
TestPatch
(t *testing.T)
pkg/handler/patch_test.go:19
Function
TestPost
(t *testing.T)
pkg/handler/post_test.go:16
Function
TestReadObject
(t *testing.T)
pkg/gcsstore/gcsservice_test.go:267
Function
TestS3ServableUploadServeContent
(t *testing.T)
pkg/s3store/serve_content_test.go:43
Function
TestS3ServableUploadServeContentIncomplete
(t *testing.T)
pkg/s3store/serve_content_test.go:147
Function
TestS3ServableUploadServeContentInternalError
(t *testing.T)
pkg/s3store/serve_content_test.go:121
Function
TestS3ServableUploadServeContentNotModified
(t *testing.T)
pkg/s3store/serve_content_test.go:220
Function
TestS3ServableUploadServeContentRangeNotSatisfiable
(t *testing.T)
pkg/s3store/serve_content_test.go:180
Function
TestS3ServableUploadServeContentWithRange
(t *testing.T)
pkg/s3store/serve_content_test.go:81
Function
TestS3StoreAsServerDataStore
(t *testing.T)
pkg/s3store/serve_content_test.go:23
Function
TestSetObjectMetadata
(t *testing.T)
pkg/gcsstore/gcsservice_test.go:308
Function
TestShutdown
TestShutdown asserts that tusd closes all ongoing upload requests and shuts down cleanly on its own when receiving a signal to stop. This test is not
internal/e2e/e2e_unix_test.go:24
Function
TestStopUpload
TestSuccessfulUpload asserts that ongoing upload requests get properly closed when the hooks instruct tusd to stop the upload.
internal/e2e/e2e_test.go:727
Function
TestSuccessfulUpload
TestSuccessfulUpload tests that tusd can perform a single upload from actual HTTP requests.
internal/e2e/e2e_test.go:69
Function
TestTerminate
(t *testing.T)
pkg/azurestore/azurestore_test.go:352
Function
TestTerminate
(t *testing.T)
pkg/gcsstore/gcsstore_test.go:259
Function
TestTerminate
(t *testing.T)
pkg/handler/terminate_test.go:13
Function
TestTerminate
(t *testing.T)
pkg/s3store/s3store_test.go:1116
Function
TestTerminateWithErrors
(t *testing.T)
pkg/s3store/s3store_test.go:1156
Function
TestUnexpectedNetworkClose
TestUnexpectedNetworkClose tests that tusd correctly saves the transmitted data if the client connection gets interrupted unexpectedly during the uplo
internal/e2e/e2e_test.go:252
Function
TestUnexpectedNetworkReset
TestUnexpectedNetworkReset tests that tusd correctly saves the transmitted data if the client connection gets interrupted unexpectedly by a TCP RST.
internal/e2e/e2e_test.go:355
Function
TestUploadLengthExceeded
TestUploadLengthExceeded asserts that uploading appending requests are limited to the length specified in the upload. If more data is transmitted, tus
internal/e2e/e2e_test.go:608
Function
TestWriteChunk
(t *testing.T)
pkg/azurestore/azurestore_test.go:269
Function
TestWriteChunk
(t *testing.T)
pkg/gcsstore/gcsstore_test.go:376
Function
TestWriteChunk
(t *testing.T)
pkg/s3store/s3store_test.go:781
Function
TestWriteChunkAllowTooSmallLast
(t *testing.T)
pkg/s3store/s3store_test.go:1057
Function
TestWriteChunkCleansUpTempFiles
This test ensures that the S3Store will cleanup all files that it creates during a call to WriteChunk, even if an error occurs during that invocation.
pkg/s3store/s3store_test.go:1417
Function
TestWriteChunkPrependsIncompletePart
(t *testing.T)
pkg/s3store/s3store_test.go:919
Function
TestWriteChunkPrependsIncompletePartAndWritesANewIncompletePart
(t *testing.T)
pkg/s3store/s3store_test.go:991
Function
TestWriteChunkWriteIncompletePartBecauseTooSmall
(t *testing.T)
pkg/s3store/s3store_test.go:867
Function
TestWriteObject
(t *testing.T)
pkg/gcsstore/gcsservice_test.go:383
Method
Unlock
Unlock releases a lock. If no such lock exists, no error will be returned.
pkg/memorylocker/memorylocker.go:97
Method
Unlock
()
pkg/filelocker/filelocker.go:164
Method
Unlock
Unlock mocks base method.
pkg/handler/handler_mock_test.go:311
Method
Unlock
Unlock indicates an expected call of Unlock.
pkg/handler/handler_mock_test.go:319
Method
Unwrap
Unwrap provides access to the underlying http.ResponseWriter.
pkg/handler/unrouted_handler.go:1751
Method
Upload
Upload a block to Azure Blob Storage and add it to the indexes to be after upload is finished
pkg/azurestore/azureservice.go:192
Method
Upload
Upload the infoBlob to Azure Blob Storage Because the info file is presumed to be smaller than azblob.BlockBlobMaxUploadBlobBytes (256MiB), we can upl
pkg/azurestore/azureservice.go:293
Method
Upload
Upload mocks base method.
pkg/azurestore/azurestore_mock_test.go:150
Method
Upload
Upload indicates an expected call of Upload.
pkg/azurestore/azurestore_mock_test.go:158
Method
UploadPart
(context.Context, *s3.UploadPartInput, ...func(*s3.Options))
pkg/s3store/s3store_test.go:1393
Method
UploadPart
UploadPart mocks base method.
pkg/s3store/s3store_mock_test.go:219
Method
UploadPart
UploadPart indicates an expected call of UploadPart.
pkg/s3store/s3store_mock_test.go:232
Method
UploadPart
UploadPart implements the s3store.S3API interface
internal/s3log/s3log.go:104
Method
UploadPart
UploadPart mocks base method.
internal/s3log/s3log_mock_test.go:219
Method
UploadPart
UploadPart indicates an expected call of UploadPart.
internal/s3log/s3log_mock_test.go:232
Method
UploadPartCopy
UploadPartCopy mocks base method.
pkg/s3store/s3store_mock_test.go:239
Method
UploadPartCopy
UploadPartCopy indicates an expected call of UploadPartCopy.
pkg/s3store/s3store_mock_test.go:252
Method
UploadPartCopy
UploadPartCopy implements the s3store.S3API interface
internal/s3log/s3log.go:168
Method
UploadPartCopy
UploadPartCopy mocks base method.
internal/s3log/s3log_mock_test.go:239
Method
UploadPartCopy
UploadPartCopy indicates an expected call of UploadPartCopy.
internal/s3log/s3log_mock_test.go:252
Method
Usage
()
internal/grouped_flags/grouped_flags.go:61
Method
UseIn
UseIn adds this locker to the passed composer.
pkg/memorylocker/memorylocker.go:46
Method
UseIn
UseIn sets this store as the core data store in the passed composer and adds all possible extension to it.
pkg/azurestore/azurestore.go:46
Method
UseIn
UseIn adds this locker to the passed composer.
pkg/filelocker/filelocker.go:59
Method
UseIn
(composer *handler.StoreComposer)
pkg/gcsstore/gcsstore.go:55
Method
UseIn
UseIn sets this store as the core data store in the passed composer and adds all possible extension to it.
pkg/filestore/filestore.go:73
Method
WriteChunk
(ctx context.Context, offset int64, src io.Reader)
pkg/azurestore/azurestore.go:159
Method
WriteChunk
(ctx context.Context, offset int64, src io.Reader)
pkg/gcsstore/gcsstore.go:92
Method
WriteChunk
(ctx context.Context, offset int64, src io.Reader)
pkg/filestore/filestore.go:220
Method
WriteChunk
WriteChunk mocks base method.
pkg/handler/handler_mock_test.go:221
Method
WriteChunk
WriteChunk indicates an expected call of WriteChunk.
pkg/handler/handler_mock_test.go:230
Method
WriteChunk
(ctx context.Context, offset int64, src io.Reader)
pkg/s3store/s3store.go:410
Method
WriteObject
WriteObject mocks base method.
pkg/gcsstore/gcsstore_mock_test.go:235
Method
WriteObject
WriteObject indicates an expected call of WriteObject.
pkg/gcsstore/gcsstore_mock_test.go:244
Function
_HookHandler_InvokeHook_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
pkg/hooks/grpc/proto/hook_grpc.pb.go:83
Method
__init__
Constructor. Args: channel: A grpc.Channel.
examples/hooks/grpc/hook_pb2_grpc.py:32
Method
__init__
(self, *args, **kwargs)
examples/hooks/grpc/server.py:10
Function
add_HookHandlerServicer_to_server
(servicer, server)
examples/hooks/grpc/hook_pb2_grpc.py:61
Method
do_GET
(self)
examples/hooks/http/server.py:10
Method
do_POST
(self)
examples/hooks/http/server.py:15
Function
init
()
pkg/hooks/grpc/proto/hook.pb.go:752
← previous
next →
601–700 of 707, ranked by callers