Documentation ¶
Index ¶
- Variables
- type DataVerifier
- func (dataVerifier *DataVerifier) GetTempData(metaData common.MetaData) (io.Reader, common.SyncServiceError)
- func (dataVerifier *DataVerifier) RemoveTempData(orgID string, objectType string, objectID string, destinationDataURI string) common.SyncServiceError
- func (dataVerifier *DataVerifier) RemoveUnverifiedData(metaData common.MetaData) common.SyncServiceError
- func (dataVerifier *DataVerifier) VerifyDataSignature(data io.Reader, orgID string, objectType string, objectID string, ...) (bool, common.SyncServiceError)
Constants ¶
This section is empty.
Variables ¶
View Source
var Store storage.Storage
Store is a reference to the Storage being used
Functions ¶
This section is empty.
Types ¶
type DataVerifier ¶
type DataVerifier struct {
// contains filtered or unexported fields
}
func NewDataVerifier ¶
func NewDataVerifier(hashAlgorithm string, publicKey string, signature string) *DataVerifier
func (*DataVerifier) GetTempData ¶ added in v1.6.8
func (dataVerifier *DataVerifier) GetTempData(metaData common.MetaData) (io.Reader, common.SyncServiceError)
GetTempData is to get temp data for data verification
func (*DataVerifier) RemoveTempData ¶
func (dataVerifier *DataVerifier) RemoveTempData(orgID string, objectType string, objectID string, destinationDataURI string) common.SyncServiceError
CleanUp function is to clean up the temp file created during data verification
func (*DataVerifier) RemoveUnverifiedData ¶ added in v1.6.8
func (dataVerifier *DataVerifier) RemoveUnverifiedData(metaData common.MetaData) common.SyncServiceError
func (*DataVerifier) VerifyDataSignature ¶
func (dataVerifier *DataVerifier) VerifyDataSignature(data io.Reader, orgID string, objectType string, objectID string, destinationDataURI string) (bool, common.SyncServiceError)
VerifyDataSignature is to verify the data. This function will generate the tmp data in storage. Call RemoveTempData() after verification to remove the tmp data
Click to show internal directories.
Click to hide internal directories.