9 Commits
Author SHA1 Message Date
Rene Nochebuena e1d7c9825a chore(storage-minio): dependency refresh; framework version alignment to v1.4.0 v1.4.0 2026-08-12 15:30:29 -06:00
Rene Nochebuena c0f9c34b65 chore(storage-minio): framework version alignment to v1.3.0 v1.3.0 2026-08-08 10:49:28 -06:00
Rene Nochebuena ba53477e2e chore(storage-minio): framework version alignment to v1.2.0 v1.2.0 2026-08-08 02:25:55 -06:00
Rene Nochebuena 7f0795f40e chore(storage-minio): framework version alignment to v1.1.3 v1.1.3 2026-08-08 01:27:28 -06:00
Rene Nochebuena 1e5c6df52b chore(storage-minio): framework version alignment to v1.1.2 v1.1.2 2026-08-08 00:44:24 -06:00
Rene Nochebuena 31a21ad695 docs(storage-minio): fix wiring doc examples; align to v1.1.1 v1.1.1 2026-08-07 23:33:22 -06:00
Rene Nochebuena abeefd9810 docs(storage-minio): fix fictional launcher.Register/health.Register in doc examples (#2)
The package-doc examples showed a fictional launcher.Register / health.Register
API (and launcher.Append as a package func). Corrected to the real wiring:
lc.Append + web/health.NewHandler(...).ServeHTTP.

Documentation-only. No code, API, or dependency changes; version stays v1.1.0
(the v1.1.0 tag is moved to include this fix). Verified by compiling the
corrected pattern against the real API.

Reviewed-on: #2
Co-authored-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
Co-committed-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
2026-08-07 22:19:14 -06:00
Rene Nochebuena 2a9cb9132b chore(storage-minio): bump einherjar deps to v1.1.0 (framework version alignment) (#1)
Patch of the coordinated framework release: einherjar modules move to v1.1.0
in lockstep, so storage-minio is bumped alongside the rest.

- go.mod: contracts, core -> v1.1.0 (via go get + go mod tidy)

No code or API changes. ModuleVersion() reports v1.1.0 automatically from
build info once tagged. Badge bumped to v1.1.0.

Reviewed-on: #1
Co-authored-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
Co-committed-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
v1.1.0
2026-08-07 19:18:28 -06:00
Rene Nochebuena 1a34b84ee9 feat(storage-minio): initial implementation — MinIO/S3 object storage with lifecycle (v1.0.0)
Introduces code.nochebuena.dev/einherjar/storage-minio — the object storage
starter for the Einherjar framework. Absorbs the minio package from micro-lib,
replacing fmt.Errorf wrapping with core/xerrors.

Interfaces (CT-6: one TypeSpec per file):
- Provider — PutObject, RemoveObject, GetObject, PresignedGetObject, HandleError
- Component — lifecycle.Component + observability.Checkable + Provider + Native()

Implementation:
- New(logger, cfg) Component — client not created until OnInit
- OnInit: minio.New with credentials and transport; bucket existence check
- OnStart: BucketExists PING; logs "minio: connected"
- OnStop: logs "minio: closing client" (minio-go is stateless; no explicit close)
- HealthCheck: BucketExists check; Priority LevelCritical
- Native() *miniogo.Client — escape hatch for operations not in Provider
- HandleError: maps minio-go errors to xerrors (NotFound, AlreadyExists, Internal)

Config (EINHERJAR_MINIO_* env vars):
  Endpoint(required), AccessKey(required), SecretKey(required),
  Bucket(required), UseSSL(false), Region(us-east-1)

- Component interface embeds observability.Identifiable; identifiable.go implements
  ModulePath and ModuleVersion via runtime/debug.ReadBuildInfo() — prints in launcher banner
v1.0.0
2026-05-29 16:03:52 +00:00