988e901066
Añade campos params y output al frontmatter YAML de las 506 funciones del registry. Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico) y cada función describe qué produce su output. Permite a agentes razonar sobre cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
35 lines
792 B
Markdown
35 lines
792 B
Markdown
---
|
|
name: docker_start_container
|
|
kind: function
|
|
lang: go
|
|
domain: infra
|
|
version: "1.0.0"
|
|
purity: impure
|
|
signature: "func DockerStartContainer(nameOrID string) error"
|
|
description: "Inicia un contenedor Docker existente que está detenido. Recibe nombre o ID del contenedor."
|
|
tags: [docker, container, start, infra]
|
|
uses_functions: []
|
|
uses_types: []
|
|
returns: []
|
|
returns_optional: false
|
|
error_type: "error_go_core"
|
|
imports: [fmt, os/exec, strings]
|
|
params:
|
|
- name: nameOrID
|
|
desc: "nombre o ID del contenedor Docker a iniciar"
|
|
output: "nil si se inicio exitosamente, error en caso contrario"
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "functions/infra/docker_start_container.go"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```go
|
|
err := DockerStartContainer("my-app")
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
```
|