tempcontent

package
v0.17.11 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteFile

type RemoteFile struct {
	ID  string
	URL string
}

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.

Jump to

Keyboard shortcuts

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