Documentation ¶
Index ¶
- Constants
- Variables
- func GetInode(path string) (uint, error)
- type CollectFilesRes
- type Empty
- type GenerateDiffReq
- type GetRootsRes
- type ServerConfig
- type TakiServer
- func (s *TakiServer) GenerateDiff(req *GenerateDiffReq, res *Empty) (err error)
- func (s *TakiServer) GetRoots(req Empty, res *GetRootsRes) (err error)
- func (s *TakiServer) SetConfig(config *ServerConfig, res *bool) error
- func (s *TakiServer) TarProgress(req Empty, res *float64) error
- func (s *TakiServer) TarStart(req Empty, res *Empty) error
- type TarTask
- type TaskCopy
Constants ¶
View Source
const SERVER_START_LINE = "--TAKI SERVER START--"
Line that is printed prior to switching to binary encoding
View Source
const TAKI_SERVER_CLASS = "TakiServer"
Variables ¶
View Source
var ErrTaskNotExist = errors.New("task does not exist")
Error returned by task APIs when the task isn't found
View Source
var ErrTaskNotProgressive = errors.New("task does not implement Progressive")
Error when a task does not implement the Progressive interface
View Source
var ErrTaskNotStarted = errors.New("task not started")
Indicates that a task has not started
Functions ¶
Types ¶
type CollectFilesRes ¶
type GenerateDiffReq ¶
type GetRootsRes ¶
type GetRootsRes struct {
Roots []string
}
type ServerConfig ¶
type TakiServer ¶
type TakiServer struct {
// contains filtered or unexported fields
}
func (*TakiServer) GenerateDiff ¶
func (s *TakiServer) GenerateDiff(req *GenerateDiffReq, res *Empty) (err error)
func (*TakiServer) GetRoots ¶
func (s *TakiServer) GetRoots(req Empty, res *GetRootsRes) (err error)
func (*TakiServer) SetConfig ¶
func (s *TakiServer) SetConfig(config *ServerConfig, res *bool) error
func (*TakiServer) TarProgress ¶
func (s *TakiServer) TarProgress(req Empty, res *float64) error
Get the progress of the tar task
type TarTask ¶
type TarTask struct { *task.BaseTask // Ouput tar file path Output string // Root of tar file contents Root string // List of file paths to collect (relative to Root) Files []string // Size of each file FileSizes []int64 // contains filtered or unexported fields }
func (*TarTask) GetCurrentBytes ¶
func (*TarTask) GetProgress ¶
type TaskCopy ¶
func NewTaskCopy ¶
func NewTaskCopy(src io.ReadSeekCloser, dst io.WriteCloser) *TaskCopy
func (*TaskCopy) GetProgress ¶
Click to show internal directories.
Click to hide internal directories.