dataVerifier

package
v1.9.10 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

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

Jump to

Keyboard shortcuts

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