tempcontent

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 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