GO-2024-3271: Rclone Improper Permission and Ownership Handling on Symlink Targets with --links and --metadata in github.com/rclone/rclone
package
Version:
v1.66.0
Opens a new window with list of versions in this module.
Published: Mar 10, 2024
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
Package jobs manages background jobs that the rc is running.
GetJobID gets the Job from the context if possible
func OnFinish(jobID int64, fn func()) (func(), error)
OnFinish adds listener to jobid that will be triggered when job is finished.
It returns a function to cancel listening.
func SetInitialJobID(id int64)
SetInitialJobID allows for setting jobID before starting any jobs.
SetOpt sets the options when they are known
type Job struct {
ID int64 `json:"id"`
Group string `json:"group"`
StartTime time.Time `json:"startTime"`
EndTime time.Time `json:"endTime"`
Error string `json:"error"`
Finished bool `json:"finished"`
Success bool `json:"success"`
Duration float64 `json:"duration"`
Output rc.Params `json:"output"`
Stop func() `json:"-"`
}
Job describes an asynchronous task started via the rc package
GetJob gets the Job from the context if possible
NewJob creates a Job and executes it on the global job queue,
possibly in the background if _async is set
func (job *Job) OnFinish(fn func()) func()
OnFinish adds listener to job that will be triggered when job is finished.
It returns a function to cancel listening.
Jobs describes a collection of running tasks
func (jobs *Jobs) Expire()
Expire expires any jobs that haven't been collected
Get a job with a given ID or nil if it doesn't exist
IDs returns the IDs of the running jobs
NewJob creates a Job and executes it, possibly in the background if _async is set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.