MCPcopy
hub / github.com/dragonflyoss/dragonfly / GetTaskID

Method GetTaskID

test/e2e/util/file.go:110–120  ·  view source on GitHub ↗

GetTaskID returns the task id of the file.

(opts ...TaskIDOption)

Source from the content-addressed store, hash-verified

108
109// GetTaskID returns the task id of the file.
110func (f *File) GetTaskID(opts ...TaskIDOption) string {
111 taskIDOptions := &taskID{
112 url: f.downloadURL,
113 }
114
115 for _, opt := range opts {
116 opt(taskIDOptions)
117 }
118
119 return idgen.TaskIDV2ByURLBased(taskIDOptions.url, taskIDOptions.pieceLength, taskIDOptions.tag, taskIDOptions.application, taskIDOptions.filteredQueryParams, "")
120}
121
122// GetOutputPath returns the output path of the file.
123func (f *File) GetOutputPath() string {

Callers 7

rate_limit_test.goFile · 0.80
dfcache_test.goFile · 0.80
proxy_test.goFile · 0.80
dfget_test.goFile · 0.80
task.goFile · 0.80
preheat.goFile · 0.80

Calls 1

TaskIDV2ByURLBasedFunction · 0.92

Tested by

no test coverage detected