Documentation ¶
Index ¶
- Constants
- func AesDecrypt(decodeStr string, key []byte) (retByte []byte, retErr error)
- func AesEncrypt(encodeStr string, key []byte) (string, error)
- func GetDefaultConfig(_aesKey, _aesIv string) map[string]string
- func InitConfigFile(kv map[string]string, bootstrap bool) error
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func Run(aesKey, aesIv string)
- type CopyObjectCheckpoint
- type CopyPart
- type DownloadFileCheckpoint
- type DownloadPart
- type FileInfo
- type Level
- type MetaContext
- type MoveRequestInput
- type NilLocker
- type NilRecorder
- type NilWriter
- type ObjectInfo
- type ObsObjectCtx
- type PartEtag
- type RWLocker
- type ScanObsDirCtx
- type TempFileInfo
- type UploadFileCheckpoint
- type UploadPart
Constants ¶
View Source
const ( ISO8601_DATE_FORMAT = "2006-01-02T15:04:05Z" OBS_VERSION_UNKNOWN = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfig ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
type CopyObjectCheckpoint ¶
type CopyObjectCheckpoint struct { XMLName xml.Name `xml:"CopyObjectCheckpoint"` SourceBucket string `xml:"SourceBucket"` SourceKey string `xml:"SourceKey"` SourceVersionId string `xml:"SourceVersionId"` DestinationBucket string `xml:"DestinationBucket"` DestinationKey string `xml:"DestinationKey"` UploadId string `xml:"UploadId,omitempty"` ObjectInfo ObjectInfo `xml:"ObjectInfo"` CopyParts []CopyPart `xml:"CopyParts>CopyPart"` }
type DownloadFileCheckpoint ¶
type DownloadFileCheckpoint struct { XMLName xml.Name `xml:"DownloadFileCheckpoint"` Bucket string `xml:"Bucket"` Key string `xml:"Key"` VersionId string `xml:"VersionId"` FileUrl string `xml:"FileUrl"` ObjectInfo ObjectInfo `xml:"ObjectInfo"` TempFileInfo TempFileInfo `xml:"TempFileInfo"` DownloadParts []DownloadPart `xml:"DownloadParts>DownloadPart"` }
type DownloadPart ¶
type MetaContext ¶
type MoveRequestInput ¶
type MoveRequestInput struct {
// contains filtered or unexported fields
}
type NilRecorder ¶
type NilRecorder struct { }
type ObjectInfo ¶
type ObsObjectCtx ¶
type ObsObjectCtx struct {
// contains filtered or unexported fields
}
type ScanObsDirCtx ¶
type ScanObsDirCtx struct {
// contains filtered or unexported fields
}
type TempFileInfo ¶
type UploadFileCheckpoint ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.