Documentation ¶
Index ¶
- Variables
- type DataVerifier
- func (dataVerifier *DataVerifier) RemoveTempData(orgID string, objectType string, objectID string, destinationDataURI string) common.SyncServiceError
- func (dataVerifier *DataVerifier) StoreVerifiedData(orgID string, objectType string, objectID string, destinationDataURI string) 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) 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) StoreVerifiedData ¶
func (dataVerifier *DataVerifier) StoreVerifiedData(orgID string, objectType string, objectID string, destinationDataURI string) common.SyncServiceError
StoreVerifiedData will store the data from temp data that generated during data verification. And remove temp data
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.