Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteFile ¶
func UploadTempContentFromFile ¶ added in v0.6.29
func UploadTempContentFromFile(ctx context.Context, sessionState *session.State, connection *connection.ConnectionSettings, file *os.File, chunkSize int64, maxRetries int) (*RemoteFile, error)
UploadTempContentFromFile uploads a tempfile with smart selection of chunksize. If chunksize is not set (<=0) and file size is smaller than default chunksize, the chunksize it will be set to the file size roofed to closest 1024 bytes.
Click to show internal directories.
Click to hide internal directories.