summaryrefslogtreecommitdiffhomepage
path: root/ipn/backend.go
diff options
context:
space:
mode:
authorRhea Ghosh <rhea@tailscale.com>2023-10-21 18:28:07 -0500
committerRhea Ghosh <rhea@tailscale.com>2023-10-22 19:04:11 -0500
commit7050b288853cd5f7894d89cf6f90abfbee4717d5 (patch)
treec9d272e18f93459db2c108f8fbbc6f9149d090c5 /ipn/backend.go
parentf398712c006a8afeb165942baae9e7c526de7a9e (diff)
downloadtailscale-rhea/apple-test.tar.xz
tailscale-rhea/apple-test.zip
taildrop macos testingrhea/apple-test
Diffstat (limited to 'ipn/backend.go')
-rw-r--r--ipn/backend.go22
1 files changed, 2 insertions, 20 deletions
diff --git a/ipn/backend.go b/ipn/backend.go
index ad5dbd4bf..1cabc5788 100644
--- a/ipn/backend.go
+++ b/ipn/backend.go
@@ -6,10 +6,10 @@ package ipn
import (
"fmt"
"strings"
- "time"
"tailscale.com/ipn/ipnstate"
"tailscale.com/tailcfg"
+ "tailscale.com/taildrop"
"tailscale.com/types/empty"
"tailscale.com/types/key"
"tailscale.com/types/netmap"
@@ -109,7 +109,7 @@ type Notify struct {
// of being transferred.
//
// Deprecated: use LocalClient.AwaitWaitingFiles instead.
- IncomingFiles []PartialFile `json:",omitempty"`
+ IncomingFiles []taildrop.PartialFile `json:",omitempty"`
// LocalTCPPort, if non-nil, informs the UI frontend which
// (non-zero) localhost TCP port it's listening on.
@@ -164,24 +164,6 @@ func (n Notify) String() string {
return s[0:len(s)-1] + "}"
}
-// PartialFile represents an in-progress file transfer.
-type PartialFile struct {
- Name string // e.g. "foo.jpg"
- Started time.Time // time transfer started
- DeclaredSize int64 // or -1 if unknown
- Received int64 // bytes copied thus far
-
- // PartialPath is set non-empty in "direct" file mode to the
- // in-progress '*.partial' file's path when the peerapi isn't
- // being used; see LocalBackend.SetDirectFileRoot.
- PartialPath string `json:",omitempty"`
-
- // Done is set in "direct" mode when the partial file has been
- // closed and is ready for the caller to rename away the
- // ".partial" suffix.
- Done bool `json:",omitempty"`
-}
-
// StateKey is an opaque identifier for a set of LocalBackend state
// (preferences, private keys, etc.). It is also used as a key for
// the various LoginProfiles that the instance may be signed into.