mirror of
https://github.com/rclone/rclone.git
synced 2024-12-04 23:12:52 +08:00
33 lines
789 B
Go
33 lines
789 B
Go
|
// Copyright (C) 2019 Storj Labs, Inc.
|
||
|
// See LICENSE for copying information.
|
||
|
|
||
|
package storj
|
||
|
|
||
|
// SegmentPosition segment position in object
|
||
|
type SegmentPosition struct {
|
||
|
PartNumber int32
|
||
|
Index int32
|
||
|
}
|
||
|
|
||
|
// SegmentListItem represents listed segment
|
||
|
type SegmentListItem struct {
|
||
|
Position SegmentPosition
|
||
|
}
|
||
|
|
||
|
// SegmentDownloadInfo represents segment download information inline/remote
|
||
|
type SegmentDownloadInfo struct {
|
||
|
SegmentID SegmentID
|
||
|
Size int64
|
||
|
EncryptedInlineData []byte
|
||
|
Next SegmentPosition
|
||
|
PiecePrivateKey PiecePrivateKey
|
||
|
|
||
|
SegmentEncryption SegmentEncryption
|
||
|
}
|
||
|
|
||
|
// SegmentEncryption represents segment encryption key and nonce
|
||
|
type SegmentEncryption struct {
|
||
|
EncryptedKeyNonce Nonce
|
||
|
EncryptedKey EncryptedPrivateKey
|
||
|
}
|