file

package
v0.0.0-...-7f59ee1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMD5

func GetMD5(filePath string) (string, error)

GetMD5 return a md5 string of the file path provided

Types

type ExecutionTime

type ExecutionTime struct {
	CreationDuration       time.Duration
	UploadDuration         time.Duration
	DownloadDuration       time.Duration
	DeleteLocalDuration    time.Duration
	DeleteDownloadDuration time.Duration
	DeleteUploadDuration   time.Duration
}

Times of the execution

type File

type File struct {
	Size         int
	MD5          string
	Path         string
	DownloadPath string
	Name         string
	Execution    *ExecutionTime
	S3Session    *adapters.S3Session
}

File is a struct to define files attributes

func (*File) Copy

func (f *File) Copy() error

Copy the file to a especific location and return error if any

func (*File) Create

func (f *File) Create() error

Create the file and return error if any

Jump to

Keyboard shortcuts

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