v1

package
v0.0.0-...-9514a38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2021 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteObject

func DeleteObject(c *gin.Context)

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

func GetHashByName(c *gin.Context)

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

func PostNewHash(c *gin.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL