types

package
Version: v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MULTIPART_UPLOAD_IN_PROCESS = 0
	MULTIPART_UPLOAD_COMPLETE   = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ByPartNum

type ByPartNum []*PartInfo

func (ByPartNum) Len

func (bpn ByPartNum) Len() int

func (ByPartNum) Less

func (bpn ByPartNum) Less(i, j int) bool

func (ByPartNum) Swap

func (bpn ByPartNum) Swap(i, j int)

type Cluster

type Cluster struct {
	Fsid   string
	Pool   string
	Weight int
}

type GcObject

type GcObject struct {
	Id         int64
	Location   string
	Pool       string
	ObjectId   string
	CreateTime time.Time
}

type PartInfo

type PartInfo struct {
	// global unique upload id
	// Note: this upload id is increasing monoatomicly only in one node.
	UploadId uint64
	// part number in this upload
	PartNum int64
	// object id in ceph which relates to the part.
	ObjectId string
	// ceph cluster
	Location string
	// ceph pool name
	Pool string
	// offset of this part in the whole object
	Offset uint64
	// size of this part
	Size uint64
	// etag of this part
	Etag string
	// Flag determin whether this part is completed or not.
	// 0 by default.
	Flag uint8
	// create time of this upload
	CreateTime time.Time
	// this record changed time.
	UpdateTime time.Time
}

Jump to

Keyboard shortcuts

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