refactor: mover .go de tipos Go a functions/{domain}/ para compilación unificada

Los archivos .go de tipos ahora viven junto a las funciones en functions/{domain}/
(mismo paquete Go), resolviendo errores de compilación por tipos no encontrados
(Option, Pair, Result, etc.). Los .md de metadata permanecen en types/{domain}/
con file_path actualizado a functions/. Se elimina types.go duplicado de infra.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-28 23:23:00 +01:00
parent 528a16cd5a
commit 05444f74d3
56 changed files with 27 additions and 55 deletions
+13
View File
@@ -0,0 +1,13 @@
package infra
// ContainerInfo representa la información básica de un contenedor Docker.
type ContainerInfo struct {
ID string // ID corto del contenedor
Name string // Nombre del contenedor
Image string // Imagen usada
Status string // Estado actual (running, exited, etc.)
State string // Estado detallado
Ports string // Mapeo de puertos
Created string // Fecha de creación
Labels map[string]string // Labels del contenedor
}
+10
View File
@@ -0,0 +1,10 @@
package infra
// ImageInfo representa la información básica de una imagen Docker local.
type ImageInfo struct {
ID string // ID corto de la imagen
Repository string // Nombre del repositorio
Tag string // Tag de la imagen
Size string // Tamaño legible (ej: "142MB")
Created string // Fecha de creación
}
+7
View File
@@ -0,0 +1,7 @@
package infra
// MetabaseClient holds the connection details for a Metabase instance API.
type MetabaseClient struct {
BaseURL string // e.g. "http://localhost:3000"
Token string // session token or API key
}
-28
View File
@@ -1,28 +0,0 @@
package infra
// ContainerInfo representa la información básica de un contenedor Docker.
type ContainerInfo struct {
ID string
Name string
Image string
Status string
State string
Ports string
Created string
Labels map[string]string
}
// ImageInfo representa la información básica de una imagen Docker local.
type ImageInfo struct {
ID string
Repository string
Tag string
Size string
Created string
}
// MetabaseClient holds the connection details for a Metabase instance API.
type MetabaseClient struct {
BaseURL string // e.g. "http://localhost:3000"
Token string // session token or API key
}