edf5105680
some typos
2019-04-06 00:00:01 +02:00
528e74b9fe
added some tests for createMissingCategories
...
fixed finding found in createMissingCategories
2019-04-05 23:59:31 +02:00
fa54c63712
added tests for getParentId
...
fixed some small issues in getParentId
2019-04-05 23:45:34 +02:00
7a2633d221
WIP: regenerated mocks
2019-04-04 16:14:43 +02:00
207580b73f
WIP: restructured existing code. Tests have to be added to make sure it does what it should :-D
2019-04-04 16:12:46 +02:00
42009730b1
WIP: Added method to get categories that should get created on the server
2019-04-04 16:12:10 +02:00
8c91dd2107
WIP: renamed function and made it package internal as it gets orchestrated by another sync function
2019-04-04 15:39:32 +02:00
ca2620d426
WIP: implemented logic to update category
2019-04-04 15:35:42 +02:00
0d7ca76b98
WIP: added test that existing entries should be updated
2019-04-04 15:35:20 +02:00
550230195a
WIP: refactored tests
2019-04-04 09:07:49 +02:00
41bf858523
WIP: Sync now saves the data
2019-04-04 08:55:16 +02:00
b11464121c
added first test and empty function
2019-04-02 23:26:55 +02:00
68aef12358
generated mocks
2019-04-02 23:26:34 +02:00
0e5fcaf525
added CategoryProvider and CategoryData with some basic interface methods but no implementation yet
2019-04-02 23:26:25 +02:00
710b76c79f
Fixed mock generation
2019-04-02 22:56:04 +02:00
1bc176dd47
moved category to own package
2019-04-02 21:58:54 +02:00
58c1f8b9ff
moved images to own package
2019-04-02 21:45:46 +02:00
bd5250f0d5
moved datastore in own internal package
2019-04-02 21:30:39 +02:00
2c65c5827e
added DeleteImages to the piwigo context
2019-03-24 23:07:59 +01:00
9ab0ddb2d0
updated copyright notice at the top of the files
2019-03-23 22:40:56 +01:00
21a3e08478
added tests for the filescanner using a testimage
2019-03-23 22:05:25 +01:00
c9b6a7e6db
learned about mocking and made mocks work
...
added new tests for the images part of the app
added go generate info to help generate mocks for tests
2019-03-22 00:14:34 +01:00
3c3eaa8da7
generated mocks for the datastore
2019-03-21 22:37:16 +01:00
ce64892222
added mocks for piwigo context
2019-03-21 22:37:08 +01:00
f71fcefc1a
removed flag piwigoUploadChunkSizeInKB as it gets loaded from the server during login. Default is 512KB
2019-03-20 23:51:01 +01:00
b326b0da84
added uploadImages
...
added piwigo image id to upload to support file updates
added noUpload flag to do all but skip file upload
changed metadata filepath to full file path
moved category detection during local file metadata generation
2019-03-20 23:15:41 +01:00
8e3c736bf9
added interfaces to the piwigo context to make testing easier
2019-03-20 21:41:41 +01:00
8068d829fe
Refactored piwigo context to a object oriented implementation
...
Optimized http calls to reuse more code and DRY
Interface for PiwigoContext WIP
Naming WIP
2019-03-20 00:17:58 +01:00
58b5b79b34
renamed ImageUploadRequired to ImageExistOnPiwigo
...
Added ImageCheckFile to check the piwigo file state
2019-03-19 23:07:39 +01:00
20eeba2615
made cookiejar internal
2019-03-17 23:48:44 +01:00
02f59c47f9
made checksum calculator exportable to use it in the app package
2019-03-17 22:58:49 +01:00
5bf0b0b4e1
added first unit test
2019-03-13 00:14:19 +01:00
cd226af651
Fixed go test findings on method usage
2019-03-12 23:52:04 +01:00
2cc33641a7
moved filesystemnode to the filesystem scanner
2019-03-12 23:47:19 +01:00
105c89538e
moved imagenode to the imagelist file where it gets created
2019-03-12 23:46:35 +01:00
5a4c133f27
moved app types to appContext.go and added some methods
...
moved piwigo login from app.go to piwigoContext.go
Updated visibility of some types
Added first elements of the local data store including configuration on startup and flag
yea yea... I know, the commit contains to many changes ;-)
2019-03-12 23:44:05 +01:00
eae6db1683
refactored piwigo context to a interface on most of the functions
2019-03-11 22:16:55 +01:00
6064e94858
moved piwigo authentication
2019-03-11 21:47:16 +01:00
a194e2f5ae
merged piwigo category code
2019-03-11 21:45:46 +01:00
b089bf34ee
merged all picture code in one go file as it is small and go works with different rules for handling code files than c#
2019-03-11 21:42:20 +01:00
3e7cc0fd2d
renamed project to PiwigoDirectoryUploader
2019-03-03 23:44:13 +01:00
e1c1f9578a
made local image preparations use channels and go routines to speed it up and use all cpu cores to calculate the md5 sums
2019-03-03 22:35:24 +01:00
8659aba430
fixed log output of total file size
2019-03-02 00:25:24 +01:00
bfd90cf1b6
made upload of images work
2019-03-02 00:21:01 +01:00
665f0e18e1
fixed missing directory handling
2019-03-01 21:51:30 +01:00
930d27bff7
fixed namespace and clone target
2019-03-01 21:36:16 +01:00
704a3da759
small http handling optimization
2019-03-01 00:26:15 +01:00
28f89c54d5
started upload file implementation
2019-03-01 00:14:52 +01:00
958631df5d
filtering all except png and jpg
2019-02-28 22:30:58 +01:00
a4a6cce943
made finding missing files work
2019-02-27 23:26:18 +01:00