status

package
v1.1.1145 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Queued      = Status("queued")
	Downloading = Status("downloading")
	Uploading   = Status("uploading")
	Skipped     = Status("skipped")
	Complete    = Status("complete")
	Errored     = Status("errored")
	Canceled    = Status("canceled")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IStatus

type IStatus interface {
	String() string
	Queued() bool
	Downloading() bool
	Uploading() bool
	Completed() bool
	Skipped() bool
	Errored() bool
	Invalid() bool
	Valid() bool
	Canceled() bool
	Ended() bool
	Compare(Status) bool
	Type() Status
}

type Job

type Job struct {
	Id string
	// contains filtered or unexported fields
}

func (*Job) Add

func (r *Job) Add(report Report)

func (Job) AllEnded

func (r Job) AllEnded() bool

func (Job) Count

func (r Job) Count() int

func (Job) Files

func (r Job) Files() []filesSDK.File

func (Job) Init

func (r Job) Init() *Job

func (Job) TotalBytes

func (r Job) TotalBytes() int64

func (Job) TransferBytes

func (r Job) TransferBytes() int64

type Report

type Report interface {
	TransferBytes() int64
	File() filesSDK.File
	Cancel()
	Destination() string
	IStatus
	Job() Job
	Id() string
}

type Status

type Status string

func (Status) Canceled

func (e Status) Canceled() bool

func (Status) Compare

func (e Status) Compare(s Status) bool

func (Status) Completed

func (e Status) Completed() bool

func (Status) Downloading

func (e Status) Downloading() bool

func (Status) Ended

func (e Status) Ended() bool

func (Status) Errored

func (e Status) Errored() bool

func (Status) Invalid

func (e Status) Invalid() bool

func (Status) Queued

func (e Status) Queued() bool

func (Status) Skipped

func (e Status) Skipped() bool

func (Status) String

func (e Status) String() string

func (Status) Type

func (e Status) Type() Status

func (Status) Uploading

func (e Status) Uploading() bool

func (Status) Valid

func (e Status) Valid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL