repository

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	TransferID     string
	JobID          int64
	TransferStatus datatx.Status
	SrcToken       string
	SrcRemote      string
	SrcPath        string
	DestToken      string
	DestRemote     string
	DestPath       string
	Ctime          string
}

Job represents transfer job.

type Repository

type Repository interface {
	StoreJob(job *Job) error
	GetJob(transferID string) (*Job, error)
	DeleteJob(job *Job) error
}

Repository the interface that any storage driver should implement.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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