From 5e755825ee4ad41ecefc3001b8f007c6b9f67d93 Mon Sep 17 00:00:00 2001 From: "allen.wq" Date: Wed, 22 Apr 2020 10:45:26 +0800 Subject: [PATCH] fix --- dfdaemon/seed/seed.go | 11 +++++++---- dfdaemon/seed/types.go | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dfdaemon/seed/seed.go b/dfdaemon/seed/seed.go index 564dbb6ee..9d923c8fa 100644 --- a/dfdaemon/seed/seed.go +++ b/dfdaemon/seed/seed.go @@ -42,9 +42,12 @@ type Seed interface { // GetStatus gets the status of seed file. GetStatus() string - // URL gets the url of seed file. - URL() string + // GetURL gets the url of seed file. + GetURL() string - // Headers get the headers of seed file. - Headers() map[string][]string + // GetHeaders gets the headers of seed file. + GetHeaders() map[string][]string + + // GetHeaders gets the taskID of seed file. + GetTaskID() string } diff --git a/dfdaemon/seed/types.go b/dfdaemon/seed/types.go index 5e5bc70b0..1ba8f7567 100644 --- a/dfdaemon/seed/types.go +++ b/dfdaemon/seed/types.go @@ -25,6 +25,9 @@ type BaseInfo struct { // the url of seed file. URL string + // the taskID of seed file. + TaskID string + // the header of seed file. Header map[string][]string