images

package
v0.0.0-...-f8104de Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteImages

func DeleteImages(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider) error

func SynchronizeLocalImageMetadata

func SynchronizeLocalImageMetadata(imageDb datastore.ImageMetadataProvider, categoryDb datastore.CategoryProvider, fileSystemNodes map[string]*localFileStructure.FilesystemNode, checksumCalculator fileChecksumCalculator) error

Update the local image metadata by walking through all found files and check if the modification date has changed or if they are new to the local database. If the files is new or changed, the md5sum will be rebuilt as well.

func SynchronizePiwigoMetadata

func SynchronizePiwigoMetadata(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider) error

This method aggregates the check for files with missing piwigoids and if changed files need to be uploaded again.

func UploadImages

func UploadImages(piwigoCtx piwigo.ImageApi, metadataProvider datastore.ImageMetadataProvider, numberOfWorkers int) error

Uploads the pending images to the piwigo gallery and assign the category of to the image. Update local metadata and set upload flag to false. Also updates the piwigo image id if there was a difference.

Types

This section is empty.

Jump to

Keyboard shortcuts

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