Outputs 编辑
In the outputs section, you specify what a StyleBook exposes to its users after it has completed creating all the configuration objects successfully. The outputs section of a StyleBook is optional. A StyleBook does not need to return outputs. However, by returning some internal components as outputs, it allows any StyleBooks that import it more flexibility as you can see when creating a composite StyleBook.
The following table describes the attributes used in the outputs section.
Attribute | Description | Mandatory |
---|---|---|
name | The name of the output corresponding to the configuration object you want to expose. | Yes |
description | A text string describing the output. | No |
value | This attribute specifies how to extract the value that is returned by a StyleBook. | Yes |
Example:
outputs:
-
name: lbvserver
description: LBVServer component
value: $components.my-lbvserver-comp
-
name: svc-grp
description: ServiceGroup name
value: $components.my-svcg.properties.name
<!--NeedCopy-->
In this example, you expose the lbvserver component and the servicegroup name that would be created by the StyleBook. The value of the output called lbvserver is the component my-lbvserver-comp. Similarly, the value of the output called svc-grp is the name of the servicegroup created by the component my-svcg.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论