Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareMetaData ¶
CompareMetaData compares the MetaData associated with the remote page blob and local VHD file. If both metadata are same this method returns an empty error slice else a non-empty error slice with each error describing the metadata entry that mismatched.
Types ¶
type FileMetaData ¶
type FileMetaData struct { FileName string `json:"fileName"` FileSize int64 `json:"fileSize"` VHDSize int64 `json:"vhdSize"` LastModifiedTime time.Time `json:"lastModifiedTime"` MD5Hash []byte `json:"md5Hash"` // Marshal will encodes []byte as a base64-encoded string }
FileMetaData represents the metadata of a VHD file.
type MetaData ¶
type MetaData struct {
FileMetaData *FileMetaData `json:"fileMetaData"`
}
MetaData is the type representing metadata associated with an Azure page blob holding the VHD. This will be stored as a JSON string in the page blob metadata collection with key 'diskmetadata'.
func NewMetaDataFromLocalVHD ¶
NewMetaDataFromLocalVHD creates a MetaData instance that should be associated with the page blob holding the VHD. The parameter vhdPath is the path to the local VHD.
func NewMetadataFromBlob ¶
func NewMetadataFromBlob(blobClient storage.BlobStorageClient, containerName, blobName string) (*MetaData, error)
NewMetadataFromBlob returns MetaData instance associated with a Azure page blob, if there is no MetaData associated with the blob it returns nil value for MetaData