Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetadataKeyHashOrig = "hash_orig" MetadataKeyHashEncrypt = "hash_enc" )
View Source
const IsoIDCloud = -1
IsoIDCloud is to flag the file is uploaded into cloud and not packed in ISO yet
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirInfo ¶
type DirInfo struct { ID int ScanRootDirID int NumberOfFiles int NumberOfDirs int TotalFileSize int RefID string // ID in cloud Path string ModTime time.Time CreateTime time.Time }
DirInfo is structure for directory
type FileInfo ¶
type FileInfo struct { ID int DirID int IsoID int RefID string // ID in cloud Name string // HashLocal use hex encoding method as command line sha256sum output is hex, so as to easy compare HashLocal string // HashRemote uses base64 encoding as it is required by AWS HashRemote string Size int ModTime time.Time }
FileInfo is structure for file
type ISOInfo ¶
type ISOInfo struct { ID int Name string Region string Bucket string UploadKey string UploadID string HashLocal string HashRemote string Size int Status IsoStatus CreateTime time.Time }
ISOInfo is structure for one iso file
func (*ISOInfo) SetHashLocal ¶
func (*ISOInfo) SetHashRemote ¶
type PartInfo ¶
type PartInfo struct { IsoID int PartNo int Size int Status PartStatus Etag string HashLocal string HashRemote string CreateTime time.Time }
PartInfo is struct for one upload part of one iso file
func (*PartInfo) SetHashLocal ¶
func (*PartInfo) SetHashRemote ¶
type PartStatus ¶
type PartStatus int
const ( PartUploading PartStatus = iota PartUploaded PartUploadFailed )
func (PartStatus) String ¶
func (p PartStatus) String() string
Click to show internal directories.
Click to hide internal directories.