Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClosure ¶
func BuildClosure(serviceDocBytes []byte, cfg ClosureConfig) ([]byte, error)
BuildClosure produces the minimal service document YAML containing only the paths, schemas, parameters, and resource definitions needed for the specified resource.
func ListResources ¶
ListResources returns all resource names from the x-stackQL-resources section.
func RewriteServers ¶
func RewriteServers(servers []interface{}, rewriteURL string) []interface{}
RewriteServers replaces the URL in each server entry with rewriteURL, preserving template variables (e.g., {region}) if they appear in the path.
Types ¶
type ClosureConfig ¶
type ClosureConfig struct {
ResourceName string
RewriteURL string // optional: rewrite all server URLs to this base
}
ClosureConfig configures the closure builder.
Click to show internal directories.
Click to hide internal directories.