Improvement

Add GCSArtifactService (#110)

João Westerberg
2 months ago

Commit: fe3a283

Date: September 25, 2025 at 2:41 PM

  • Add GCSArtifactService.
  • Fix dependecies diff
  • Add io.Close err validation
  • Standardize function and method naming for gcsService.

Rename functions and methods within the gcsService to improve clarity and align with Go conventions.

  • Add artifactservice/gcs package, add request detailed validation

Moved the gcs artifact service implementation to a separate gcs package, and the test suite to artifactservice_test.

  • Make mockable_gcs interfaces unexported

The mockable_gcs interface is only relevant for testing and its use can be limited to the gcs package.

  • Add ValidatorTestCases interface to reduce duplicated code on test execution
  • Move mockable_storage to test file
  • Improve gcs service error handling, add support for parts with text. Add parallel execution on delete all versions.
  • Add err validation to setAttrSelection
  • Change test suite to include NewPartFromText example
  • Add Client.Options to gcs artifact service constructor for configuring the client
  • Add err context for request validation in artifact service