uploadFile

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadFile

type UploadFile struct {
	ManifestId     string           // ManifestId is id for the entire upload session.
	UploadId       string           // UploadId ID is used as part of the s3key for uploaded files and is packageID.
	S3Bucket       string           // S3Bucket is bucket where file is uploaded to
	S3Key          string           // S3Key is the S3 key of the file
	Path           string           // Path to collection without file-name
	Name           string           // Name is the filename including extension(s)
	Extension      string           // Extension of file (separated from name)
	FileType       fileType.Type    // FileType is the type of the file
	Type           packageType.Type // Type of the Package.
	SubType        string           // SubType of the file
	Icon           iconInfo.Icon    // Icon for the file
	Size           int64            // Size of file
	ETag           string           // ETag provided by S3
	MergePackageId string           // MergePackageId is packageID leveraged instead of upload id in case of package merging
	Sha256         string           // Sha256 checksum of the file
}

UploadFile is the parsed and cleaned representation of the SQS S3 Put Event

func (*UploadFile) GetUploadFolderMap

func (f *UploadFile) GetUploadFolderMap(sortedFiles []UploadFile, targetFolder string) uploadFolder.UploadFolderMap

GetUploadFolderMap returns an object that maps path name to Folder object.

func (*UploadFile) Sort

func (f *UploadFile) Sort(files []UploadFile)

Sort sorts []UploadFiles by the depth of the folder the file resides in.

func (*UploadFile) String

func (f *UploadFile) String() string

String returns a json representation of the UploadFile object

Jump to

Keyboard shortcuts

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