docs: add detailed package-level comments to all TOOLS/ and provider/
TOOLS: - yaml-generator: types (API↔YAML), client (proxy/REST + retry) - resource-generator: types (3 resource kinds), loader (pipeline), writers (generated files), params (merge/CreateOnly/ForceNew) - docs-generator, ops-generator — already documented provider: - main.go: entrypoint + build instructions - core: API client (GetInstance, RunOperation, GetInstanceState) - provider: provider registration (New, Resources, Schema) - resources_core: shared CRUD, state refresh, params, validation
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
// Package client — HTTP-клиент для API Nubes.
|
||||
//
|
||||
// Поддерживает два режима API, автоопределяемых по URL:
|
||||
// - Legacy proxy: содержит "index.cfm" → ?endpoint=/services/123
|
||||
// - REST Gateway: без "index.cfm" → /api/v1/svc/services/123
|
||||
//
|
||||
// Ретраи: до 3 попыток с экспоненциальной задержкой (2s, 4s, 8s).
|
||||
// Ретраятся: сетевые ошибки, 429 (rate limit), 5xx.
|
||||
//
|
||||
// Все методы возвращают типы из пакета types.
|
||||
package client
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user