Documentation ¶
Index ¶
- func AccessConditionMapping(accessCondition string) string
- func CheckFileExistInRedisHSET(redisClient *redis.Client, key string, redisFileHSETQueue string) (bool, error)
- func CheckIfPaused(retries int, redisClient *redis.Client) (bool, error)
- func CheckKalliope(id string) bool
- func CheckKeyExistInS3(s3Client *s3.S3, bucket string, key string) (bool, error)
- func CheckOpac(id string) bool
- func ClassifcationMappingDE(classifcation string) string
- func Contains(arr []string, el string) bool
- func CreateImageInfoAndSaveInfoJsonInS3(bucket string, context string, infojsonkey string, imagekey string, pid string, ...) (*types.ImageInfo, error)
- func DeriveWork(id string) string
- func DownloadFile(url string) (string, error)
- func ExistInfoJsonInS3(bucket string, key string) bool
- func GetFileFromOLAHDS(url string) (string, error)
- func GetImageDimensionFromOLAHDS(bucket string, key string) (*types.ImageInfo, error)
- func GetImageInfoFromInfoJsonInS3(bucket string, infojsonkey string) (*types.ImageInfo, error)
- func GetLogToXLinkMap(structlink types.Structlink, recordIdentifier string) (map[string]types.LogToPhysLink, map[string]types.PhysToLogLink)
- func GetMinMaxStartPhys(logToPhysLink types.LogToPhysLink, ...) (int64, int64, string, string)
- func GetNumberFromPPNID(recordID string) string
- func GetNumberFromXID(id string) int64
- func GetS3Client() *s3.S3
- func GetXMLFrom(bucket string, key string, context string, doctype string) (string, error)
- func ImageFileFormatMapping(format string) string
- func ListContainsStringItem(item string) bool
- func MonthMapping(month string) string
- func NomalizePublisherName(publisherName string) string
- func Prettyprint(b []byte) ([]byte, error)
- func StrctypeLabelMapping(strctypeLabel string) string
- func StrctypeMapping(strctype string) string
- func UploadTo(bucket string, key string, content []byte) error
- func ValidationRun() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessConditionMapping ¶
AccessConditionMapping ...
func CheckFileExistInRedisHSET ¶
func CheckFileExistInRedisHSET(redisClient *redis.Client, key string, redisFileHSETQueue string) (bool, error)
CheckFileExistInRedisHSET checks if a key exists in redis HSET, which has prefilled it receives a redis client and in addition the key (filename) and the redis queue name. return true,nil if the key exist return false,error if the key doesn't exist or an error occured
func CheckIfPaused ¶
CheckIfPaused ...
func CheckKeyExistInS3 ¶
CheckKeyExistInS3 checks if a key exists in S3, it receives a S3 client and in addition the bucket name and key. return true,nil if the key exist return false,error if the key doesn't exist or an error occured
func ClassifcationMappingDE ¶
ClassifcationMappingDE ...
func CreateImageInfoAndSaveInfoJsonInS3 ¶
func CreateImageInfoAndSaveInfoJsonInS3(bucket string, context string, infojsonkey string, imagekey string, pid string, document string, product string, page string, href string) (*types.ImageInfo, error)
CreateImageInfoAndSaveInfoJsonInS3 ...
func ExistInfoJsonInS3 ¶
ExistInfoJsonInS3 ...
func GetImageDimensionFromOLAHDS ¶
TODO not yet implemented GetImageDimensionFromOLAHDS ...
func GetImageInfoFromInfoJsonInS3 ¶
GetImageInfoFromInfoJsonInS3 ...
func GetLogToXLinkMap ¶
func GetLogToXLinkMap(structlink types.Structlink, recordIdentifier string) (map[string]types.LogToPhysLink, map[string]types.PhysToLogLink)
GetLogToXLinkMap ...
func GetMinMaxStartPhys ¶
func GetMinMaxStartPhys(logToPhysLink types.LogToPhysLink, physicalIDToAttrMap map[string]types.PhysicalAttributes, workID string, product string) (int64, int64, string, string)
GetMinMaxStartPhys ...
func GetXMLFrom ¶
GetXMLFrom ...
func ImageFileFormatMapping ¶
ImageFileFormatMapping ...
func ListContainsStringItem ¶
ListContainsStringItem ...
func NomalizePublisherName ¶
NomalizePublisherName ...
func StrctypeLabelMapping ¶
StrctypeLabelMapping ...
func ValidationRun ¶
func ValidationRun() bool
ValidationRun...
returns true if validation is running, false in the indexing
Types ¶
This section is empty.