migrate

package
v0.2.47 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DealState

type DealState struct {
	Client     string    `bson:"client"`
	Provider   string    `bson:"provider"`
	DealCID    string    `bson:"dealCid"`
	PieceCID   string    `bson:"pieceCid"`
	StartEpoch int64     `bson:"startEpoch"`
	Expiration int64     `bson:"expiration"`
	Duration   int64     `bson:"duration"`
	DealID     uint64    `bson:"dealId"`
	State      string    `bson:"state"`
	CreatedAt  time.Time `bson:"createdAt"`
	UpdatedAt  time.Time `bson:"updatedAt"`
}

type GeneratedFile

type GeneratedFile struct {
	Path  string `bson:"path"`
	Dir   bool   `bson:"dir"`
	CID   string `bson:"cid"`
	Size  uint64 `bson:"size"`
	Start uint64 `bson:"start"`
	End   uint64 `bson:"end"`
}

type GenerationRequest

type GenerationRequest struct {
	ID          string    `bson:"_id"`
	DatasetName string    `bson:"datasetName"`
	Path        string    `bson:"path"`
	Index       uint64    `bson:"index"`
	OutDir      string    `bson:"outDir"`
	Status      string    `bson:"status"`
	TmpDir      string    `bson:"tmpDir"`
	CreatedAt   time.Time `bson:"createdAt"`
	UpdatedAt   time.Time `bson:"updatedAt"`
	CarSize     uint64    `bson:"carSize"`
	DataCID     string    `bson:"dataCid"`
	PieceCID    string    `bson:"pieceCid"`
	PieceSize   uint64    `bson:"pieceSize"`
}

type OutputFileList

type OutputFileList struct {
	ID                string          `bson:"_id"`
	GeneratedFileList []GeneratedFile `bson:"generatedFileList"`
}

type ReplicationRequest

type ReplicationRequest struct {
	ID                  string    `bson:"_id"`
	DatasetID           string    `bson:"datasetId"`
	StorageProviders    string    `bson:"storageProviders"`
	URLPrefix           string    `bson:"urlPrefix"`
	MaxPrice            uint64    `bson:"maxPrice"`
	IsVerified          bool      `bson:"isVerified"`
	StartDelay          uint64    `bson:"startDelay"`
	Duration            uint64    `bson:"duration"`
	MaxNumberOfDeals    uint64    `bson:"maxNumberOfDeals"`
	Status              string    `bson:"status"`
	CreatedAt           time.Time `bson:"createdAt"`
	UpdatedAt           time.Time `bson:"updatedAt"`
	FileListPath        string    `bson:"fileListPath"`
	CronSchedule        string    `bson:"cronSchedule"`
	CronMaxDeals        uint64    `bson:"cronMaxDeals"`
	CronMaxPendingDeals uint64    `bson:"cronMaxPendingDeals"`
	Notes               string    `bson:"notes"`
}

type ScanningRequest

type ScanningRequest struct {
	ID                     string    `bson:"_id"`
	Name                   string    `bson:"name"`
	MinSize                uint64    `bson:"minSize"`
	MaxSize                uint64    `bson:"maxSize"`
	Path                   string    `bson:"path"`
	Status                 string    `bson:"status"`
	OutDir                 string    `bson:"outDir"`
	TmpDir                 string    `bson:"tmpDir"`
	Scanned                uint64    `bson:"scanned"`
	DagGenerationAttempted bool      `bson:"dagGenerationAttempted"`
	UpdatedAt              time.Time `bson:"updatedAt"`
}

Jump to

Keyboard shortcuts

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