feat: 5 tipos Docker — container, image, volume, network, compose_project

Tipos producto para modelar recursos Docker en el registry.
Usados como type_ref en las entities de fn_operations.
This commit is contained in:
2026-03-28 04:38:08 +01:00
parent 3716c8fc6d
commit 263791c229
10 changed files with 137 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
package docker
// ComposeProject representa un proyecto Docker Compose con sus servicios.
type ComposeProject struct {
Name string
ConfigFiles string
Services []string
}
+17
View File
@@ -0,0 +1,17 @@
---
name: compose_project
lang: go
domain: docker
version: "1.0.0"
algebraic: product
definition: |
type ComposeProject struct {
Name string
ConfigFiles string
Services []string
}
description: "Proyecto Docker Compose con nombre, archivos de configuracion y lista de servicios."
tags: [docker, compose, infra, orchestration]
uses_types: []
file_path: "types/docker/compose_project.go"
---
+11
View File
@@ -0,0 +1,11 @@
package docker
// Container representa un contenedor Docker con su estado y configuracion.
type Container struct {
ID string
Names string
Image string
Status string
State string
Ports string
}
+20
View File
@@ -0,0 +1,20 @@
---
name: container
lang: go
domain: docker
version: "1.0.0"
algebraic: product
definition: |
type Container struct {
ID string
Names string
Image string
Status string
State string
Ports string
}
description: "Contenedor Docker con ID, nombre, imagen, estado y puertos expuestos."
tags: [docker, container, infra]
uses_types: []
file_path: "types/docker/container.go"
---
+10
View File
@@ -0,0 +1,10 @@
package docker
// Image representa una imagen Docker con su repositorio, tag y tamaño.
type Image struct {
ID string
Repository string
Tag string
Size string
CreatedAt string
}
+19
View File
@@ -0,0 +1,19 @@
---
name: image
lang: go
domain: docker
version: "1.0.0"
algebraic: product
definition: |
type Image struct {
ID string
Repository string
Tag string
Size string
CreatedAt string
}
description: "Imagen Docker con repositorio, tag, tamaño y fecha de creacion."
tags: [docker, image, infra]
uses_types: []
file_path: "types/docker/image.go"
---
+9
View File
@@ -0,0 +1,9 @@
package docker
// Network representa una red Docker con nombre, driver y scope.
type Network struct {
ID string
Name string
Driver string
Scope string
}
+18
View File
@@ -0,0 +1,18 @@
---
name: network
lang: go
domain: docker
version: "1.0.0"
algebraic: product
definition: |
type Network struct {
ID string
Name string
Driver string
Scope string
}
description: "Red Docker con nombre, driver y scope (local/global)."
tags: [docker, network, infra]
uses_types: []
file_path: "types/docker/network.go"
---
+8
View File
@@ -0,0 +1,8 @@
package docker
// Volume representa un volumen Docker con nombre, driver y punto de montaje.
type Volume struct {
Name string
Driver string
Mountpoint string
}
+17
View File
@@ -0,0 +1,17 @@
---
name: volume
lang: go
domain: docker
version: "1.0.0"
algebraic: product
definition: |
type Volume struct {
Name string
Driver string
Mountpoint string
}
description: "Volumen Docker con nombre, driver y punto de montaje en el host."
tags: [docker, volume, storage, infra]
uses_types: []
file_path: "types/docker/volume.go"
---