cmd

package
v3.1.28 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command

func SetVersion

func SetVersion(v, bt, gc string)

SetVersion sets version information

Types

type CompleteResult

type CompleteResult struct {
	ID               int64  `json:"id"`
	DownloadURL      string `json:"browser_download_url"`
	ChecksumVerified bool   `json:"checksum_verified"`
}

type ProgressTracker

type ProgressTracker struct {
	// contains filtered or unexported fields
}

ProgressTracker tracks upload progress

func (*ProgressTracker) Add

func (p *ProgressTracker) Add(n int64)

func (*ProgressTracker) Progress

func (p *ProgressTracker) Progress() (current, total int64, percent, speed float64, eta time.Duration)

type UploadSession

type UploadSession struct {
	ID             string    `json:"id"`
	FileName       string    `json:"file_name"`
	FileSize       int64     `json:"file_size"`
	ChunkSize      int64     `json:"chunk_size"`
	TotalChunks    int64     `json:"total_chunks"`
	ChunksReceived int64     `json:"chunks_received"`
	Status         string    `json:"status"`
	ExpiresAt      time.Time `json:"expires_at"`
	Checksum       string    `json:"checksum,omitempty"`
}

UploadSession represents a chunked upload session

Source Files

  • auth.go
  • root.go
  • upload.go

Jump to

Keyboard shortcuts

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