Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteObject ¶
DeleteObject API is called when a DELETE HTTP request is going to sent to storage-service. Metadata should change "Metadata.isDeleted" from false to true. But the real object is still on storage-service server. if version not provided, the latest version as default. DELETE /api/v1/metadata/:<object-name>?version=<object-version>
func GetHashByName ¶
GetHashByName is to get hash-value by object-name. if version not provided, the latest version as default. GET /api/v1/metadata/:<object-name>?version=<object-version>
func PostNewHash ¶
PostNewHash is to post new hash value. Prepare for posting a new object to storage-service, whose owns the same name as a former object, object's metadata in db need modified at the same time. POST /api/v1/metadata/:<object-name> --data { "hash": <hash> }
Types ¶
This section is empty.