summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Katarzyna Gorska [Wed, 13 Dec 2017 14:10:46 +0000 (15:10 +0100)]
Add downloader to Storage, implement PushArtifact
Change-Id: If757c4745089eb308fca53c732790d3615c5dcb9
Katarzyna Gorska [Tue, 28 Nov 2017 13:51:24 +0000 (14:51 +0100)]
Add downloadJob queue
Change-Id: I90afb2433977be3ba5b72935d88b289e28e97b2e
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Katarzyna Gorska [Tue, 28 Nov 2017 13:25:32 +0000 (14:25 +0100)]
Add downloader base functions
Downloader implements ArtifactDownloader interface.
It schedules download jobs in queue and notifies about
artifacts' status changes.
Change-Id: I8ff33c46406dd305c62d3874bd6e013fc6606393
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Katarzyna Gorska [Wed, 29 Nov 2017 19:44:59 +0000 (20:44 +0100)]
Add SetStatus with test
SetStatus changes artifact's status in ArtifactDB.
Change-Id: I3d00f1a4dce861220afee367433edb981286c40c
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Katarzyna Gorska [Wed, 29 Nov 2017 19:11:20 +0000 (20:11 +0100)]
Implement List with tests
List is part of implementation of ArtifactManager.
It filters ArtifactDB with given filter
and returns list of all matching elements.
Change-Id: I746ea564e07d512ddf55e36d92f515e5f804b120
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Aleksander Mistewicz [Tue, 12 Dec 2017 13:51:56 +0000 (14:51 +0100)]
Implement Select in database package
Storage's Select allows to use one method for fetching
elements from ArtifactDB. Requested artifacts can be selected by
JobID, ArtifactType, ArtifactStatus or ArtifactAlias.
Change-Id: I58d53d99808b64e836163c1fb8a3876ecf15c611
Katarzyna Gorska [Wed, 15 Nov 2017 16:52:46 +0000 (17:52 +0100)]
Add ArtifactDB to storage
ArtifactDB is designed to store information about downloaded artifacts.
As for now inserting ArtifactRecord is supported.
More operations (updates, deletes and selects) will be implemented soon.
Close was added to ArtifactManager interface.
Change-Id: I17ac260691d11518bcec5385eaf2689e389feb7f
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Katarzyna Gorska [Tue, 5 Dec 2017 10:49:11 +0000 (11:49 +0100)]
Add artifacts/database package
Package database is responsible for Weles' artifact storage.
This patch introduces ArtifactDB struct responsible for database
connection and queries.
Change-Id: Ie74be2d5bb62a54c222351ae556fabe8e2be5f4c
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Katarzyna Gorska [Thu, 9 Nov 2017 09:37:06 +0000 (10:37 +0100)]
Add Storage and stubs for interface implementation
Storage implements ArtifactManager interface.
Also ArtifactDownloader method Download parameters changed.
To properly download an artifact, we should pass not only ArtifactURI,
but also ArtifactPath.
Close method was added to ArtifactDownloader.
Change-Id: Ic707ee270cfd54d2f0bb9792d1b5f65ceae75e80
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Katarzyna Gorska [Fri, 3 Nov 2017 11:54:31 +0000 (12:54 +0100)]
Add ArtifactManager interface
Change-Id: Iaae3b462c525d10b25104d3b29256ac326f3c5a8
Signed-off-by: Katarzyna Gorska <k.gorska@samsung.com>
Lukasz Wojciechowski [Tue, 7 Nov 2017 20:46:10 +0000 (21:46 +0100)]
Define common Weles errors
Change-Id: I392e39b6454128d6000585fba6e8db976dff32c9
Signed-off-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Aleksander Mistewicz [Thu, 16 Nov 2017 15:49:59 +0000 (16:49 +0100)]
Add basic Weles structure
Each interface, used or implemented by many components, should
be defined in the file with the same name as said interface in
basic, weles, package. Definitions of all non-interface types
related to it should be stored in the same file. The remaining
types, if common to multiple interfaces, should be defined
in main package file: weles.go.
The purpose is to have packages to depend on basic package, but not each
other. Moreover a developer will not need to look into documentation or
search for definition of interface as the location of such definition
will be known by interface's name.
This patch also defines manager's interfaces and structures in described
format.
Change-Id: Ie1bf89c8e7e4af28617cc00f21d6193c4b7517d1
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Pawel Wieczorek [Wed, 2 Aug 2017 15:09:40 +0000 (17:09 +0200)]
Add Apache 2.0 license
Change-Id: I0d89637aba1d8c47892a4869078e492162573007
Tizen Infrastructure [Thu, 6 Jul 2017 07:59:48 +0000 (07:59 +0000)]
Initial empty repository