Documentation ¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Index ¶
- func NewCopyDirTask(task navvy.Task) navvy.Task
- func NewCopyFileTask(task navvy.Task) navvy.Task
- func NewCopyLargeFileTask(task navvy.Task) navvy.Task
- func NewCopyPartialFileTask(task navvy.Task) navvy.Task
- func NewCopyPartialStreamTask(task navvy.Task) navvy.Task
- func NewCopySingleFileTask(task navvy.Task) navvy.Task
- func NewCopySmallFileTask(task navvy.Task) navvy.Task
- func NewCopyStreamTask(task navvy.Task) navvy.Task
- func NewCreateStorageTask(task navvy.Task) navvy.Task
- func NewDeleteDirTask(task navvy.Task) navvy.Task
- func NewDeleteFileTask(task navvy.Task) navvy.Task
- func NewDeleteSegmentDirTask(task navvy.Task) navvy.Task
- func NewDeleteSegmentTask(task navvy.Task) navvy.Task
- func NewDeleteStorageTask(task navvy.Task) navvy.Task
- func NewIterateFileTask(task navvy.Task) navvy.Task
- func NewIterateSegmentTask(task navvy.Task) navvy.Task
- func NewListFileTask(task navvy.Task) navvy.Task
- func NewListSegmentTask(task navvy.Task) navvy.Task
- func NewListStorageTask(task navvy.Task) navvy.Task
- func NewMD5SumFileTask(task navvy.Task) navvy.Task
- func NewMD5SumStreamTask(task navvy.Task) navvy.Task
- func NewReachFileTask(task navvy.Task) navvy.Task
- func NewSegmentAbortAllTask(task navvy.Task) navvy.Task
- func NewSegmentCompleteTask(task navvy.Task) navvy.Task
- func NewSegmentFileCopyTask(task navvy.Task) navvy.Task
- func NewSegmentInitTask(task navvy.Task) navvy.Task
- func NewSegmentStreamCopyTask(task navvy.Task) navvy.Task
- func NewStatFileTask(task navvy.Task) navvy.Task
- func NewSyncTask(task navvy.Task) navvy.Task
- type CopyDirTask
- type CopyFileTask
- type CopyLargeFileTask
- type CopyPartialFileTask
- type CopyPartialStreamTask
- type CopySingleFileTask
- type CopySmallFileTask
- type CopyStreamTask
- type CreateStorageTask
- type DeleteDirTask
- type DeleteFileTask
- type DeleteSegmentDirTask
- type DeleteSegmentTask
- type DeleteStorageTask
- type IterateFileTask
- type IterateSegmentTask
- type ListFileTask
- type ListSegmentTask
- type ListStorageTask
- type MD5SumFileTask
- type MD5SumStreamTask
- type ReachFileTask
- type SegmentAbortAllTask
- type SegmentCompleteTask
- type SegmentFileCopyTask
- type SegmentInitTask
- type SegmentStreamCopyTask
- type StatFileTask
- type SyncTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCopyDirTask ¶
NewCopyDirTask will create a CopyDirTask which meets navvy.Task.
func NewCopyFileTask ¶
NewCopyFileTask will create a CopyFileTask which meets navvy.Task.
func NewCopyLargeFileTask ¶
NewCopyLargeFileTask will create a CopyLargeFileTask which meets navvy.Task.
func NewCopyPartialFileTask ¶
NewCopyPartialFileTask will create a CopyPartialFileTask which meets navvy.Task.
func NewCopyPartialStreamTask ¶
NewCopyPartialStreamTask will create a CopyPartialStreamTask which meets navvy.Task.
func NewCopySingleFileTask ¶
NewCopySingleFileTask will create a CopySingleFileTask which meets navvy.Task.
func NewCopySmallFileTask ¶
NewCopySmallFileTask will create a CopySmallFileTask which meets navvy.Task.
func NewCopyStreamTask ¶
NewCopyStreamTask will create a CopyStreamTask which meets navvy.Task.
func NewCreateStorageTask ¶
NewCreateStorageTask will create a CreateStorageTask which meets navvy.Task.
func NewDeleteDirTask ¶
NewDeleteDirTask will create a DeleteDirTask which meets navvy.Task.
func NewDeleteFileTask ¶
NewDeleteFileTask will create a DeleteFileTask which meets navvy.Task.
func NewDeleteSegmentDirTask ¶
NewDeleteSegmentDirTask will create a DeleteSegmentDirTask which meets navvy.Task.
func NewDeleteSegmentTask ¶
NewDeleteSegmentTask will create a DeleteSegmentTask which meets navvy.Task.
func NewDeleteStorageTask ¶
NewDeleteStorageTask will create a DeleteStorageTask which meets navvy.Task.
func NewIterateFileTask ¶
NewIterateFileTask will create a IterateFileTask which meets navvy.Task.
func NewIterateSegmentTask ¶
NewIterateSegmentTask will create a IterateSegmentTask which meets navvy.Task.
func NewListFileTask ¶
NewListFileTask will create a ListFileTask which meets navvy.Task.
func NewListSegmentTask ¶
NewListSegmentTask will create a ListSegmentTask which meets navvy.Task.
func NewListStorageTask ¶
NewListStorageTask will create a ListStorageTask which meets navvy.Task.
func NewMD5SumFileTask ¶
NewMD5SumFileTask will create a MD5SumFileTask which meets navvy.Task.
func NewMD5SumStreamTask ¶
NewMD5SumStreamTask will create a MD5SumStreamTask which meets navvy.Task.
func NewReachFileTask ¶
NewReachFileTask will create a ReachFileTask which meets navvy.Task.
func NewSegmentAbortAllTask ¶
NewSegmentAbortAllTask will create a SegmentAbortAllTask which meets navvy.Task.
func NewSegmentCompleteTask ¶
NewSegmentCompleteTask will create a SegmentCompleteTask which meets navvy.Task.
func NewSegmentFileCopyTask ¶
NewSegmentFileCopyTask will create a SegmentFileCopyTask which meets navvy.Task.
func NewSegmentInitTask ¶
NewSegmentInitTask will create a SegmentInitTask which meets navvy.Task.
func NewSegmentStreamCopyTask ¶
NewSegmentStreamCopyTask will create a SegmentStreamCopyTask which meets navvy.Task.
func NewStatFileTask ¶
NewStatFileTask will create a StatFileTask which meets navvy.Task.
Types ¶
type CopyDirTask ¶
type CopyDirTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.SourcePath types.SourceStorage }
CopyDirTask will copy a directory recursively between two storager.
func NewCopyDir ¶
func NewCopyDir(task navvy.Task) *CopyDirTask
NewCopyDir will create a CopyDirTask struct and fetch inherited data from parent task.
func (*CopyDirTask) String ¶
func (t *CopyDirTask) String() string
String will implement Stringer interface.
func (*CopyDirTask) TriggerFault ¶
func (t *CopyDirTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopyDirTask) VoidWorkload ¶
func (t *CopyDirTask) VoidWorkload()
type CopyFileTask ¶
type CopyFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.SourcePath types.SourceStorage }
CopyFileTask will copy a file between two storager.
func NewCopyFile ¶
func NewCopyFile(task navvy.Task) *CopyFileTask
NewCopyFile will create a CopyFileTask struct and fetch inherited data from parent task.
func (*CopyFileTask) String ¶
func (t *CopyFileTask) String() string
String will implement Stringer interface.
func (*CopyFileTask) TriggerFault ¶
func (t *CopyFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopyFileTask) VoidWorkload ¶
func (t *CopyFileTask) VoidWorkload()
type CopyLargeFileTask ¶
type CopyLargeFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.SourcePath types.SourceStorage types.TotalSize // Output value types.Offset types.PartSize types.SegmentID }
CopyLargeFileTask will copy a large file between two storager.
func NewCopyLargeFile ¶
func NewCopyLargeFile(task navvy.Task) *CopyLargeFileTask
NewCopyLargeFile will create a CopyLargeFileTask struct and fetch inherited data from parent task.
func (*CopyLargeFileTask) String ¶
func (t *CopyLargeFileTask) String() string
String will implement Stringer interface.
func (*CopyLargeFileTask) TriggerFault ¶
func (t *CopyLargeFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopyLargeFileTask) VoidWorkload ¶
func (t *CopyLargeFileTask) VoidWorkload()
type CopyPartialFileTask ¶
type CopyPartialFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.Offset types.PartSize types.SegmentID types.SourcePath types.SourceStorage types.TotalSize // Output value types.Done types.Size }
CopyPartialFileTask will copy a partial file to between two storager.
func NewCopyPartialFile ¶
func NewCopyPartialFile(task navvy.Task) *CopyPartialFileTask
NewCopyPartialFile will create a CopyPartialFileTask struct and fetch inherited data from parent task.
func (*CopyPartialFileTask) String ¶
func (t *CopyPartialFileTask) String() string
String will implement Stringer interface.
func (*CopyPartialFileTask) TriggerFault ¶
func (t *CopyPartialFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopyPartialFileTask) VoidWorkload ¶
func (t *CopyPartialFileTask) VoidWorkload()
type CopyPartialStreamTask ¶
type CopyPartialStreamTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.BytesPool types.DestinationPath types.DestinationStorage types.PartSize types.SegmentID types.SourcePath types.SourceStorage // Output value types.Content types.Done types.Size }
CopyPartialStreamTask will copy a partial stream between two storager.
func NewCopyPartialStream ¶
func NewCopyPartialStream(task navvy.Task) *CopyPartialStreamTask
NewCopyPartialStream will create a CopyPartialStreamTask struct and fetch inherited data from parent task.
func (*CopyPartialStreamTask) String ¶
func (t *CopyPartialStreamTask) String() string
String will implement Stringer interface.
func (*CopyPartialStreamTask) TriggerFault ¶
func (t *CopyPartialStreamTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopyPartialStreamTask) VoidWorkload ¶
func (t *CopyPartialStreamTask) VoidWorkload()
type CopySingleFileTask ¶
type CopySingleFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.MD5Sum types.Size types.SourcePath types.SourceStorage }
CopySingleFileTask will execute a file copy operation between towo storager.
func NewCopySingleFile ¶
func NewCopySingleFile(task navvy.Task) *CopySingleFileTask
NewCopySingleFile will create a CopySingleFileTask struct and fetch inherited data from parent task.
func (*CopySingleFileTask) String ¶
func (t *CopySingleFileTask) String() string
String will implement Stringer interface.
func (*CopySingleFileTask) TriggerFault ¶
func (t *CopySingleFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopySingleFileTask) VoidWorkload ¶
func (t *CopySingleFileTask) VoidWorkload()
type CopySmallFileTask ¶
type CopySmallFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.Size types.SourcePath types.SourceStorage // Output value types.MD5Sum }
CopySmallFileTask will copy a small file between two storager.
func NewCopySmallFile ¶
func NewCopySmallFile(task navvy.Task) *CopySmallFileTask
NewCopySmallFile will create a CopySmallFileTask struct and fetch inherited data from parent task.
func (*CopySmallFileTask) String ¶
func (t *CopySmallFileTask) String() string
String will implement Stringer interface.
func (*CopySmallFileTask) TriggerFault ¶
func (t *CopySmallFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopySmallFileTask) VoidWorkload ¶
func (t *CopySmallFileTask) VoidWorkload()
type CopyStreamTask ¶
type CopyStreamTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.SourcePath types.SourceStorage // Output value types.BytesPool types.PartSize types.SegmentID }
CopyStreamTask will copy a stream between two storager.
func NewCopyStream ¶
func NewCopyStream(task navvy.Task) *CopyStreamTask
NewCopyStream will create a CopyStreamTask struct and fetch inherited data from parent task.
func (*CopyStreamTask) String ¶
func (t *CopyStreamTask) String() string
String will implement Stringer interface.
func (*CopyStreamTask) TriggerFault ¶
func (t *CopyStreamTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*CopyStreamTask) VoidWorkload ¶
func (t *CopyStreamTask) VoidWorkload()
type CreateStorageTask ¶
type CreateStorageTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Service // Output value types.StorageName types.Zone }
CreateStorageTask will create a storage.
func NewCreateStorage ¶
func NewCreateStorage(task navvy.Task) *CreateStorageTask
NewCreateStorage will create a CreateStorageTask struct and fetch inherited data from parent task.
func (*CreateStorageTask) IOWorkload ¶
func (t *CreateStorageTask) IOWorkload()
func (*CreateStorageTask) String ¶
func (t *CreateStorageTask) String() string
String will implement Stringer interface.
func (*CreateStorageTask) TriggerFault ¶
func (t *CreateStorageTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type DeleteDirTask ¶
type DeleteDirTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.Storage }
DeleteDirTask will will delete a dir recursively.
func NewDeleteDir ¶
func NewDeleteDir(task navvy.Task) *DeleteDirTask
NewDeleteDir will create a DeleteDirTask struct and fetch inherited data from parent task.
func (*DeleteDirTask) String ¶
func (t *DeleteDirTask) String() string
String will implement Stringer interface.
func (*DeleteDirTask) TriggerFault ¶
func (t *DeleteDirTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*DeleteDirTask) VoidWorkload ¶
func (t *DeleteDirTask) VoidWorkload()
type DeleteFileTask ¶
type DeleteFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.Storage }
DeleteFileTask will will delete a file from storage.
func NewDeleteFile ¶
func NewDeleteFile(task navvy.Task) *DeleteFileTask
NewDeleteFile will create a DeleteFileTask struct and fetch inherited data from parent task.
func (*DeleteFileTask) IOWorkload ¶
func (t *DeleteFileTask) IOWorkload()
func (*DeleteFileTask) String ¶
func (t *DeleteFileTask) String() string
String will implement Stringer interface.
func (*DeleteFileTask) TriggerFault ¶
func (t *DeleteFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type DeleteSegmentDirTask ¶
type DeleteSegmentDirTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.Storage }
DeleteSegmentDirTask will delete all segments under a path.
func NewDeleteSegmentDir ¶
func NewDeleteSegmentDir(task navvy.Task) *DeleteSegmentDirTask
NewDeleteSegmentDir will create a DeleteSegmentDirTask struct and fetch inherited data from parent task.
func (*DeleteSegmentDirTask) String ¶
func (t *DeleteSegmentDirTask) String() string
String will implement Stringer interface.
func (*DeleteSegmentDirTask) TriggerFault ¶
func (t *DeleteSegmentDirTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*DeleteSegmentDirTask) VoidWorkload ¶
func (t *DeleteSegmentDirTask) VoidWorkload()
type DeleteSegmentTask ¶
type DeleteSegmentTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.SegmentID types.Storage }
DeleteSegmentTask will delete all segments with a given path.
func NewDeleteSegment ¶
func NewDeleteSegment(task navvy.Task) *DeleteSegmentTask
NewDeleteSegment will create a DeleteSegmentTask struct and fetch inherited data from parent task.
func (*DeleteSegmentTask) IOWorkload ¶
func (t *DeleteSegmentTask) IOWorkload()
func (*DeleteSegmentTask) String ¶
func (t *DeleteSegmentTask) String() string
String will implement Stringer interface.
func (*DeleteSegmentTask) TriggerFault ¶
func (t *DeleteSegmentTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type DeleteStorageTask ¶
type DeleteStorageTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Force types.Service types.StorageName }
DeleteStorageTask will delete a storage.
func NewDeleteStorage ¶
func NewDeleteStorage(task navvy.Task) *DeleteStorageTask
NewDeleteStorage will create a DeleteStorageTask struct and fetch inherited data from parent task.
func (*DeleteStorageTask) IOWorkload ¶
func (t *DeleteStorageTask) IOWorkload()
func (*DeleteStorageTask) String ¶
func (t *DeleteStorageTask) String() string
String will implement Stringer interface.
func (*DeleteStorageTask) TriggerFault ¶
func (t *DeleteStorageTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type IterateFileTask ¶
type IterateFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.PathFunc types.Recursive types.Storage }
IterateFileTask will iterate file and execute operations on it.
func NewIterateFile ¶
func NewIterateFile(task navvy.Task) *IterateFileTask
NewIterateFile will create a IterateFileTask struct and fetch inherited data from parent task.
func (*IterateFileTask) String ¶
func (t *IterateFileTask) String() string
String will implement Stringer interface.
func (*IterateFileTask) TriggerFault ¶
func (t *IterateFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*IterateFileTask) VoidWorkload ¶
func (t *IterateFileTask) VoidWorkload()
type IterateSegmentTask ¶
type IterateSegmentTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.SegmentIDFunc types.Storage }
IterateSegmentTask will iterate segment and execute operations on it.
func NewIterateSegment ¶
func NewIterateSegment(task navvy.Task) *IterateSegmentTask
NewIterateSegment will create a IterateSegmentTask struct and fetch inherited data from parent task.
func (*IterateSegmentTask) String ¶
func (t *IterateSegmentTask) String() string
String will implement Stringer interface.
func (*IterateSegmentTask) TriggerFault ¶
func (t *IterateSegmentTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*IterateSegmentTask) VoidWorkload ¶
func (t *IterateSegmentTask) VoidWorkload()
type ListFileTask ¶
type ListFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.Recursive types.Storage // Output value types.ObjectChannel }
ListFileTask will list files.
func NewListFile ¶
func NewListFile(task navvy.Task) *ListFileTask
NewListFile will create a ListFileTask struct and fetch inherited data from parent task.
func (*ListFileTask) String ¶
func (t *ListFileTask) String() string
String will implement Stringer interface.
func (*ListFileTask) TriggerFault ¶
func (t *ListFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*ListFileTask) VoidWorkload ¶
func (t *ListFileTask) VoidWorkload()
type ListSegmentTask ¶
type ListSegmentTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.Storage // Output value types.SegmentChannel }
ListSegmentTask will list segments.
func NewListSegment ¶
func NewListSegment(task navvy.Task) *ListSegmentTask
NewListSegment will create a ListSegmentTask struct and fetch inherited data from parent task.
func (*ListSegmentTask) String ¶
func (t *ListSegmentTask) String() string
String will implement Stringer interface.
func (*ListSegmentTask) TriggerFault ¶
func (t *ListSegmentTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*ListSegmentTask) VoidWorkload ¶
func (t *ListSegmentTask) VoidWorkload()
type ListStorageTask ¶
type ListStorageTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Service // Output value types.BucketList types.Zone }
ListStorageTask will send get request to get bucket list.
func NewListStorage ¶
func NewListStorage(task navvy.Task) *ListStorageTask
NewListStorage will create a ListStorageTask struct and fetch inherited data from parent task.
func (*ListStorageTask) String ¶
func (t *ListStorageTask) String() string
String will implement Stringer interface.
func (*ListStorageTask) TriggerFault ¶
func (t *ListStorageTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*ListStorageTask) VoidWorkload ¶
func (t *ListStorageTask) VoidWorkload()
type MD5SumFileTask ¶
type MD5SumFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Offset types.Path types.Size types.Storage // Output value types.MD5Sum }
MD5SumFileTask will get file's md5 sum.
func NewMD5SumFile ¶
func NewMD5SumFile(task navvy.Task) *MD5SumFileTask
NewMD5SumFile will create a MD5SumFileTask struct and fetch inherited data from parent task.
func (*MD5SumFileTask) IOWorkload ¶
func (t *MD5SumFileTask) IOWorkload()
func (*MD5SumFileTask) String ¶
func (t *MD5SumFileTask) String() string
String will implement Stringer interface.
func (*MD5SumFileTask) TriggerFault ¶
func (t *MD5SumFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type MD5SumStreamTask ¶
type MD5SumStreamTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Content // Output value types.MD5Sum }
MD5SumStreamTask will get stream's md5 sum.
func NewMD5SumStream ¶
func NewMD5SumStream(task navvy.Task) *MD5SumStreamTask
NewMD5SumStream will create a MD5SumStreamTask struct and fetch inherited data from parent task.
func (*MD5SumStreamTask) IOWorkload ¶
func (t *MD5SumStreamTask) IOWorkload()
func (*MD5SumStreamTask) String ¶
func (t *MD5SumStreamTask) String() string
String will implement Stringer interface.
func (*MD5SumStreamTask) TriggerFault ¶
func (t *MD5SumStreamTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type ReachFileTask ¶
type ReachFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Expire types.Path types.Storage // Output value types.URL }
ReachFileTask will will reach a remote object and return the signed url.
func NewReachFile ¶
func NewReachFile(task navvy.Task) *ReachFileTask
NewReachFile will create a ReachFileTask struct and fetch inherited data from parent task.
func (*ReachFileTask) IOWorkload ¶
func (t *ReachFileTask) IOWorkload()
func (*ReachFileTask) String ¶
func (t *ReachFileTask) String() string
String will implement Stringer interface.
func (*ReachFileTask) TriggerFault ¶
func (t *ReachFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type SegmentAbortAllTask ¶
type SegmentAbortAllTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Storage types.StorageName }
SegmentAbortAllTask will abort all multipart uploads in a bucket.
func NewSegmentAbortAll ¶
func NewSegmentAbortAll(task navvy.Task) *SegmentAbortAllTask
NewSegmentAbortAll will create a SegmentAbortAllTask struct and fetch inherited data from parent task.
func (*SegmentAbortAllTask) String ¶
func (t *SegmentAbortAllTask) String() string
String will implement Stringer interface.
func (*SegmentAbortAllTask) TriggerFault ¶
func (t *SegmentAbortAllTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
func (*SegmentAbortAllTask) VoidWorkload ¶
func (t *SegmentAbortAllTask) VoidWorkload()
type SegmentCompleteTask ¶
type SegmentCompleteTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.SegmentID types.Storage }
SegmentCompleteTask will complete a segment.
func NewSegmentComplete ¶
func NewSegmentComplete(task navvy.Task) *SegmentCompleteTask
NewSegmentComplete will create a SegmentCompleteTask struct and fetch inherited data from parent task.
func (*SegmentCompleteTask) IOWorkload ¶
func (t *SegmentCompleteTask) IOWorkload()
func (*SegmentCompleteTask) String ¶
func (t *SegmentCompleteTask) String() string
String will implement Stringer interface.
func (*SegmentCompleteTask) TriggerFault ¶
func (t *SegmentCompleteTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type SegmentFileCopyTask ¶
type SegmentFileCopyTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.MD5Sum types.Offset types.SegmentID types.Size types.SourcePath types.SourceStorage }
SegmentFileCopyTask will copy a segment file.
func NewSegmentFileCopy ¶
func NewSegmentFileCopy(task navvy.Task) *SegmentFileCopyTask
NewSegmentFileCopy will create a SegmentFileCopyTask struct and fetch inherited data from parent task.
func (*SegmentFileCopyTask) IOWorkload ¶
func (t *SegmentFileCopyTask) IOWorkload()
func (*SegmentFileCopyTask) String ¶
func (t *SegmentFileCopyTask) String() string
String will implement Stringer interface.
func (*SegmentFileCopyTask) TriggerFault ¶
func (t *SegmentFileCopyTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type SegmentInitTask ¶
type SegmentInitTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.PartSize types.Path types.Storage // Output value types.SegmentID }
SegmentInitTask will init a segment upload.
func NewSegmentInit ¶
func NewSegmentInit(task navvy.Task) *SegmentInitTask
NewSegmentInit will create a SegmentInitTask struct and fetch inherited data from parent task.
func (*SegmentInitTask) IOWorkload ¶
func (t *SegmentInitTask) IOWorkload()
func (*SegmentInitTask) String ¶
func (t *SegmentInitTask) String() string
String will implement Stringer interface.
func (*SegmentInitTask) TriggerFault ¶
func (t *SegmentInitTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type SegmentStreamCopyTask ¶
type SegmentStreamCopyTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Content types.DestinationPath types.DestinationStorage types.MD5Sum types.Offset types.SegmentID types.Size }
SegmentStreamCopyTask will copy a segment stream.
func NewSegmentStreamCopy ¶
func NewSegmentStreamCopy(task navvy.Task) *SegmentStreamCopyTask
NewSegmentStreamCopy will create a SegmentStreamCopyTask struct and fetch inherited data from parent task.
func (*SegmentStreamCopyTask) IOWorkload ¶
func (t *SegmentStreamCopyTask) IOWorkload()
func (*SegmentStreamCopyTask) String ¶
func (t *SegmentStreamCopyTask) String() string
String will implement Stringer interface.
func (*SegmentStreamCopyTask) TriggerFault ¶
func (t *SegmentStreamCopyTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type StatFileTask ¶
type StatFileTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.Path types.Storage // Output value types.Object }
StatFileTask will stat a remote object by request headObject.
func NewStatFile ¶
func NewStatFile(task navvy.Task) *StatFileTask
NewStatFile will create a StatFileTask struct and fetch inherited data from parent task.
func (*StatFileTask) IOWorkload ¶
func (t *StatFileTask) IOWorkload()
func (*StatFileTask) String ¶
func (t *StatFileTask) String() string
String will implement Stringer interface.
func (*StatFileTask) TriggerFault ¶
func (t *StatFileTask) TriggerFault(err error)
TriggerFault will be used to trigger a task related fault.
type SyncTask ¶
type SyncTask struct { // Predefined value types.Fault types.ID types.Pool types.Scheduler // Input value types.DestinationPath types.DestinationStorage types.SourcePath types.SourceStorage }
SyncTask will sync directory between two storage.
func (*SyncTask) TriggerFault ¶
TriggerFault will be used to trigger a task related fault.
func (*SyncTask) VoidWorkload ¶
func (t *SyncTask) VoidWorkload()