知识卡片
组合声明连接关系
基础设施组合把多个栈和输入输出连接写成声明:网络栈输出子网列表,计算栈以该列表为参数。消费者不需要知道来源;测试组合可换成较小的网络夹具栈。组合需要工具解释执行,但比命令式脚本更直接地表达栈间依赖关系。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 集成基础设施栈 · 查看原书依据
The composition declares that the value for the subnet list output from cluster_network_stack will be passed as a parameter to cluster_compute_stack. The compute stack code doesn’t need to know where the subnet list comes from. A test stage for the compute stack could use a composition that gets the subnet list from a test fixture:
参考来源
- 位置:《Infrastructure As Code》第9章《集成基础设施栈》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch09.html)
- 结论依据:原文说明基础设施组合把多个栈和输入输出连接写成声明:网络栈输出子网列表,计算栈以该列表为参数;本卡据此解释其用途及适用边界。
- 原始内容:The composition declares that the value for the subnet list output from cluster_network_stack will be passed as a parameter to cluster_compute_stack. The compute stack code doesn’t need to know where the subnet list comes from. A test stage for the compute stack could use a composition that gets the subnet list from a test fixture: